/* ============================================================
   Ruster Optik – Zusatz-CSS für Block-Elemente
   ------------------------------------------------------------
   Diese Klassen werden im Block-Editor über
   "Erweitert -> Zusätzliche CSS-Klasse(n)" an Gruppen/Spalten
   vergeben. Texte und Bilder bleiben ganz normal editierbar,
   diese Datei sorgt nur für das Erscheinungsbild.
   ============================================================ */

:root{
  --line:#DCD2BC;
}

/* Sanftes Verhalten für Nutzer mit "Bewegung reduzieren" */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* -------------------- Kopfbereich -------------------- */
/* WordPress bettet Template-Parts automatisch in einen zusätzlichen
   <div class="wp-block-template-part"> ein, der genauso hoch ist wie
   der Header selbst. "Sticky" muss deshalb auf diesem äußeren Wrapper
   sitzen -- sonst hat der Header keinen Platz, sich von seinem eigenen
   (gleich hohen) Container zu lösen, und "klebt" nie sichtbar. */
.wp-block-template-part:has(> header.site-header){
  position: sticky; top: 0; z-index: 100;
}
.site-header{
  background: rgba(251,247,239,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
}
.site-header .wp-block-navigation{ font-size: 14.5px; font-weight: 500; }
.site-header .wp-block-navigation-item__content{ padding: 4px 14px; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--wp--preset--color--ink); color:var(--wp--preset--color--cream); padding:10px 16px; z-index:200; }
.skip-link:focus{ left:16px; top:16px; }

/* -------------------- Eyebrow-Label -------------------- */
.eyebrow{
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wp--preset--color--oak); display:flex; align-items:center; gap:10px;
  margin-bottom: 10px !important;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--wp--preset--color--sand); display:inline-block; }

/* -------------------- Abschnittstrenner -------------------- */
hr.reed-divider{
  border:none; border-top:1px solid var(--line); position:relative; margin:56px auto !important;
}
hr.reed-divider::before{
  content:"⁙"; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  background:var(--wp--preset--color--cream); padding:0 14px; color:var(--wp--preset--color--sand); font-size:20px;
}

/* -------------------- Hero -------------------- */
.hero-lead{ max-width:46ch; color:var(--wp--preset--color--ink-soft); font-size:17.5px; }
.hero-underline{ border-bottom:3px solid var(--wp--preset--color--sand); }

.wp-block-columns.hero-facts{ border-top:1px solid var(--line); padding-top:26px; margin-top:20px !important; }
.hero-facts .fact-num{
  font-family: var(--wp--preset--font-family--heading); font-size:26px; font-weight:500;
  color: var(--wp--preset--color--oak); margin:0 !important;
}
.hero-facts .fact-label{ font-size:12.5px; color:var(--wp--preset--color--ink-soft); margin:0 !important; }

/* -------------------- Runde "Linse" (Signatur-Bildmotiv) -------------------- */
.lens-wrap{ position:relative; }
.lens-wrap .lens{
  aspect-ratio:1/1; border-radius:50%; overflow:hidden;
  border:10px solid var(--wp--preset--color--ink);
  box-shadow:0 30px 60px -25px rgba(43,33,25,0.35);
  position:relative;
}
.lens-wrap .lens img{ width:100%; height:100%; object-fit:cover; }
.lens-wrap .lens::after{
  content:""; position:absolute; inset:0; border-radius:50%;
  box-shadow: inset 0 0 0 22px rgba(251,247,239,0.9); pointer-events:none;
}
.lens-badge{
  position:absolute; bottom:-14px; left:50%; transform:translateX(-50%);
  background:var(--wp--preset--color--cream); border:1px solid var(--line); border-radius:40px;
  padding:9px 20px !important; font-size:12.5px !important; font-family: var(--wp--preset--font-family--mono);
  white-space:nowrap; box-shadow:0 8px 20px -10px rgba(0,0,0,0.2);
}

