/* ============================================================
   EURO HOTEL SUPPLY – referenz.css  v1.0
   Stile für /referenzprojekte/ (öffentlich) und
   /referenzprojekte/intern/referenz-vorlagen/ (intern, noindex)
   Präfix rf- = Referenzprojekte öffentlich
   Präfix intern- = interne Vorlagen
   Alle globalen Variablen kommen aus styles.css.
   ============================================================ */


/* ============================================================
   1. GETEILTE HERO-BASIS (Referenz + Intern)
   ============================================================ */

.rf-hero {
  background: linear-gradient(
    135deg,
    var(--c-navy-dark) 0%,
    var(--c-navy)      55%,
    var(--c-navy-mid)  100%
  );
  padding-block: var(--sp-40);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rf-hero-inner       { max-width: 780px; }
.rf-hero .hero-eyebrow      { color: var(--c-gold-light); }
.rf-hero .hero-eyebrow-line { background-color: var(--c-gold); }

.rf-hero-h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  letter-spacing: -0.022em;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-10);
  max-width: 700px;
}

.rf-hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.72;
  max-width: 640px;
  margin-bottom: var(--sp-6);
}

.rf-hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.68;
  max-width: 600px;
  margin-bottom: var(--sp-16);
}


/* ============================================================
   2. BREADCRUMB
   ============================================================ */

.rf-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

.rf-breadcrumb a          { color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--ease); }
.rf-breadcrumb a:hover    { color: var(--c-gold-light); }
.rf-breadcrumb-sep        { color: rgba(255,255,255,0.2); }
.rf-breadcrumb-current    { color: rgba(255,255,255,0.75); }


/* ============================================================
   3. ÖFFENTLICHE ÜBERSICHTSSEITE – Filter + Karten
   ============================================================ */

/* Filter-Leiste */
.rf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-20);
}

.rf-filter-btn {
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: transparent;
  color: var(--c-text-mid);
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
  font-family: var(--font);
}

.rf-filter-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.rf-filter-btn.is-active {
  background-color: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}

/* Referenz-Karten-Grid – 1D.5: 2 Karten pro Reihe für die aktuell 4 real bebilderten
   Referenzprojekte. Einfache Zahl bewusst beibehalten (kein auto-fit), damit eine spätere
   Erweiterung um weitere Karten nur diese eine Zahl anpassen muss. */
.rf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.rf-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease-slow);
}

/* 1D.5: Hover-/Focus-Styling nur für echte klickbare Karten (<a class="rf-card">) –
   die weiterhin nicht klickbaren internen Platzhalterkarten (<div class="rf-card
   rf-card-pending">) bleiben davon unberührt. */
a.rf-card:hover,
a.rf-card:focus-visible {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  border-color: rgba(192,144,64,0.3);
  transform: translateY(-2px);
}

a.rf-card:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

a.rf-card:hover .rf-card-img,
a.rf-card:focus-visible .rf-card-img {
  transform: scale(1.04);
}

/* Vorschaubild */
.rf-card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--c-navy-mid);
}

.rf-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
  display: block;
}

/* Platzhalter in Referenzkarte */
.rf-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  background: linear-gradient(135deg, #1A2E42 0%, #243447 100%);
  color: rgba(255,255,255,0.14);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  text-align: center;
  padding: var(--sp-8);
}

/* Status-Badge */
.rf-card-status {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: var(--c-gold);
  color: var(--c-white);
}

.rf-card-status.status-earlier {
  background-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
}

/* Karten-Body */
.rf-card-body { padding: var(--sp-10) var(--sp-12); display: flex; flex-direction: column; flex: 1; gap: var(--sp-4); }

.rf-card-location {
  font-size: 0.78rem;
  color: var(--c-text-light);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.rf-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
}

.rf-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.rf-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  background-color: var(--c-gold-subtle);
  color: var(--c-gold-hover);
  border-radius: 3px;
}

.rf-card-teaser {
  font-size: 0.845rem;
  color: var(--c-text-light);
  line-height: 1.58;
  flex: 1;
}

.rf-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-gold);
  margin-top: auto;
  padding-top: var(--sp-4);
  transition: gap var(--ease), color var(--ease);
}

.rf-card-link:hover { gap: 8px; color: var(--c-gold-hover); }

/* "Bald verfügbar" Karte */
.rf-card.rf-card-pending {
  border-style: dashed;
  border-color: var(--c-border-light);
  opacity: 0.65;
}

.rf-card.rf-card-pending .rf-card-title { color: var(--c-text-light); }


/* ============================================================
   4. DETAILSEITE – Hero mit Hauptbild
   ============================================================ */

.rf-detail-hero {
  position: relative;
  background: var(--c-navy-dark);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.rf-detail-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rf-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,30,0.90) 0%, rgba(10,20,30,0.45) 55%, rgba(10,20,30,0.10) 100%);
}

.rf-detail-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--sp-32);
}

.rf-detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.rf-detail-hero-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
}

.rf-detail-hero-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  max-width: 680px;
}

