/*
Theme Name: keyondo
Description: Eigenes Theme der Keyondo-Plattform (öffentliche Website und Rahmen der Dashboards). Basis: Designentwurf, zugänglicher Stil.
Version: 0.1.0
Requires PHP: 8.4
Text Domain: keyondo
License: proprietary
*/

/* Zugänglicher, alltagstauglicher Stil: moderne serifenlose Überschriften, freundliches Petrol statt Messing. */
:root {
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --messing: #0F7B6C;
  --messing-hell: #9AD9CD;
  --messing-tief: #0B5E53;
  --papier: #EEF5F2;
  --tinte: #1E2A44;
  --tinte-2: #2B3A5C;
  --tinte-3: #33466F;
  --nacht: #16203A;
}
h1, h2, h3 { font-weight: 750; letter-spacing: -.03em; font-variation-settings: normal; }
.kursiv { font-style: normal; color: var(--messing); }
.hero-unterzeile { font-style: normal; font-weight: 600; color: var(--messing-tief); font-family: var(--sans); }
.knopf-messing { background: #FFC845; color: var(--tinte); box-shadow: 0 10px 24px -12px rgba(160, 110, 0, .6); }
.marke-wort { font-family: var(--sans); font-weight: 800; letter-spacing: -.04em; }
.seite-inhalt { min-height: 60vh; }
.seite-inhalt > .huelle > h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin: 32px 0 8px; }

/* Inhalte ohne JavaScript immer sichtbar (Suchmaschinen, Barrierefreiheit); Einblenden nur mit aktivem JavaScript. */
.einblenden { opacity: 1; transform: none; }
html.js .einblenden:not(.sichtbar) { opacity: 0; transform: translateY(22px); }