/* -------------------- Leistungen: 3 Karten -------------------- */
.wp-block-columns.services-grid{
  border:1px solid var(--line); background:var(--line); gap:2px !important;
}
.wp-block-column.service-card{
  background:var(--wp--preset--color--cream); padding:34px 30px !important;
  min-height:200px; transition:background .2s ease;
}
.wp-block-column.service-card:hover{ background:var(--wp--preset--color--paper); }
.service-card .arrow{ font-size:13px; font-weight:600; color:var(--wp--preset--color--oak); }
.service-card .arrow::after{ content:" →"; }

/* -------------------- Wissen-Vorschau -------------------- */
.wp-block-query.wissen-grid .wp-block-post-template{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px; list-style:none; margin:0; padding:0;
}
.wp-block-query.wissen-grid .wp-block-post-template > li{ margin:0; }
.wp-block-column.wissen-card,
.wissen-card{
  position:relative;
  border:1px solid var(--line); border-radius:6px; overflow:hidden;
  background:var(--wp--preset--color--paper);
  box-shadow:0 10px 24px -18px rgba(43,33,25,0.35);
  transition:transform .18s ease, box-shadow .18s ease;
  padding:0 !important;
}
.wissen-card:hover{ transform:translateY(-4px); box-shadow:0 18px 30px -16px rgba(43,33,25,0.4); cursor:pointer; }
.wissen-thumb{ margin:0 !important; }
.wissen-thumb img{ width:100%; display:block; }
.wissen-card-body{ padding:22px 24px 26px !important; }
.wissen-card .read{ position:static; font-size:13px; font-weight:600; color:var(--wp--preset--color--oak); }
.wissen-card .read::after{ content:" →"; }
/* Ganze Karte klickbar machen: unsichtbare Fläche über der gesamten Karte,
   die zum selben Ziel führt wie "Artikel lesen" (kein Bug, wenn Titel/Bild
   optisch "darunter" liegen -- sie führen ohnehin zum gleichen Artikel). */
.wissen-card .read::before{
  content:""; position:absolute; inset:0; z-index:2;
}

@media (max-width: 900px){
  .wp-block-query.wissen-grid .wp-block-post-template{ grid-template-columns:1fr; }
}

/* -------------------- Über uns -------------------- */
.about-quote{
  font-family: var(--wp--preset--font-family--heading); font-size:22px; line-height:1.4;
  color: var(--wp--preset--color--oak);
}

/* -------------------- Terminanfrage (dunkles Panel) -------------------- */
.termin-panel{
  background: var(--wp--preset--color--panel) !important; color: var(--wp--preset--color--cream);
  border-radius:6px; padding:44px !important;
}
.termin-panel h2, .termin-panel p, .termin-panel li{ color: var(--wp--preset--color--cream); }
.termin-panel .eyebrow{ color: var(--wp--preset--color--sand); }
.termin-panel .eyebrow::before{ background: var(--wp--preset--color--sand); }
.termin-list{ list-style:none; padding:0; margin:20px 0 0; font-family: var(--wp--preset--font-family--mono); font-size:13px; }
.termin-list li{ display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid rgba(251,247,239,0.15); }
.termin-form-box{ background:var(--wp--preset--color--cream); border-radius:4px; padding:24px; color:var(--wp--preset--color--ink); }

/* -------------------- Kontakt -------------------- */
.info-row{ display:flex; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); font-size:14.5px; }
.info-row b{ min-width:120px; display:inline-block; }
.map-box{
  background:var(--wp--preset--color--paper); border:1px solid var(--line); border-radius:4px;
  min-height:280px; display:flex; align-items:center; justify-content:center; padding:20px; text-align:center;
}

/* -------------------- Bewertungen -------------------- */
.wp-block-columns.reviews-grid{ gap:24px !important; }
.review-card{
  border:1px solid var(--line); border-radius:5px; padding:28px 30px !important; background:var(--wp--preset--color--paper);
}
.review-card .review-score{ font-family: var(--wp--preset--font-family--heading); font-size:40px; margin:10px 0 0 !important; }
.review-card .review-stars{ color:var(--wp--preset--color--sand); letter-spacing:2px; font-size:15px; }