.rf-detail-hero-location {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}


/* ============================================================
   5. STECKBRIEF
   ============================================================ */

.rf-steckbrief {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-16) var(--sp-16);
}

.rf-steckbrief-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-border-light);
}

.rf-steckbrief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6) var(--sp-16);
}

.rf-field { display: flex; flex-direction: column; gap: 3px; }

.rf-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-light);
}

.rf-field-value {
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.45;
}

.rf-field-value a { color: var(--c-gold); text-decoration: underline; text-underline-offset: 2px; }
.rf-field-value a:hover { color: var(--c-gold-hover); }


/* ============================================================
   6. DETAILSEITE – Hauptlayout (Text links, Steckbrief rechts)
   ============================================================ */

.rf-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-24);
  align-items: start;
}

.rf-detail-main {}

.rf-back-to-overview {
  margin-top: var(--sp-32);
  padding-top: var(--sp-20);
  border-top: 1px solid var(--c-border);
}

.rf-prose-section {
  margin-bottom: var(--sp-20);
}

.rf-prose-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 2px solid var(--c-gold-subtle);
}

.rf-prose-section p {
  font-size: 0.975rem;
  color: var(--c-text-mid);
  line-height: 1.72;
  margin-bottom: var(--sp-6);
}

.rf-prose-section p:last-child { margin-bottom: 0; }

/* Leistungsumfang-Liste */
.rf-leistungen-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: 0;
}

.rf-leistungen-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  font-size: 0.9rem;
  color: var(--c-text-mid);
  line-height: 1.55;
}

.rf-leistungen-icon {
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  background-color: var(--c-gold-subtle);
  color: var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* Ablauf-Schritte */
.rf-ablauf {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.rf-ablauf-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
  padding: var(--sp-8);
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
}

.rf-ablauf-num {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  padding-top: 2px;
  flex-shrink: 0;
  width: 20px;
}

.rf-ablauf-text { font-size: 0.875rem; color: var(--c-text-mid); line-height: 1.58; }


/* ============================================================
   7. GALERIE
   ============================================================ */

/* Flexible Galerie – funktioniert für 1 bis viele Bilder */
.rf-gallery { margin-block: var(--sp-20); }

.rf-gallery-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: var(--sp-10);
}

/* Haupt-Grid mit kuratierter Hierarchie */
.rf-gallery-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}

/* Erstes Bild = Hauptbild, volle Breite */
.rf-gallery-grid .rf-img-item:first-child {
  grid-column: 1 / -1;
}

/* 2.+3. Bild nebeneinander */
.rf-gallery-grid .rf-img-item:nth-child(2),
.rf-gallery-grid .rf-img-item:nth-child(3) {
  grid-column: span 1;
}

/* Bei nur 1 oder 2 Bildern funktioniert das grid trotzdem */

.rf-img-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-navy-mid);
  cursor: pointer;
}

.rf-img-item:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

/* Bild */
.rf-img-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ease-slow);
  aspect-ratio: 16/10;
}

.rf-img-item:first-child img { aspect-ratio: 16/7; }

.rf-img-item:hover img { transform: scale(1.03); }

/* Bildunterschrift */
.rf-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-6) var(--sp-8);
  background: linear-gradient(to top, rgba(10,20,30,0.80) 0%, transparent 100%);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.80);
  opacity: 0;
  transition: opacity var(--ease);
}

.rf-img-item:hover .rf-img-caption,
.rf-img-item:focus-within .rf-img-caption { opacity: 1; }

/* Bildplatzhalter innerhalb Galerie */
.rf-img-placeholder {
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  background: linear-gradient(135deg, #1A2E42 0%, #243447 100%);
  padding: var(--sp-10);
  min-height: 180px;
}

.rf-img-item:first-child .rf-img-placeholder { aspect-ratio: 16/7; min-height: 240px; }

.rf-img-placeholder-icon { color: rgba(255,255,255,0.14); }

.rf-img-placeholder-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

.rf-img-placeholder-hint {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.15);
  text-align: center;
  max-width: 24ch;
  line-height: 1.5;
}

/* Lightbox */
.rf-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 20, 30, 0.95);
  align-items: center;
  justify-content: center;
  padding: var(--sp-20);
}

.rf-lightbox.is-open { display: flex; }

.rf-lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
}

.rf-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  display: block;
}

.rf-lightbox-caption {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.rf-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--sp-4);
  line-height: 1;
  font-family: var(--font);
  transition: color var(--ease);
}

.rf-lightbox-close:hover,
.rf-lightbox-close:focus-visible { color: var(--c-white); }
.rf-lightbox-close:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: 3px; }

/* 1D.7: Vor-/Zurück-Navigation innerhalb der geöffneten Lightbox */
.rf-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(10, 20, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease);
  z-index: 1;
}

.rf-lightbox-nav:hover,
.rf-lightbox-nav:focus-visible {
  background: rgba(10, 20, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
}

.rf-lightbox-nav:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

.rf-lightbox-nav[hidden] { display: none; }

.rf-lightbox-prev { left: var(--sp-8); }
.rf-lightbox-next { right: var(--sp-8); }


/* ============================================================
   8. VERWANDTE PROJEKTE
   ============================================================ */

.rf-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}


