/* faq.css – FAQ-Seiten (faq.php; ergänzt style.css – Farben, Schrift, Hintergrund Himmelblau → Sand kommen von dort) */

.faq-main { padding-top: 40px; padding-bottom: 64px; }

/* ---------- Überschrift + Umschalter Gäste / Gastgeber (Pillen wie der Sprachumschalter) ---------- */
.faq-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.faq-head h1 { font-size: 38px; line-height: 1.15; }
.faq-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.faq-switch { text-decoration: none; }   /* ein Link für den ganzen Umschalter (faq.php) */
.faq-switch span { padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text); }
.faq-switch:hover span:not(.active) { background: var(--sand); }
.faq-switch span.active { background: color-mix(in srgb, var(--border) 60%, var(--surface)); }

/* ---------- Aufbau: Kapitel links (feststehend), Inhalt rechts ---------- */
.faq-layout { display: flex; gap: 40px; align-items: flex-start; }
/* Kapitelspalte bleibt beim Scrollen stehen, unter dem Kopf. --hdr = Höhe des Kopfs; auf der FAQ-Seite blendet sich der
   Kopf nicht aus (das machen nur property.js und search.js), darum gilt hier immer der Ersatzwert 69px. */
.faq-toc { position: sticky; top: calc(var(--hdr, 69px) + 20px); flex: 0 0 240px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; transition: top .25s ease; }
.faq-toc-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; }
.faq-toc a { padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; line-height: 1.35; }
.faq-toc a:hover { background: var(--surface); }
.faq-toc a:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.faq-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
/* Sprungziele nicht unter dem Kopf verstecken */
.faq-content section, .faq-item { scroll-margin-top: calc(var(--hdr, 69px) + 20px); }

/* ---------- Übersicht „Warum …?“ (Verlauf wie der Bewertungskasten der Hausseite) ---------- */
.faq-why { padding: 30px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #fff) 0%, #fff 55%, color-mix(in srgb, var(--sky) 16%, #fff) 100%); border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff); box-shadow: 0 10px 30px rgba(58,51,48,.08); }
.faq-why h2 { font-size: 24px; line-height: 1.25; margin-bottom: 18px; }
.faq-why ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; }
.faq-why li { display: flex; gap: 12px; align-items: flex-start; }
.faq-why svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: color-mix(in srgb, var(--accent) 80%, var(--text)); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kapitel und Fragen (aufklappbar mit <details>, ohne JavaScript) ---------- */
.faq-chapter { display: flex; flex-direction: column; gap: 12px; }
.faq-chapter h2 { font-size: 22px; margin-bottom: 4px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 16px 22px; cursor: pointer; font-size: 17px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1; }
.faq-item summary:hover span { text-decoration: underline; text-underline-offset: 3px; }
.faq-item summary:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; border-radius: 14px; }
.faq-item summary svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; font-size: 16px; }
.faq-answer a { color: var(--sea); }
.faq-answer ul { margin: 10px 0; padding-left: 22px; }   /* Aufzählungen in Antworten: Punkte nicht am Rand des Kastens */
.faq-answer li + li { margin-top: 6px; }

/* ---------- Kasten am Ende ---------- */
.faq-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.faq-cta > div { flex: 1 1 280px; display: flex; flex-direction: column; }
.faq-cta strong { font-size: 18px; }
.faq-cta span { font-size: 15px; color: var(--muted); }
.faq-cta-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.faq-cta-btn:hover { background: var(--accent-hover); }

/* ---------- Handy: Kapitel als waagerecht scrollbare Leiste über dem Inhalt ---------- */
@media (max-width: 860px) {
	.faq-head h1 { font-size: 30px; }
	.faq-layout { flex-direction: column; gap: 20px; }
	.faq-toc { position: static; flex: none; width: 100%; flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
	.faq-toc::-webkit-scrollbar { display: none; }
	.faq-toc-label { display: none; }
	.faq-toc a { flex-shrink: 0; white-space: nowrap; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
	.faq-why { padding: 22px; }
	.faq-item summary { padding: 14px 16px; font-size: 16px; }
	.faq-answer { padding: 0 16px 16px; }
}
.faq-guide { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 15px; }   /* Hinweis auf die Anleitung von A bis Z (Gastgeber, faq.php) */