/* -------------------- Wissen: Themen-Filter -------------------- */
.wissen-filter{ display:flex; flex-wrap:wrap; gap:10px; margin:20px 0 36px; }
.wissen-filter-btn{
  font-family: var(--wp--preset--font-family--body); font-size:13.5px; font-weight:500;
  padding:9px 18px; border-radius:40px; border:1px solid var(--line);
  background:transparent; color:var(--wp--preset--color--ink-soft); cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.wissen-filter-btn:hover{ border-color:var(--wp--preset--color--oak); }
.wissen-filter-btn.is-active{
  background:var(--wp--preset--color--oak); border-color:var(--wp--preset--color--oak); color:var(--wp--preset--color--cream);
}

/* -------------------- Wissen-Artikel Vorlage -------------------- */
.artikel-lead{ color: var(--wp--preset--color--ink-soft); }
.kurz-box{
  background: var(--wp--preset--color--paper); border-left: 3px solid var(--wp--preset--color--oak);
  border-radius: 2px;
}

/* -------------------- Footer -------------------- */
.site-footer{ background: var(--wp--preset--color--panel); color: var(--wp--preset--color--cream); padding:60px 32px 26px; }
.site-footer h4{
  font-family: var(--wp--preset--font-family--mono); font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--wp--preset--color--sand);
}
.site-footer a{ color:#D9CFC0; }
.site-footer .wp-block-image img{ filter:brightness(0) invert(1); }
.footer-bottom{ border-top:1px solid rgba(251,247,239,0.15); padding-top:20px; margin-top:30px !important; font-size:12.5px; color:#B7AB98; }

/* -------------------- Cookie-Banner -------------------- */
.cookie-banner{
  position:fixed; bottom:16px; left:16px; right:16px; max-width:560px; margin:0 auto;
  background:var(--wp--preset--color--cream); border:1px solid var(--wp--preset--color--ink); border-radius:5px;
  padding:20px 22px; box-shadow:0 20px 40px -15px rgba(0,0,0,0.3); z-index:300; display:none;
}
.cookie-banner.is-visible{ display:block; }
.cookie-banner p{ font-size:13px; margin:0 0 12px; color:var(--wp--preset--color--ink-soft); }
.cookie-actions{ display:flex; gap:10px; }
.cookie-actions button{ flex:1; cursor:pointer; }

/* -------------------- Terminanfrage-Formular (Fluent Forms) -------------------- */
/* Einheitliche, gut lesbare Schriftgröße für alle Eingabefelder --
   Dropdowns bekommen ohne diese Regel oft eine kleinere Browser-Standard-
   schrift als Textfelder. Wichtig für Kunden mit Sehbeeinträchtigung. */
.fluentform .ff-el-form-control,
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control{
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  color: var(--wp--preset--color--ink) !important;
  background-color: var(--wp--preset--color--cream) !important;
  border: 1px solid var(--line) !important;
  border-radius: 3px !important;
  padding: 12px 14px !important;
}
.fluentform .ff-el-form-control:focus{
  border-color: var(--wp--preset--color--oak) !important;
  box-shadow: 0 0 0 3px rgba(138,94,55,0.15) !important;
  outline: none !important;
}
.fluentform label.ff-el-form-label{
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--wp--preset--color--ink) !important;
  margin-bottom: 6px !important;
}
/* Mehrzeiliges Textfeld ("Was sollten wir noch wissen") großzügiger */
.fluentform textarea.ff-el-form-control{
  min-height: 130px !important;
}
/* Submit-Button im Stil der restlichen Website */
.fluentform button.ff-btn-submit{
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  background-color: var(--wp--preset--color--panel) !important;
  color: var(--wp--preset--color--cream) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 14px 30px !important;
  cursor: pointer;
  transition: background-color .2s ease;
}
.fluentform button.ff-btn-submit:hover{
  background-color: var(--wp--preset--color--ink) !important;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 900px){
  .wp-block-columns.services-grid,
  .wp-block-columns.wissen-grid,
  .wp-block-columns.reviews-grid{ flex-direction: column; }
}
