/* css/home.css – Startseite (index.php) – Algarve4U
   Dazu: style.css (Grundlagen, Kacheln .similar-card, Badges, Chips, hscroll), search-bar.css (Suchleiste),
   blog.css (Blog-Kacheln .blog-card). Farben: Variablen aus style.css (:root). */





/* ////// KOPF: Überschrift, Suche, Vertrauenszeile, Schnellfilter */
.home-hero { padding: 48px 0 8px; text-align: center; }
.home-hero h1 { max-width: 820px; margin: 0 auto 14px; font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.home-hero h1 em { font-style: normal; color: var(--sea); }
.home-lead { max-width: 640px; margin: 0 auto 26px; font-size: 17px; color: var(--muted); }
.home-search-form { position: relative; z-index: 5; display: flex; justify-content: center; margin: 0 0 18px; text-align: left; }
.home-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; list-style: none; margin: 0 0 22px; font-size: 14px; color: var(--text); }
.home-trust li { display: inline-flex; align-items: center; gap: 7px; }
.home-trust svg { width: 17px; height: 17px; fill: none; stroke: var(--sea); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-chips-wrap { max-width: 980px; margin: 0 auto; }
.home-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.home-chips .chip { text-decoration: none; }
.home-chips .chip small { font-size: 12px; color: var(--muted); font-weight: 400; }





/* ////// BEREICHE (gemeinsam) */
.home-main { padding-bottom: 24px; }
.home-section { margin-top: 64px; }
.home-section h2 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 6px; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.home-section-head p { color: var(--muted); font-size: 15px; }
.home-more { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--sea); text-underline-offset: 3px; }
.home-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }





/* ////// BELIEBTE ORTE: 4 Kacheln pro Zeile, Bild mit Name unten */
.home-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-place { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--border); color: #fff; text-decoration: none; }
.home-place img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-place:hover img { transform: scale(1.04); }
.home-place-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(180deg, transparent, rgba(30,26,24,.62)); }
.home-place-text strong { display: block; font-size: 18px; line-height: 1.2; }
.home-place-text span { font-size: 13px; opacity: .92; }
.home-place:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
/* Nur ein Ort (noch keine volle Zeile): eine Karte über die volle Breite */
.home-place-wide-wrap { position: relative; }
/* Bildnachweis: große Karte unten rechts auf dem Bild, Kacheln gesammelt unter dem Bereich */
.home-place-credit { position: absolute; right: 12px; bottom: 10px; max-width: 60%; margin: 0; padding: 3px 9px; border-radius: 8px; background: rgba(30,26,24,.55); color: #fff; font-size: 11px; line-height: 1.4; text-align: right; }
.home-place-credit a { color: #fff; }
.home-places-credits { margin-top: 10px; font-size: 12px; color: var(--muted); }
.home-places-credits a { color: var(--muted); }
.home-place-wide { aspect-ratio: auto; height: 380px; }
.home-place-wide .home-place-text { padding: 60px 28px 24px; }
.home-place-wide .home-place-text strong { font-size: 28px; }
.home-place-wide .home-place-text span { font-size: 15px; }





/* ////// UMSCHALTER GÄSTE / GASTGEBER (dezenter als auf der FAQ-Seite) */
.home-switch-wrap { display: flex; justify-content: center; margin-top: 64px; }
.home-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.home-switch[hidden] { display: none; }
.home-switch button { padding: 6px 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.home-switch button:hover { color: var(--text); }
.home-switch button[aria-pressed="true"] { background: var(--sand); color: var(--text); font-weight: 600; }
.home-switch button:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.home-audience-panel > .home-section:first-child { margin-top: 28px; }

/* Warum Algarve4U: 4 Karten */
.home-why h2 { margin-bottom: 20px; }
.home-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-why-card { padding: 22px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; font-size: 14px; color: var(--muted); }
.home-why-card h3 { margin: 12px 0 6px; font-size: 15px; color: var(--text); }
.home-why-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--sea); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-why-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--sea); text-underline-offset: 3px; }