/* Rechtliche Seiten (Impressum, Datenschutz, AGB) im Stil des Entwurfs */
.k-recht { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); padding: clamp(1.5rem, 4vw, 2.75rem); max-width: 820px; box-shadow: var(--schatten-1); }
.k-recht h2 { font-size: 1.1rem; letter-spacing: -.01em; margin: 2rem 0 .55rem; }
.k-recht > h2:first-of-type, .k-recht-hinweis + h2 { margin-top: 0; }
.k-recht p, .k-recht ul { margin: 0 0 .9rem; color: var(--text-2); max-width: 68ch; }
.k-recht ul { padding-left: 1.15rem; display: grid; gap: .4rem; }
.k-recht strong { color: var(--tinte); font-weight: 600; }
.k-recht-hinweis { margin: 0 0 1.8rem; padding: .85rem 1rem; border-radius: var(--r-m); background: #FFF8EC; border: 1px solid #F0E1C2; color: #6A4A0B; font-size: .9rem; }
.k-recht-grundlage { font-size: .74rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3) !important; }
.k-recht-raster { display: grid; gap: 12px; margin: .5rem 0 2rem; }
.k-recht-block { background: var(--papier); border-radius: var(--r-m); padding: 1rem 1.2rem; }
.k-recht-block h2 { margin: 0 0 .4rem; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.k-recht-block p { margin: 0; color: var(--tinte); }
.k-recht-abschnitt { border-top: 1px solid var(--linie); padding-top: 1.4rem; }
.k-recht-abschnitt h2 { margin-top: 0; }
@media (min-width: 700px) { .k-recht-raster { grid-template-columns: 1fr 1fr; } }
.seite-inhalt > .huelle > * { min-width: 0; }


/* Zielgruppen (Startseite): Verschenken und Alltag */
.zielgruppen-titel { display: flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.15rem; margin: 2.6rem 0 1.1rem; }
.zielgruppen-titel svg { width: 22px; height: 22px; color: var(--messing-hell); }
.geschenke { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.geschenk { position: relative; background: var(--flaeche); color: var(--text); border-radius: var(--r-l); padding: 30px 26px 26px; display: grid; gap: .8rem; align-content: start;
  box-shadow: 0 0 0 3px #FFC845 inset, var(--schatten-2); }
.geschenk-etikett { position: absolute; top: -12px; left: 22px; background: #FFC845; color: var(--tinte); font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.geschenk .symbol { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tinte); color: var(--messing-hell); }
.geschenk .symbol svg { width: 24px; height: 24px; }
.geschenk p { color: var(--text-2); font-size: .96rem; margin: 0; }
#zielgruppen .vorteil h3 { color: var(--text); }
.geschenk-band { margin-top: 2.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 26px 28px;
  border-radius: var(--r-l); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.geschenk-band h3 { color: #fff; margin: 0 0 .3rem; font-size: 1.2rem; }
.geschenk-band p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 60ch; }
@media (max-width: 900px) { .geschenke { grid-template-columns: 1fr; gap: 26px; } }

/* Standortkarte (Startseite): EU + Schweiz, Marken mit dem Schlüssel aus dem Logo */
.karte { position: relative; margin-top: 8px; border-radius: var(--r-xl); overflow: hidden; background: #DCEBF0; box-shadow: var(--schatten-2); border: 1px solid var(--linie); }
.karte-svg { display: block; width: 100%; height: clamp(360px, 62vh, 620px); touch-action: pan-x pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.karte.zieht .karte-svg { cursor: grabbing; }
.karte-meer { fill: #DCEBF0; }
.karte-umgebung path { fill: #EEF2F1; stroke: #D3DCDA; stroke-width: 1; vector-effect: non-scaling-stroke; }
.karte-land { fill: #FFFFFF; stroke: #A9CFC6; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .2s; }
.karte-land:hover { fill: #F3FAF8; }
.karte-land.heimat { fill: #E3F3EF; }
.karte-marke { cursor: pointer; outline: none; }
.karte-marke use { filter: drop-shadow(0 2px 3px rgba(30, 42, 68, .35)); transition: transform .15s var(--kurve); transform-box: fill-box; transform-origin: 50% 100%; }
.karte-marke:hover use, .karte-marke:focus-visible use, .karte-marke.aktiv use { transform: scale(1.18); }
.karte-marke:focus-visible use { filter: drop-shadow(0 0 0 #FFC845) drop-shadow(0 0 3px #FFC845); }
.karte-steuerung { position: absolute; top: 14px; right: 14px; display: grid; gap: 6px; }
.karte-steuerung button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--tinte); font: 600 1.25rem/1 var(--sans);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--schatten-1); }
.karte-steuerung button:hover { background: var(--papier); }
.karte-steuerung svg { width: 20px; height: 20px; }
.karte-legende { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: .55rem; background: rgba(255, 255, 255, .94); border-radius: 999px;
  padding: .45rem .9rem .45rem .55rem; font-size: .88rem; font-weight: 600; color: var(--tinte); box-shadow: var(--schatten-1); pointer-events: none; }
.karte-legende svg { width: 20px; height: 24px; }
.karte-info { position: absolute; transform: translate(-50%, -100%); background: var(--flaeche); border-radius: var(--r-m); padding: .8rem 2.2rem .85rem 1rem; box-shadow: var(--schatten-2);
  display: grid; gap: .15rem; min-width: 200px; font-size: .9rem; color: var(--text-2); z-index: 2; }
.karte-info[hidden], .karte-hinweis[hidden] { display: none; }
.karte-info strong { color: var(--tinte); font-size: 1rem; }
.karte-info a { color: var(--messing); font-weight: 600; margin-top: .3rem; }
.karte-info-zu { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--text-3); cursor: pointer; padding: 4px 6px; }
.karte-hinweis { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; background: rgba(30, 42, 68, .88); color: #fff; padding: .6rem 1rem;
  border-radius: 999px; font-size: .88rem; pointer-events: none; text-align: center; }
#standorte .fussnote { margin-top: 12px; }
@media (max-width: 640px) { .karte { border-radius: var(--r-l); } .karte-svg { height: 440px; } }

/* ---------- Ratgeber (Blog) ---------- */
.ratgeber-kopf { background: var(--tinte); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.ratgeber-kopf::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 217, 205, .22), transparent 70%); pointer-events: none; }
.ratgeber-kopf h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); line-height: 1.08; margin: .9rem 0 1rem; max-width: 22ch; }
.ratgeber-kopf.beitrag h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); max-width: none; }
.ratgeber-kopf .augenbraue { color: var(--messing-hell); }
.ratgeber-kopf .kursiv { color: var(--messing-hell); }
.ratgeber-kopf .einleitung { color: rgba(255, 255, 255, .78); }
.brotkrumen { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: rgba(255, 255, 255, .62); margin-bottom: 1.2rem; }
.brotkrumen a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.brotkrumen a:hover { color: #fff; text-decoration: underline; }
.huelle.schmal { width: min(100% - 2 * var(--rand), 780px); }
.ratgeber-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: rgba(255, 255, 255, .7); font-size: .92rem; margin: 0; }
.ratgeber-meta span:first-child { color: #FFC845; font-weight: 700; }
.ratgeber-themen { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.ratgeber-themen a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; transition: background .2s, border-color .2s; }
.ratgeber-themen a span { font-size: .78rem; opacity: .7; font-weight: 500; }
.ratgeber-themen a:hover { border-color: #fff; }
.ratgeber-themen a[aria-current="page"] { background: #FFC845; border-color: #FFC845; color: var(--tinte); }

.ratgeber-liste { padding: clamp(36px, 5vw, 64px) 0; }
.ratgeber-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ratgeber-raster.klein { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ratgeber-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--schatten-1);
  transition: transform .25s var(--kurve), box-shadow .25s var(--kurve); }
.ratgeber-karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-2); }
.ratgeber-karte-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ratgeber-karte-bild { position: relative; height: 128px; display: grid; place-items: center; background: linear-gradient(135deg, var(--papier), #DCEFE9); }
.ratgeber-karte-bild svg { width: 46px; height: 46px; color: var(--messing); }
.thema-notfall .ratgeber-karte-bild { background: linear-gradient(135deg, #FFF4D6, #FFE7A8); } .thema-notfall .ratgeber-karte-bild svg { color: #A06E00; }
.thema-geschenke .ratgeber-karte-bild { background: linear-gradient(135deg, #1E2A44, #33466F); } .thema-geschenke .ratgeber-karte-bild svg { color: #FFC845; }
.thema-partner .ratgeber-karte-bild { background: linear-gradient(135deg, #E6EEF9, #CFDDF2); } .thema-partner .ratgeber-karte-bild svg { color: var(--tinte); }
.ratgeber-stadt { position: absolute; left: 14px; bottom: 12px; background: rgba(255, 255, 255, .92); color: var(--tinte); font-size: .78rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 999px; }
.ratgeber-karte-text { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ratgeber-etikett { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--messing); }
.ratgeber-karte h2, .ratgeber-karte h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.015em; margin: 0; color: var(--tinte); }
.ratgeber-karte p { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ratgeber-weiter { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--tinte); font-size: .92rem; }
.ratgeber-weiter svg { width: 16px; height: 16px; transition: transform .2s; }
.ratgeber-karte:hover .ratgeber-weiter svg { transform: translateX(3px); }
.ratgeber-karte.gross { grid-column: span 2; }
.ratgeber-karte.gross .ratgeber-karte-link { flex-direction: row; }
.ratgeber-karte.gross .ratgeber-karte-bild { height: auto; min-height: 240px; flex: 0 0 42%; }
.ratgeber-karte.gross .ratgeber-karte-bild svg { width: 84px; height: 84px; }
.ratgeber-karte.gross h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.ratgeber-karte.gross .ratgeber-karte-text { padding: 30px; justify-content: center; }
.ratgeber-seiten { margin-top: 40px; }
.ratgeber-seiten .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.ratgeber-seiten .page-numbers { min-width: 42px; height: 42px; padding: 0 .8rem; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--tinte); text-decoration: none; font-weight: 600; }
.ratgeber-seiten .page-numbers.current { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.ratgeber-seiten .screen-reader-text { position: absolute; left: -9999px; }

.ratgeber-text { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); font-size: 1.09rem; line-height: 1.75; color: var(--text); }
.ratgeber-text > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--tinte); }
.ratgeber-text h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.2; margin: 2.4rem 0 .9rem; color: var(--tinte); }
.ratgeber-text h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.38rem); line-height: 1.3; margin: 2rem 0 .7rem; color: var(--tinte); }
.ratgeber-text p { margin: 0 0 1.15rem; }
.ratgeber-text ul { margin: 0 0 1.3rem; padding-left: 0; list-style: none; display: grid; gap: .55rem; }
.ratgeber-text li { position: relative; padding-left: 1.7rem; }
.ratgeber-text li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--messing); }
.ratgeber-text a { color: var(--messing-tief); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(15, 123, 108, .35); text-underline-offset: 3px; }
.ratgeber-text a:hover { text-decoration-color: currentColor; }
.ratgeber-text strong { color: var(--tinte); }
.ratgeber-tabelle { overflow-x: auto; margin: 0 0 1.3rem; }
.ratgeber-text table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.45; }
.ratgeber-text th, .ratgeber-text td { padding: .6rem .75rem; border-bottom: 1px solid rgba(0, 0, 0, .12); text-align: left; vertical-align: top; }
.ratgeber-text thead th { color: var(--tinte); border-bottom-width: 2px; }
.ratgeber-text td { white-space: nowrap; }
.ratgeber-standort { display: flex; gap: 16px; margin: 2.2rem 0 .5rem; padding: 22px 24px; border-radius: var(--r-l); background: var(--papier); border: 1px solid #CFE6DF; }
.ratgeber-standort > svg { flex: 0 0 34px; width: 34px; height: 34px; color: var(--messing); }
.ratgeber-standort.verfuegbar { background: #E6F6EF; border-color: #BFE5D3; }
.ratgeber-standort strong { display: block; font-size: 1.08rem; margin-bottom: .3rem; }
.ratgeber-standort p { margin: 0 0 .9rem; font-size: 1rem; color: var(--text-2); }
.ratgeber-standort-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.ratgeber-standort .knopf { text-decoration: none; color: #fff; }
.ratgeber-standort .knopf-leise { color: var(--tinte); }

.ratgeber-cta { background: linear-gradient(135deg, var(--tinte), var(--tinte-3)); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.ratgeber-cta-partner { background: linear-gradient(135deg, #0B5E53, var(--messing)); }
.ratgeber-cta-innen { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.ratgeber-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: .7rem 0 .6rem; }
.ratgeber-cta p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 56ch; }
.ratgeber-cta .augenbraue { color: var(--messing-hell); }
.ratgeber-cta-partner .augenbraue { color: #FFE7A8; }
.ratgeber-cta-knoepfe { display: grid; gap: .7rem; justify-items: start; }
.ratgeber-weitere { padding: clamp(40px, 6vw, 72px) 0; }
.ratgeber-weitere > h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin: 0 0 1.4rem; }
@media (max-width: 960px) { .ratgeber-raster { grid-template-columns: repeat(2, 1fr); } .ratgeber-cta-innen { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ratgeber-raster { grid-template-columns: 1fr; }
  .ratgeber-karte.gross { grid-column: auto; } .ratgeber-karte.gross .ratgeber-karte-link { flex-direction: column; }
  .ratgeber-karte.gross .ratgeber-karte-bild { min-height: 150px; }
  .ratgeber-text { font-size: 1.03rem; } .ratgeber-standort { flex-direction: column; }
}

/* ---------- SEO-Prüfung 12.11.2026: Infoseiten, Städteübersicht, 404 ---------- */
.fuss-raster { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 900px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-raster { grid-template-columns: 1fr; } }
.faq-mehr { text-align: center; margin-top: 1.6rem; }
.faq-mehr a { color: var(--messing-tief); font-weight: 600; }
.preis-tabelle-huelle { overflow-x: auto; margin-top: 1.5rem; }
.preis-tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border-radius: var(--r-l); overflow: hidden; font-size: .97rem; }
.preis-tabelle th, .preis-tabelle td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.preis-tabelle thead th { color: var(--text-3); font-weight: 600; font-size: .85rem; }
.preis-tabelle tbody th { font-weight: 600; color: var(--tinte); }
.preis-tabelle tr.aktiv { background: rgba(15, 123, 108, .07); }
.ratgeber-staedte-link { margin-top: 1.5rem; }
.staedte-land { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); color: var(--tinte); margin: 2.4rem 0 1rem; }
.staedte-land:first-child { margin-top: 0; }
.staedte-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.stadt-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); padding: 18px 20px; }
.stadt-karte h3 { font-size: 1.1rem; margin: 0 0 .6rem; color: var(--tinte); }
.stadt-karte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .93rem; line-height: 1.4; }
.stadt-karte a { color: var(--messing-tief); text-decoration: none; }
.stadt-karte a:hover { text-decoration: underline; }
.seite-404 ul { display: grid; gap: .5rem; padding-left: 1.2rem; margin: 1rem 0 3rem; }

/* Häufige Fragen nach Themen (12.11.2026) */
.faq-themen ul { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.faq-themen a { display: inline-block; padding: 6px 14px; border: 1px solid var(--linie); border-radius: 999px; background: var(--flaeche); color: var(--tinte); font-size: .92rem; text-decoration: none; }
.faq-themen a:hover, .faq-themen a:focus-visible { border-color: var(--messing-tief); }
.faq-thema { scroll-margin-top: 90px; }
.faq-thema + .faq-thema { margin-top: 2.6rem; }
.faq-thema h2 { font-size: 1.4rem; margin: 0 0 1rem; text-align: center; }