/* ============================================================
   9. INTERNER VORLAGENBEREICH
   ============================================================ */

/* Banner oben auf jeder internen Seite */
.intern-banner {
  background: linear-gradient(90deg, #7B3F00 0%, #9E5500 100%);
  color: var(--c-white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: var(--sp-6) 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 300;
}

.intern-banner strong { font-weight: 800; }

/* Interne Übersichtskarten */
.intern-vorlage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.intern-vorlage-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-16) var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.intern-vorlage-card:hover {
  border-color: rgba(192,144,64,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.intern-vorlage-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.intern-vorlage-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
}

.intern-vorlage-text {
  font-size: 0.875rem;
  color: var(--c-text-light);
  line-height: 1.62;
  flex: 1;
}

/* Hinweisbox innerhalb interner Seiten */
.intern-hinweis {
  background: rgba(255, 200, 100, 0.08);
  border: 1px solid rgba(192, 144, 64, 0.25);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-12);
  margin-bottom: var(--sp-20);
  font-size: 0.875rem;
  color: var(--c-text-mid);
  line-height: 1.58;
}

.intern-hinweis strong { color: var(--c-navy); }

/* Datenerfassungs-Sektion */
.intern-daten-section {
  margin-bottom: var(--sp-24);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--c-border-light);
}

.intern-daten-section:last-of-type { border-bottom: none; }

.intern-daten-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 2px solid var(--c-gold-subtle);
}

.intern-daten-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4) var(--sp-16);
}

.intern-daten-feld {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--c-border-light);
  align-items: start;
}

.intern-daten-pflicht {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.intern-daten-optional {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--c-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.intern-daten-feld-label {
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 2px;
}

.intern-daten-feld-hint {
  font-size: 0.775rem;
  color: var(--c-text-light);
  line-height: 1.5;
}

.intern-warn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: 0;
}

.intern-warn-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  font-size: 0.875rem;
  color: var(--c-text-mid);
  line-height: 1.55;
}

.intern-warn-icon {
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  background-color: rgba(192, 64, 64, 0.08);
  color: #b03020;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  font-weight: 800; font-size: 0.6rem;
}


/* ============================================================
   10. VORLAGENHINWEIS (Fußzeile jeder internen Seite)
   ============================================================ */

.intern-footer-hinweis {
  background: linear-gradient(90deg, rgba(180, 100, 0, 0.08), rgba(180, 100, 0, 0.04));
  border: 1px solid rgba(192, 144, 64, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--sp-12);
  margin-top: var(--sp-24);
  font-size: 0.845rem;
  color: var(--c-text-mid);
  text-align: center;
  line-height: 1.6;
}

.intern-footer-hinweis strong { color: var(--c-navy); }


/* ============================================================
   RESPONSIVE – TABLET (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {

  .rf-hero         { padding-block: var(--sp-32); }
  .rf-grid         { grid-template-columns: repeat(2, 1fr); }
  .rf-detail-layout { grid-template-columns: 1fr; gap: var(--sp-20); }
  .rf-steckbrief-grid { grid-template-columns: 1fr; }
  .rf-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rf-gallery-grid .rf-img-item:first-child { grid-column: 1 / -1; }
  .rf-gallery-grid .rf-img-item:nth-child(2),
  .rf-gallery-grid .rf-img-item:nth-child(3) { grid-column: span 1; }
  .rf-related-grid { grid-template-columns: repeat(2, 1fr); }

  .intern-vorlage-grid { grid-template-columns: repeat(2, 1fr); }
  .intern-daten-grid   { grid-template-columns: 1fr; }
}


/* ============================================================
   RESPONSIVE – MOBILE (max 768px)
   ============================================================ */

@media (max-width: 768px) {

  .rf-hero      { padding-block: var(--sp-24); }
  .rf-hero-h1   { font-size: clamp(1.5rem, 5.5vw, 2.1rem); }
  .rf-hero-lead { font-size: 0.95rem; }

  .rf-grid                   { grid-template-columns: 1fr; }
  .rf-detail-hero            { min-height: 280px; }
  .rf-gallery-grid           { grid-template-columns: 1fr; }
  .rf-gallery-grid .rf-img-item:first-child { grid-column: 1; }
  .rf-related-grid           { grid-template-columns: 1fr; }
  .rf-filter-bar             { gap: var(--sp-2); }
  .rf-steckbrief-grid        { grid-template-columns: 1fr; }

  .intern-vorlage-grid { grid-template-columns: 1fr; }

  .rf-lightbox { padding: var(--sp-8); }
  .rf-lightbox-nav { width: 36px; height: 36px; }
  .rf-lightbox-prev { left: var(--sp-4); }
  .rf-lightbox-next { right: var(--sp-4); }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .rf-img-item img,
  .rf-card,
  .rf-card-img { transition: none !important; }
}