/* So funktioniert's: Schritte links, Vergleich rechts */
.home-how-lead { color: var(--muted); margin-bottom: 22px; }   /* auch Unterzeile von „Warum Algarve4U“ (index.php) */
.home-how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.home-steps { list-style: none; counter-reset: home-step; display: flex; flex-direction: column; gap: 22px; }
.home-steps li { counter-increment: home-step; position: relative; padding-left: 48px; font-size: 14px; color: var(--muted); }
.home-steps li::before { content: counter(home-step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--sky) 22%, var(--surface)); color: var(--sea); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.home-steps strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 2px; }
/* Vergleich: ist der Bildschirm zu schmal, wird nur die Tabelle seitlich gewischt – nie die ganze Seite */
.home-compare { min-width: 0; }
.home-compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; }
.home-compare table { min-width: 520px; width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; font-size: 14px; }
.home-compare th, .home-compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.home-compare tr:last-child th, .home-compare tr:last-child td { border-bottom: 0; }
.home-compare thead th { background: color-mix(in srgb, var(--border) 45%, var(--surface)); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.home-compare tbody th { font-weight: 400; color: var(--text); }
.home-compare td { color: var(--muted); }
.home-compare td.is-a4u { color: var(--sea); font-weight: 600; }
.home-compare thead th.is-a4u { color: var(--sea); }
.home-compare-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Häufige Fragen: zwei Spalten, aufklappbar (<details>) */
.home-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.home-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.home-faq-item summary { list-style: none; position: relative; padding: 15px 44px 15px 18px; font-weight: 600; font-size: 15px; cursor: pointer; }
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--sea); }
.home-faq-item[open] summary::after { content: "–"; }
.home-faq-item summary:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 12px; }
.home-faq-answer { padding: 0 18px 16px; font-size: 14px; color: var(--muted); }
.home-faq-answer p + p { margin-top: 8px; }
.home-faq-answer a { color: var(--sea); }
.home-faq-answer ul { margin: 8px 0; padding-left: 20px; }   /* Aufzählungen in Antworten: Punkte nicht am Rand des Kastens */
.home-faq-answer li + li { margin-top: 4px; }





/* ////// ZITAT DES GRÜNDERS */
.home-founder { display: flex; align-items: center; gap: 32px; margin: 0; padding: 28px 32px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid var(--border); border-radius: 20px; }
.home-founder-photo { flex: none; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.home-founder-placeholder { display: block; background: radial-gradient(circle at 62% 38%, #f6e7c4 0 16%, transparent 17%), linear-gradient(180deg, color-mix(in srgb, var(--sky) 35%, var(--surface)) 0 55%, var(--sea) 55% 62%, #e9d6b8 62%); }
.home-founder blockquote { margin: 0 0 8px; font-size: 19px; line-height: 1.5; font-style: italic; color: var(--text); }
.home-founder figcaption { font-size: 13px; color: var(--muted); }





/* ////// AUS DEM BLOG, SEO-TEXT, KASTEN FÜR GASTGEBER */
.home-blog-cards { margin-top: 4px; }
.home-seo { padding-top: 40px; border-top: 1px solid var(--border); }
.home-seo-lead { max-width: 760px; margin: 8px 0 22px; font-size: 17px; font-weight: 600; color: var(--text); }
.home-seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; }
.home-seo-grid h3 { font-size: 15px; margin-bottom: 4px; }
.home-seo-grid p { font-size: 14px; color: var(--muted); }
.home-host-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 36px; background: color-mix(in srgb, var(--sky) 14%, var(--surface)); border: 1px solid var(--border); border-radius: 20px; }
.home-host-box h2 { margin-bottom: 12px; }
.home-host-box ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.home-host-box li { position: relative; padding-left: 24px; }
.home-host-box li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 10px; height: 6px; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }
.home-host-button { flex-shrink: 0; padding: 14px 26px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.home-host-button:hover { background: var(--accent-hover); }
.home-host-button:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }





/* ////// HANDY UND TABLET */
@media (max-width: 1000px) {
    .home-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-how-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .home-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .home-hero { padding-top: 28px; }
    .home-hero h1 { font-size: 30px; }
    .home-lead { font-size: 15px; margin-bottom: 20px; }
    .home-trust { gap: 6px 16px; font-size: 13px; }
    /* Schnellfilter: eine Zeile, seitlich wischbar */
    .home-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px 4px; }
    .home-chips::-webkit-scrollbar { display: none; }
    .home-section { margin-top: 48px; }
    .home-section h2 { font-size: 23px; }
    .home-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
    .home-faq-grid, .home-seo-grid { grid-template-columns: 1fr; }
    .home-founder { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
    .home-founder-photo { width: 96px; height: 96px; }
    .home-founder blockquote { font-size: 17px; }
    .home-host-box { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
    .home-compare th, .home-compare td { padding: 10px 12px; }
}
@media (max-width: 560px) {
    .home-why-grid { grid-template-columns: 1fr; }
    /* Orte: seitlich wischbar wie die Häuser */
    .home-places { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; gap: 14px; margin: 0 -24px; padding: 0 24px 6px; scrollbar-width: none; }
    .home-places::-webkit-scrollbar { display: none; }
    .home-place { flex: 0 0 72%; scroll-snap-align: start; }
    .home-place-wide { height: 240px; }
    .home-place-wide .home-place-text { padding: 40px 18px 16px; }
    .home-place-wide .home-place-text strong { font-size: 22px; }
    /* Handy: Bildnachweis unter die Karte, damit er den Ortsnamen nicht verdeckt */
    .home-place-credit { position: static; max-width: none; margin-top: 6px; padding: 0; background: none; color: var(--muted); text-align: left; }
    .home-place-credit a { color: var(--muted); }
}
