/* ==========================================================================
   Gasthof Königstand — responsive.css
   Alle @media-Anpassungen, in derselben Reihenfolge wie in style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
@media (max-width: 860px){
  .site-header__nav{ display: none; }
  .site-header__inner{
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 4px;
    padding: 10px 10px 10px 14px;
  }
  .site-header.is-scrolled .site-header__inner{ padding: 8px 10px 8px 14px; }
  .site-header__logo{
    min-width: 0;
    gap: 6px;
    padding: 7px 0;
    font-size: clamp(.86rem, 3.7vw, 1rem);
    overflow: hidden;
  }
  .site-header__logo span{ overflow: hidden; text-overflow: ellipsis; }
  .site-header__logo::before{ width: 28px; height: 28px; flex-basis: 28px; }
  .site-header__cta{ padding: 11px 14px; font-size: .78rem; }
  .site-header__burger{ justify-self: end; }
  .site-header__burger{ display: flex; }
}

@media (max-width: 400px){
  .site-header__cta{ padding: 11px 13px; font-size: .78rem; }
}


/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  .hero__gallery{ overflow-x: auto; justify-content: flex-start; padding: 0 20px; }
}

@media (max-width: 640px){
  .hero__content{ padding: 150px 5vw 160px; align-items: flex-start; }
  .hero__card{ padding: 32px 26px; border-radius: 22px; }
  .hero__gallery{ transform: translate(-50%, 60%); gap: 12px; }
  .gallery-card{ width: 108px; }
  .gallery-card img{ height: 76px; }
  .hero{ margin-bottom: 92px; }
}


/* --------------------------------------------------------------------------
   6. Ihre Vorteile (Perks-Galerie)
   -------------------------------------------------------------------------- */
@media (max-width: 980px){
  .perks__inner{ grid-template-columns: 1fr; }
  .perks__text{ max-width: 60ch; }

  .perks__grid{
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 220px;
    aspect-ratio: auto;
  }
  .perks__cell--balkon{ grid-column: 1 / 3; grid-row: auto; height: 320px; }
  .perks__cell--haus,
  .perks__cell--essen,
  .perks__cell--hund,
  .perks__cell--kueche,
  .perks__cell--bus{ grid-column: span 1; grid-row: auto; }
}

@media (max-width: 620px){
  .perks__grid{ grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .perks__cell--balkon{ grid-column: 1; height: 280px; }
}


/* --------------------------------------------------------------------------
   7. Ferienwohnungen
   -------------------------------------------------------------------------- */
@media (max-width: 980px){
  .apartments__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px){
  .apartments__grid{ grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   8. Haustiere
   -------------------------------------------------------------------------- */
@media (max-width: 820px){
  .pets{ grid-template-columns: 1fr; padding-bottom: clamp(64px, 8vw, 90px); }
  .pets__media{ margin-left: 0; margin-bottom: 64px; }
  .pets__badge{ left: 16px; right: 16px; max-width: none; bottom: -28px; }
}

@media (max-width: 560px){
  .pets__benefits{ grid-template-columns: 1fr; }
  .pets__badge{ flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* --------------------------------------------------------------------------
   9. Galerie (Bento)
   -------------------------------------------------------------------------- */
@media (max-width: 720px){
  .gallery__bento{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .gallery__item--a{ grid-column: span 2; grid-row: span 2; }
  .gallery__item--b,.gallery__item--c,.gallery__item--d,.gallery__item--e{ grid-column: span 1; grid-row: span 1; }
}


/* --------------------------------------------------------------------------
   10. Region & Aktivitäten
   -------------------------------------------------------------------------- */
@media (max-width: 780px){
  .region__block, .region__block--reverse{ grid-template-columns: 1fr; direction: ltr; }
  .dog-photo-grid{ grid-template-columns: 1fr; }
  .dog-photo-grid img{ height: min(72vw, 420px); }
}


/* --------------------------------------------------------------------------
   11. Gastgeber
   -------------------------------------------------------------------------- */
@media (max-width: 780px){
  .host{ grid-template-columns: 1fr; }
  .host__img{ aspect-ratio: 16/10; }
}


/* --------------------------------------------------------------------------
   12. Bewertungen
   -------------------------------------------------------------------------- */
@media (max-width: 700px){
  /* Pfeile werden auf schmalen Screens über das Bild gelegt (statt als
     Flex-Geschwister neben dem Viewport), sonst nimmt der Viewport nur
     "Bühnenbreite minus 2x Pfeilbreite" ein und ist schmaler als die
     88vw-Karte selbst — die Karte (inkl. Text) wurde dadurch am Rand
     vom umgebenden overflow:hidden abgeschnitten. */
  .testimonials__stage{ position: relative; gap: 0; padding: 0 3vw; }
  .testimonials__viewport{ width: 100%; }
  .testimonials__arrow{
    position: absolute; top: 50%; z-index: 3;
    width: 38px; height: 38px;
    transform: translateY(-50%);
  }
  .testimonials__arrow:hover{ transform: translateY(-50%) scale(1.06); }
  .testimonials__arrow--prev{ left: 4px; }
  .testimonials__arrow--next{ right: 4px; }
  .testimonials__arrow svg{ width: 16px; height: 16px; }
  .testimonials__track{ gap: 16px; }
  .review-slide{ flex-basis: 88vw; padding: 30px 24px; }
  .review-slide__text{ font-size: 1.05rem; line-height: 1.6; }
}

@media (max-width: 480px){
  .review-slide{ flex-basis: 90vw; padding: 26px 20px; }
  .review-slide__stars{ margin-bottom: 14px; }
  .review-slide__text{ font-size: .98rem; line-height: 1.58; margin-bottom: 18px; }
}


/* --------------------------------------------------------------------------
   14. Buchung
   -------------------------------------------------------------------------- */
@media (max-width: 860px){
  .booking__inner{ grid-template-columns: 1fr; }
  .booking__card{ position: static; }
}


/* --------------------------------------------------------------------------
   15. Abschluss-CTA
   -------------------------------------------------------------------------- */
@media (max-width: 560px){
  .final-cta{ min-height: 64vh; }
  .final-cta__trust{ flex-direction: column; gap: 10px; padding: 16px 20px; }
  .final-cta__trust-divider{ display: none; }
}


/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
@media (max-width: 780px){
  .site-footer__inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px){
  .site-footer__inner{ grid-template-columns: 1fr; gap: 30px; }
}


/* --------------------------------------------------------------------------
   17. Apartment-Detailseite
   -------------------------------------------------------------------------- */
@media (max-width: 700px){
  .apt-detail__facts{ grid-template-columns: 1fr 1fr; }
  .apt-detail__amenities{ grid-template-columns: 1fr; }
  .apt-detail__others-grid{ grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   7b. Vergleichstabelle (Ferienwohnungen-Übersicht)
   Auf schmalen Screens keine seitlich scrollbare Tabelle, sondern gestapelte
   Karten: jede Zeile (Merkmal) wird zu einer Karte, jede Zelle bekommt via
   data-label ihre Spaltenüberschrift als kleines Label vorangestellt.
   -------------------------------------------------------------------------- */
@media (max-width: 640px){
  .compare-table-wrap{ overflow-x: visible; }
  .compare-table-wrap::after{ display: none; }
  .compare-table{ display: block; }
  .compare-table thead{ display: none; }
  .compare-table tbody{ display: block; }
  .compare-table tr{
    display: block;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 6px 4px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  }
  .compare-table tr:last-child{ margin-bottom: 0; }
  .compare-table td{
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right;
  }
  .compare-table tr td:last-child{ border-bottom: none; }
  .compare-table td::before{
    content: attr(data-label);
    font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--stone); text-align: left; flex-shrink: 0;
  }
  .compare-table td[data-label="Merkmal"]{
    background: var(--paper-2); border-radius: 10px 10px 0 0;
    font-weight: 600; text-align: left; justify-content: flex-start;
  }
  .compare-table td[data-label="Merkmal"]::before{ content: ""; }
}


/* --------------------------------------------------------------------------
   Allgemein: kleine Layout-Umbrüche auf schmalen Screens
   -------------------------------------------------------------------------- */
@media (max-width: 720px){
  .grid-2{ grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   21. Premium Hero-System (Unterseiten)
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  .hero-v2__content[style*="grid-template-columns"]{
    display: block !important;
  }
  .hero-v2__contact-card{ margin-top: 28px; max-width: none; }
}

@media (max-width: 640px){
  .hero-v2{ min-height: 86vh; }
  .hero-v2--medium{ min-height: 78vh; }
  .hero-v2--compact{ min-height: 72vh; }
  .hero-v2__content{ padding: 128px 6vw 48px; }
  .hero-v2__content h1{ max-width: none; font-size: 1.95rem; line-height: 1.08; }
  .hero-v2__lead{ font-size: .95rem; line-height: 1.55; }
  .hero-v2__badge{ padding: 10px 14px 10px 10px; }
  .hero-v2__badge-icon{ width: 30px; height: 30px; }
  .hero-v2__badge-icon svg{ width: 15px; height: 15px; }
  .hero-v2__badge strong{ font-size: .8rem; }

  /* Der schwebende Foto-Stack (Ferienwohnungen-Übersicht) braucht auf schmalen
     Screens eigene, kleinere Positionsangaben statt der Desktop-Fixmaße —
     er wird kompakt unten mittig statt rechts überlappend platziert. Da
     .hero-v2 ein Flex-Container ist, muss der Stack (sobald er per
     position:relative wieder im Fluss liegt) per flex-direction:column
     aus dem Nebeneinander mit .hero-v2__content herausgenommen werden,
     sonst konkurrieren beide um Breite statt jeweils die volle Breite
     zu bekommen. */
  .hero-v2:has(.hero-v2__stack){ flex-direction: column; align-items: stretch; margin-bottom: 0; }
  .hero-v2__stack{
    order: 2;
    position: relative !important;
    left: 0 !important; right: 0 !important; top: auto !important; bottom: auto !important;
    width: 100% !important; height: auto !important;
    display: flex; gap: 10px; margin: 20px 0 0; padding: 0 6vw 32px;
  }
  .hero-v2__stack-photo{
    position: relative !important;
    left: auto !important; top: auto !important; transform: none !important;
    width: 50% !important; height: 130px !important; flex: 1;
  }
  .hero-v2:has(.hero-v2__stack) .hero-v2__content{ order: 1; }
}


/* --------------------------------------------------------------------------
   22. Premium Apartment-Detailseite
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  .apt2__room{ grid-template-columns: 1fr; gap: 24px; direction: ltr !important; }
  .apt2__room:nth-child(even){ direction: ltr; }
  .apt2-hero{ flex-direction: column; align-items: stretch; }
  .apt2-hero__card{ position: relative; right: auto; bottom: auto; margin-top: 24px; }
  .apt2__gallery-grid{ column-count: 2; }
}

@media (max-width: 720px){
  .apt2-hero{ min-height: 92vh; }
  .apt2-hero__content{ padding: 108px 6vw 32px; }
  .apt2-hero__content h1{ max-width: none; font-size: 2.05rem; line-height: 1.08; }
  .apt2-hero__lead{ font-size: .96rem; line-height: 1.58; }
  .apt2-hero__card{ width: 100%; }

  .apt2__lightbox-prev{ left: 8px; }
  .apt2__lightbox-next{ right: 8px; }
  .apt2__lightbox-close{ top: 12px; right: 12px; }
}

@media (max-width: 480px){
  .apt2__gallery-grid{ column-count: 1; max-width: 480px; }
}

@media (max-width: 700px){
  .apt2__slider{ padding: 0 4vw; }
  .apt2__slider-main{ border-radius: 14px; }
  .apt2__slider-arrow{ width: 40px; height: 40px; }
  .apt2__slider-arrow svg{ width: 17px; height: 17px; }
  .apt2__slider-arrow--prev{ left: 8px; }
  .apt2__slider-arrow--next{ right: 8px; }
  .apt2__slider-counter{ right: 10px; bottom: 10px; font-size: .72rem; padding: 5px 10px; }
  .apt2__slider-thumb{ width: 66px; height: 48px; }
}


/* --------------------------------------------------------------------------
   24./25. Motorradtouren (Seite + Startseiten-Teaser)
   -------------------------------------------------------------------------- */
@media (max-width: 860px){
  .moto-teaser{ grid-template-columns: 1fr; }
  .moto-teaser__media img{ aspect-ratio: 16/10; }
}

@media (max-width: 560px){
  .moto-teaser__highlights{ grid-template-columns: 1fr; }
  .tour-card__meta{ gap: 8px 16px; }
  .price-grid{ padding: 0 6vw; }
  .feature-card__icon{ width: 44px; height: 44px; top: -22px; left: 18px; }
  .feature-card__icon svg{ width: 18px; height: 18px; }
  .feature-card__body{ padding: 26px 20px 22px; }
  .tour-card__badge{ width: 58px; }
}


/* --------------------------------------------------------------------------
   26. Buchungs-Suchleiste (Lodgify Portable Search Bar)
   Lodgify stapelt die Eingabefelder auf schmalen Screens untereinander,
   entsprechend braucht der reservierte Platzhalter mehr Mindesthöhe, damit
   sich beim Laden nichts sichtbar verschiebt (kein Layout-Sprung).
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  .booking-search{ min-height: 340px; }
  .booking__card .booking-search{ min-height: 320px; }
}

@media (max-width: 480px){
  .discover-cta{ padding-top: 20px; }
}


/* --------------------------------------------------------------------------
   27. Buchungs-Box (Lodgify Book-Now-Box)
   Enthält zusätzlich zu Datum/Gästen auch eine Preisanzeige, entsprechend
   etwas mehr reservierte Mindesthöhe als die reine Suchleiste, damit auch
   hier nichts sichtbar nachrückt, sobald das Widget geladen ist.
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  .book-now-box{ min-height: 382px; }
  .booking__card .book-now-box{ min-height: 382px; }
}
