/* ==========================================================================
   BEAUTYBOX Düsseldorf – Stylesheet
   Aufbau:
   1. Design-Tokens      6. Hero            11. Kontakt
   2. Basis / Reset      7. Quick-Info      12. Footer
   3. Layout             8. Über uns        13. Impressum
   4. Typografie         9. Team            14. Breakpoints
   5. Navigation        10. Leistungen / SV
   ========================================================================== */

/* 1. DESIGN-TOKENS ========================================================= */

:root{
  --bb-red:#e84236;
  --bb-red2:#ff6257;
  --bb-dark:#151515;
  --bb-gray:#2a2a2a;
  --bb-light:#f2f2f2;
  --bb-white:#fff;
  --bb-muted:#bdbdbd;

  --radius:26px;
  --radius-sm:18px;
  --nav-h:82px;

  --space-section:96px;
}

/* 2. BASIS / RESET ========================================================= */

*{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  overflow-x:clip;              /* Sicherheitsnetz gegen seitliches Scrollen */
  font-family:Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:var(--bb-dark);
  color:var(--bb-white);
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }

img{ max-width:100%; }

button{ font:inherit; }

:focus-visible{
  outline:3px solid var(--bb-red2);
  outline-offset:3px;
  border-radius:6px;
}

/* Sticky-Nav darf Sprungziele nicht verdecken */
section[id], header[id]{ scroll-margin-top:calc(var(--nav-h) + 12px); }

/* 3. LAYOUT ================================================================ */

.wrap{
  width:min(1180px, calc(100% - 40px));
  margin-inline:auto;
}

section{ padding:var(--space-section) 0; }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:38px;
}

/* Kopfzeile ohne zweite Spalte */
.section-head--solo{ display:block; margin-bottom:44px; }

/* 4. TYPOGRAFIE ============================================================ */

h1, h2, h3{ overflow-wrap:break-word; }

h1{
  font-size:clamp(44px, 9vw, 92px);
  line-height:.95;
  margin:18px 0;
  font-weight:950;
  text-transform:uppercase;
}

h1 .serif{ font-family:Georgia, serif; display:block; }
h1 .red{ color:var(--bb-red); }

/* kurzer roter Strich am Ende der ersten Zeile: BEAUTY- / BOX */
h1 .dash{
  color:var(--bb-red);
  margin-left:.04em;
  letter-spacing:0;
}

h2{
  font-size:clamp(30px, 4vw, 58px);
  line-height:1.05;
  margin:10px 0 0;
}

.kicker{
  color:var(--bb-red2);
  font-weight:900;
  font-size:clamp(13px, 1.4vw, 16px);
  letter-spacing:.16em;
  text-transform:uppercase;
}

.eyebrow{
  color:var(--bb-red);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.14em;
}

/* große Variante – trägt bei „Über uns" und „Team" die Überschrift */
.eyebrow-xl{
  margin:0;
  color:var(--bb-red);
  font-size:clamp(28px, 7vw, 64px);
  font-weight:900;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.06em;
  overflow-wrap:break-word;
  hyphens:auto;
}

/* „Gutachten & Sachverständige" ist gut doppelt so lang wie „Team" oder
   „Über uns" und bricht bei fester Größe um. Ab Tabletbreite wächst die
   Schrift deshalb mit der Spaltenbreite mit, statt bei 64px stehenzubleiben –
   damit passt die Zeile von 700px aufwärts immer am Stück. */
@media (min-width:700px){
  #sv .eyebrow-xl{ font-size:min(60px, calc(5vw - 2px)); }
}

/* Falls es auf schmalen Geräten doch umbricht, dann zwischen den Wörtern
   und nicht mitten im Wort. */
#sv .eyebrow-xl{ hyphens:manual; }


.lead{
  font-size:clamp(17px, 1.7vw, 24px);
  line-height:1.45;
  color:var(--bb-light);
  max-width:600px;
}

.sub{
  max-width:650px;
  color:#d1d1d1;
  font-size:clamp(16px, 1.2vw, 18px);
  line-height:1.65;
}

/* 5. BUTTONS =============================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:var(--bb-red);
  color:#fff;
  border:0;
  border-radius:14px;
  padding:15px 22px;
  font-weight:900;
  font-size:clamp(12px, 1vw, 14px);
  text-transform:uppercase;
  letter-spacing:.08em;
  cursor:pointer;
  transition:background .2s, transform .2s;
  box-shadow:0 12px 32px rgba(232,66,54,.28);
}

.btn:hover{ background:var(--bb-red2); }
.btn:active{ transform:translateY(1px); }

/* 6. NAVIGATION ============================================================ */

.nav{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(21,21,21,.86);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-inner{
  min-height:var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.logo{ display:flex; align-items:center; flex:0 0 auto; }

.logo img{
  height:64px;
  width:auto;
  display:block;
}

.menu{
  display:flex;
  gap:24px;
  font-weight:700;
  color:#eee;
}

.menu a{ padding:6px 0; transition:color .2s; }
.menu a:hover{ color:var(--bb-red2); }

/* Burger – nur unterhalb des Menü-Breakpoints sichtbar */
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:46px;
  height:42px;
  padding:0;
  background:transparent;
  border:1px solid rgba(255,255,255,.2);
  border-radius:12px;
  cursor:pointer;
}

.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  margin-inline:auto;
  background:#fff;
  border-radius:2px;
  transition:transform .25s, opacity .2s;
}

.nav.open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2){ opacity:0; }
.nav.open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* 7. HERO ================================================================== */

.hero{
  position:relative;
  background:url("assets/header-bg-2.webp") center / cover no-repeat;
}

/* Abdunklung als eigene Ebene: links hinter der Schrift kräftig,
   rechts über dem Gesicht deutlich leichter. */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    100deg,
    rgba(8,8,8,.90)  0%,
    rgba(8,8,8,.78) 38%,
    rgba(8,8,8,.42) 66%,
    rgba(8,8,8,.55) 100%
  );
}

.hero > .wrap{ position:relative; z-index:1; }

.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
  min-height:calc(100vh - var(--nav-h));
  padding:70px 0;
}

.hero-copy{ padding:40px 0; }

.hero-note{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:20px;
  color:#e6e6e6;
  font-weight:700;
}

/* Häkchen: offener Kreis, dessen Lücke der Haken durchstößt */
.check-icon{
  flex:0 0 auto;
  width:34px;
  height:36px;
  overflow:visible;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.check-ring{
  stroke:rgba(255,255,255,.55);
  stroke-width:2;
}

.check-mark{
  stroke:var(--bb-red);
  stroke-width:3.2;
}

.hero-card{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.hero-card img{
  width:100%;
  max-width:560px;
  aspect-ratio:5 / 6;
  object-fit:cover;
  object-position:center top;
  border-radius:36px;
  display:block;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}

/* 8. QUICK-INFO ============================================================ */

.quick-info{
  padding:90px 0;
  background:var(--bb-light);
}

.quick-info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap:26px;
}

.quick-box{
  background:#fff;
  color:var(--bb-dark);
  border-radius:24px;
  padding:34px 28px;
  text-align:center;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.quick-icon{
  width:70px;
  height:70px;
  margin:0 auto 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffe6e3;
  color:var(--bb-red);
  border-radius:20px;
  font-size:34px;
}

.quick-box h3{ margin:0 0 10px; color:var(--bb-dark); }
.quick-box p{ margin:0; color:#555; line-height:1.55; }

/* 9. ÜBER UNS / KARTEN ===================================================== */

.about{
  background:var(--bb-light);
  color:var(--bb-dark);
}

.about .sub{ color:#444; }

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap:20px;
}

.card{
  background:#fff;
  color:#202020;
  border-radius:var(--radius);
  padding:28px;
  box-shadow:0 22px 60px rgba(0,0,0,.12);
  border:1px solid #ddd;
}

.card.dark{
  background:#222;
  color:#fff;
  border-color:#3a3a3a;
}

.card h3{ font-size:25px; margin:0 0 14px; }
.card p{ line-height:1.6; }

/* --- Über uns: ein Satz, über drei farbige Karten verteilt --- */

.cards--story{ gap:24px; }

.cards--story .card{
  display:flex;
  align-items:center;
  padding:38px 34px;
}

.cards--story p{
  margin:0;
  font-size:clamp(18px, 1.5vw, 23px);
  font-weight:600;
  line-height:1.5;
}

/* Die Farbvarianten (tone-white / tone-gray / tone-red) stehen weiter unten
   im Abschnitt „Farbvarianten", damit sie für Karten und Gutachten-Felder
   gleichermaßen gelten. */

.price{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-top:1px solid rgba(128,128,128,.25);
}

.price strong{ color:var(--bb-red); white-space:nowrap; }

/* 10. TEAM ================================================================= */

.team{
  background:linear-gradient(135deg, #151515 0%, #2a2a2a 56%, #151515 100%);
}

.team-tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  margin:34px 0 46px;
}

.team-tab{
  border:1px solid rgba(255,255,255,.16);
  background:#242424;
  color:#fff;
  padding:14px 22px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  transition:background .25s, border-color .25s;
}

.team-tab:hover,
.team-tab.active{
  background:var(--bb-red);
  border-color:var(--bb-red);
}

.team-slide{ display:none; }

.team-slide.active{
  display:block;
  animation:teamFade .45s ease;
}

@keyframes teamFade{
  from{ opacity:0; transform:translateY(18px); }
  to  { opacity:1; transform:translateY(0); }
}

/* --- Flip-Karte --- */

/* Vorder- und Rückseite liegen in derselben Rasterzelle übereinander.
   Dadurch richtet sich die Kartenhöhe nach der längeren der beiden Seiten –
   kein fester Wert, an dem lange Texte abgeschnitten werden. */
.profile-slider{
  display:grid;
  max-width:950px;
  min-height:520px;
  margin-inline:auto;
  perspective:1300px;
}

.profile-page{
  grid-area:1 / 1;
  overflow-y:auto;
  background:#242424;
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:34px 38px;
  display:grid;
  align-content:center;
  box-shadow:0 30px 80px rgba(0,0,0,.38);
  backface-visibility:hidden;
  transition:transform .7s, opacity .7s;
}

.profile-page.back{
  transform:rotateY(180deg);
  opacity:0;
  align-content:start;
  pointer-events:none;
}

.profile-slider.show-back .front{ transform:rotateY(-180deg); opacity:0; pointer-events:none; }
.profile-slider.show-back .back { transform:rotateY(0);       opacity:1; pointer-events:auto; }

.profile-page::-webkit-scrollbar{ width:8px; }
.profile-page::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.25);
  border-radius:20px;
}

/* --- Farbwechsel pro Person: dunkel → rot → hell --- */

.theme-dark .profile-page{
  background:#242424;
  color:#fff;
}

.theme-red .profile-page{
  background:var(--bb-red);
  border-color:rgba(255,255,255,.28);
  color:#fff;
}

.theme-red .orbit-box .ico{ color:#fff; }
.theme-red .orbit-box p,
.theme-red .back-text .sub{ color:rgba(255,255,255,.93); }
.theme-red .orbit-photo img{ border-color:rgba(255,255,255,.45); }
.theme-red .fun-photo{ background:rgba(0,0,0,.2); }

.theme-red .btn{
  background:var(--bb-dark);
  box-shadow:0 12px 32px rgba(0,0,0,.32);
}
.theme-red .btn:hover{ background:#000; }

.theme-light .profile-page{
  background:var(--bb-light);
  border-color:rgba(0,0,0,.1);
  color:var(--bb-dark);
}

.theme-light .orbit-box p,
.theme-light .back-text .sub{ color:#4a4a4a; }
.theme-light .orbit-photo img{ border-color:rgba(0,0,0,.1); }
.theme-light .fun-photo{ background:#ddd; }
.theme-light .profile-page::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.25); }

/* --- Vorderseite: Foto in der Mitte, vier Infoboxen drumherum --- */

.team-orbit{
  display:grid;
  grid-template-columns:1fr 300px 1fr;
  grid-template-areas:
    "box1 photo box2"
    "box3 photo box4";
  gap:18px 28px;
  align-items:center;
}

.orbit-photo{
  grid-area:photo;
  display:flex;
  justify-content:center;
  align-items:center;
}

.orbit-photo img{
  width:260px;
  height:260px;
  border-radius:50%;
  object-fit:cover;
  border:6px solid rgba(255,255,255,.15);
}

.orbit-box{ text-align:center; }

/* Symbole: als SVG aus dem Sprite oben im HTML, „Aa" und „§" als Text.
   Beide erben die Farbe, damit sie sich der Kartenfarbe anpassen. */
.icon-sprite{ display:none; }

.ico{
  display:block;
  margin:0 auto 10px;
  color:var(--bb-red);
}

svg.ico{
  width:30px;
  height:30px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ico-text{
  font-size:28px;
  font-weight:800;
  line-height:30px;
}

.orbit-box b{ display:block; font-size:20px; margin-bottom:10px; }
.orbit-box p{ margin:0; color:#ccc; font-size:16px; line-height:1.45; }

.box-a{ grid-area:box1; }
.box-b{ grid-area:box2; }
.box-c{ grid-area:box3; }
.box-d{ grid-area:box4; }

/* Azubi-Profile mit nur zwei Feldern */
.team-orbit--2{
  grid-template-areas:"box1 photo box2";
  align-items:center;
}

.toggle{ margin-top:24px; }

/* Name über der Vorderseite */
.profile-name{
  margin:0 0 22px;
  text-align:center;
  font-size:clamp(26px, 2.6vw, 38px);
  line-height:1.1;
}

.azubi-tag{
  display:inline-block;
  margin-left:10px;
  padding:5px 12px;
  border:1px solid currentColor;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  vertical-align:middle;
  opacity:.75;
}

/* Platzhalter, solange Foto oder Text fehlen */
.photo-placeholder{
  width:260px;
  height:260px;
  border-radius:50%;
  border:6px dashed currentColor;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  opacity:.45;
}

.photo-placeholder span{ font-size:70px; font-weight:900; line-height:1; }
.photo-placeholder small{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; }

.fun-photo--placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:2px dashed currentColor;
  opacity:.4;
}

.fun-photo--placeholder span{ font-size:64px; font-weight:900; line-height:1; }
.fun-photo--placeholder small{ font-size:13px; letter-spacing:.1em; text-transform:uppercase; }

.todo{
  font-style:normal;
  padding:2px 8px;
  border-radius:6px;
  background:rgba(232,66,54,.16);
  color:inherit;
  font-weight:700;
}

/* Legende: wofür welches Symbol steht */
.icon-legend{
  max-width:950px;
  margin:44px auto 0;
  padding:26px 30px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
}

.icon-legend-title{
  margin:0 0 18px;
  color:var(--bb-red2);
  font-weight:900;
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-align:center;
}

.icon-legend ul{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap:14px 20px;
  margin:0;
  padding:0;
  list-style:none;
}

.icon-legend li{
  display:flex;
  align-items:center;
  gap:10px;
  color:#d8d8d8;
  font-size:15px;
}

.icon-legend .ico{ margin:0; flex:0 0 auto; }
.icon-legend svg.ico{ width:22px; height:22px; }
.icon-legend .ico-text{ font-size:19px; line-height:22px; width:26px; text-align:center; }

/* Schlusswort unter dem Team-Bereich */
.team-outro{
  max-width:860px;
  margin:44px auto 0;
  text-align:center;
  color:#d8d8d8;
  font-size:clamp(17px, 1.4vw, 20px);
  line-height:1.65;
}

/* --- Rückseite: Foto links, Text rechts --- */

.back-layout{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:34px;
  align-items:start;
}

.fun-photo{
  width:100%;
  height:460px;
  object-fit:cover;
  object-position:center top;
  border-radius:24px;
  background:#111;
}

.back-text{ display:flex; flex-direction:column; }

.back-text h3{
  font-size:clamp(26px, 3vw, 42px);
  line-height:1.1;
  margin:0 0 20px;
}

.back-text .sub{ max-width:100%; }
.back-text .toggle{ margin-top:auto; align-self:flex-start; }

/* 10b. LEISTUNGEN ========================================================== */

.services{
  background:#fff;
  color:var(--bb-dark);
}

.services .sub{ color:#555; }

.service-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap:18px;
}

.service{
  background:var(--bb-light);
  border-radius:24px;
  padding:24px;
  border-bottom:5px solid var(--bb-red);
}

.service h3{ margin:0 0 12px; font-size:24px; }
.service p{ margin:0; line-height:1.55; color:#4a4a4a; }

/* 10d. KUNDENSTIMMEN ======================================================= */

.reviews{
  background:var(--bb-light);
  color:var(--bb-dark);
}

.rating-panel{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:22px 46px;
  padding:30px 34px;
  margin-bottom:34px;
  background:#fff;
  border:1px solid #e2e2e2;
  border-radius:var(--radius);
  box-shadow:0 22px 60px rgba(0,0,0,.08);
}

.rating-score{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.rating-score strong{
  font-size:clamp(44px, 5vw, 64px);
  line-height:1;
  font-weight:900;
}

.rating-score small{ color:#666; font-size:15px; }

.stars{
  position:relative;
  display:inline-block;
  font-size:28px;
  line-height:1;
  letter-spacing:.08em;
  white-space:nowrap;
}

.stars-bg{ color:#d9d9d9; }

.stars-fg{
  position:absolute;
  inset:0;
  overflow:hidden;
  color:var(--bb-red);
}

.rating-note{
  flex:1 1 280px;
  margin:0;
  color:#555;
  line-height:1.6;
  font-size:15px;
}

.rating-note a{
  color:var(--bb-red);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

.review-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap:20px;
}

/* sechs Zitate gehen auf breiten Schirmen sauber in zwei Dreierreihen auf */
@media (min-width:1040px){
  .review-grid{ grid-template-columns:repeat(3, 1fr); }
}

.review{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:28px;
  background:#fff;
  border:1px solid #e2e2e2;
  border-radius:var(--radius);
  box-shadow:0 14px 40px rgba(0,0,0,.07);
}

.review blockquote{
  margin:0;
  font-size:18px;
  line-height:1.55;
  color:#202020;
}

.review figcaption{
  margin-top:auto;
  font-weight:800;
  color:var(--bb-dark);
}

.review-meta{
  display:block;
  margin-top:4px;
  font-weight:600;
  font-size:14px;
  color:#777;
}

/* 10e. GUTACHTEN & SACHVERSTÄNDIGE ========================================= */

.sv-section{
  background:linear-gradient(180deg, #1b1b1b 0%, #131313 100%);
}

.sv-claim{
  margin:0 0 26px;
  font-size:clamp(22px, 2.6vw, 34px);
  font-weight:900;
  line-height:1.2;
  color:var(--bb-white);
}

.sv-intro{
  max-width:760px;
  margin-bottom:44px;
}

.sv-intro p{
  margin:0 0 18px;
  color:#d1d1d1;
  font-size:clamp(16px, 1.2vw, 18px);
  line-height:1.7;
}

.sv-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap:20px;
}

.sv-card{
  background:#242424;
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius);
  padding:30px;
}

.sv-card .ico{ margin:0 0 18px; }
.sv-card svg.ico{ width:34px; height:34px; }

.sv-card h3{ margin:0 0 14px; font-size:21px; line-height:1.25; }
.sv-card p{ margin:0; color:#d3d3d3; line-height:1.65; }

.sv-bottom{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap:20px;
  margin-top:20px;
}

.sv-panel{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius);
  padding:30px;
}

.sv-panel h3{ margin:0 0 18px; font-size:22px; }
.sv-panel p{ margin:0 0 16px; color:#cfcfcf; line-height:1.7; }
.sv-panel p:last-child{ margin-bottom:0; }

.check-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}

.check-list li{
  display:flex;
  align-items:center;
  gap:12px;
  color:#e4e4e4;
  font-weight:600;
}

.check-list .ico{ margin:0; flex:0 0 auto; color:var(--bb-red2); }
.check-list svg.ico{ width:20px; height:20px; stroke-width:2.6; }

.sv-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:24px 34px;
  margin-top:20px;
  padding:34px;
  background:linear-gradient(120deg, #2b2b2b, #1c1c1c);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius);
}

.sv-cta > div{ flex:1 1 340px; }
.sv-cta h3{ margin:0 0 12px; font-size:24px; }
.sv-cta p{ margin:0; color:#cfcfcf; line-height:1.7; max-width:640px; }

/* 10f. FARBVARIANTEN ======================================================= */
/* gelten für die Karten bei „Über uns" und die Felder bei „Gutachten" */

.tone-white{
  background:#fff;
  color:#202020;
  border-color:#e2e2e2;
}

.tone-gray{
  background:var(--bb-gray);
  color:#fff;
  border-color:#3a3a3a;
}

.tone-red{
  background:var(--bb-red);
  color:#fff;
  border-color:var(--bb-red);
  box-shadow:0 22px 60px rgba(232,66,54,.28);
}

.tone-white p{ color:#4a4a4a; }
.tone-gray  p{ color:#dcdcdc; }
.tone-red   p{ color:rgba(255,255,255,.93); }

.tone-red .ico{ color:#fff; }

/* 11. KONTAKT ============================================================== */

.contact{ background:linear-gradient(90deg, #202020, #111); }

.contact-box{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap:24px;
  background:#2b2b2b;
  border-radius:var(--radius);
  padding:34px;
  border:1px solid rgba(255,255,255,.1);
}

.contact-box h3{ margin-top:0; font-size:24px; }
.contact-box p{ line-height:1.7; }
/* Die farbigen Links im Kontaktblock - Buttons sind ausgenommen,
   sonst stuende roter Text auf rotem Grund. */
.contact-box a[href^="tel"]:not(.btn),
.contact-box a[href^="mailto"]:not(.btn){ color:var(--bb-red2); word-break:break-word; }

.contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.hours{ display:grid; gap:8px; }

.hours div{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid rgba(255,255,255,.1);
  padding:9px 0;
}

/* 12. FOOTER =============================================================== */

footer{
  background:#0d0d0d;
  padding:34px 0;
  color:#aaa;
}

.footer-content{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:16px 28px;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}

.footer-links a{ transition:color .2s; }
.footer-links a:hover{ color:var(--bb-red2); }

/* 13. IMPRESSUM & DATENSCHUTZ ============================================== */

.legal-section{
  padding:120px 0;
  background:linear-gradient(180deg, #151515 0%, #101010 100%);
}

.legal-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap:30px;
  margin-top:50px;
}

.legal-card{
  background:#1d1d1d;
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  padding:38px;
}

.legal-card.full{ grid-column:1 / -1; }

.legal-card h3{ margin:0 0 24px; color:var(--bb-white); font-size:30px; }

.legal-card p{
  color:#cfcfcf;
  line-height:1.9;
  margin:0 0 20px;
}

.legal-card a{ color:var(--bb-red); word-break:break-word; }

/* 14. BREAKPOINTS ========================================================== */

/* --- ab hier passen Foto + Text der Rückseite nicht mehr nebeneinander --- */
@media (max-width:1024px){

  .back-layout{ grid-template-columns:260px 1fr; gap:26px; }
  .fun-photo{ height:380px; }
  .profile-page{ padding:30px; }
}

/* --- Tablet / großes Handy: Menü wird zum Burger --- */
@media (max-width:900px){

  :root{ --space-section:70px; }

  .nav-toggle{ display:flex; }

  .menu{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    gap:0;
    padding:8px 20px 20px;
    background:#141414;
    border-bottom:1px solid rgba(255,255,255,.1);
    box-shadow:0 20px 40px rgba(0,0,0,.55);
  }

  .nav.open .menu{ display:flex; }

  .menu a{
    padding:15px 4px;
    border-bottom:1px solid rgba(255,255,255,.07);
  }

  .hero-grid{
    grid-template-columns:1fr;
    gap:34px;
    min-height:auto;
    padding:60px 0 70px;
  }

  .hero-card{ display:none; }

  /* Auf dem Handy liegt die Schrift über dem ganzen Bild –
     deshalb hier gleichmäßig abdunkeln statt seitlichem Verlauf. */
  .hero{ background-position:68% center; }

  .hero::before{
    background:linear-gradient(rgba(8,8,8,.80), rgba(8,8,8,.70));
  }

  .section-head{
    display:block;
  }

  .section-head .sub{ margin-top:18px; }

  /* Flip-Effekt auf kleinen Geräten durch einfaches Umschalten ersetzen –
     eine 3D-Drehung auf einer schmalen, hohen Karte wirkt unruhig. */
  .profile-slider{
    min-height:0;
    perspective:none;
  }

  .profile-page{
    overflow-y:visible;
    transform:none;
    transition:none;
    backface-visibility:visible;
  }

  .profile-page.back{
    display:none;
    transform:none;
    opacity:1;
  }

  .profile-slider.show-back .profile-page.front{
    display:none;
    transform:none;
  }

  .profile-slider.show-back .profile-page.back{
    display:grid;
    transform:none;
    pointer-events:auto;
  }

  .team-orbit{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "photo photo"
      "box1  box2"
      "box3  box4";
    gap:24px 20px;
  }

  .team-orbit--2{
    grid-template-areas:
      "photo photo"
      "box1  box2";
  }

  .icon-legend{ padding:22px; }
  .sv-cta{ padding:26px; }
  .rating-panel{ padding:26px; }

  .back-layout{ grid-template-columns:1fr; }

  /* Ueber die volle Kartenbreite wuerde ein Hochformat-Foto zu einem
     flachen Streifen beschnitten. Deshalb hier mittig und im Hochformat. */
  .fun-photo{
    justify-self:center;
    width:min(100%, 340px);
    height:425px;
  }
  .back-text .toggle{ align-self:stretch; margin-top:26px; }
}

/* --- Handy --- */
@media (max-width:600px){

  :root{ --nav-h:70px; --space-section:56px; }

  .wrap{ width:min(1180px, calc(100% - 32px)); }

  .nav-inner{ gap:10px; }

  .logo img{ height:44px; max-width:160px; object-fit:contain; }

  .nav .btn{ padding:11px 13px; font-size:11px; letter-spacing:.05em; }

  .hero-copy{ padding:20px 0; }

  .quick-info{ padding:60px 0; }
  .quick-box{ padding:28px 22px; }

  .team-tab{ flex:1 1 calc(50% - 7px); padding:13px 10px; }

  .profile-page{ padding:24px 20px; border-radius:20px; }

  .team-orbit{
    grid-template-columns:1fr;
    grid-template-areas:
      "photo"
      "box1"
      "box2"
      "box3"
      "box4";
    gap:22px;
  }

  .team-orbit--2{
    grid-template-areas:
      "photo"
      "box1"
      "box2";
  }

  .orbit-photo img,
  .photo-placeholder{ width:200px; height:200px; }
  .photo-placeholder span{ font-size:56px; }

  .icon-legend ul{ grid-template-columns:1fr; }
  .review, .sv-card, .sv-panel{ padding:24px; }

  .toggle, .back-text .toggle{ width:100%; }

  .card, .legal-card{ padding:24px; }
  .legal-card h3{ font-size:24px; }
  .legal-section{ padding:70px 0; }

  .contact-box{ padding:24px; }

  .footer-content{ justify-content:center; text-align:center; }
  .footer-links{ justify-content:center; }
}

/* --- Barrierefreiheit: Animationen abschalten, wenn gewünscht --- */
@media (prefers-reduced-motion: reduce){

  html{ scroll-behavior:auto; }

  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

/* Stand-Angabe unter der Gesamtbewertung */
.rating-stand{
  display:inline-block;
  margin-top:2px;
  color:#888;
  font-size:13px;
}

/* Hinweis unter den Preisbeispielen */
.preis-hinweis{
  margin:26px 0 0;
  color:#555;
  font-size:15px;
  line-height:1.6;
}

.preis-hinweis a{
  color:var(--bb-red);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* 15. TREATWELL-WIDGET UND EINWILLIGUNG ==================================== */

.tw-widget{
  /* Treatwell gibt dem iframe eine viel zu kleine Hoehe mit. Wir setzen sie
     selbst; meldet das Widget per postMessage seine echte Hoehe, ueberschreibt
     das Skript diesen Wert. */
  --tw-hoehe:1000px;
  position:relative;
  margin-bottom:28px;
}

/* !important, weil das Widget-Skript die Masse inline setzt */
.tw-widget iframe{
  display:block !important;
  width:100% !important;
  height:var(--tw-hoehe) !important;
  max-width:100% !important;
  min-width:0 !important;
  border:0 !important;
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 22px 60px rgba(0,0,0,.08);
}

/* der Container, den das Skript befuellt, darf nicht einengen */
#wahanda-online-booking-widget-iframe{
  width:100%;
  max-width:100%;
}

#twLink[hidden]{ display:none; }

/* Hinweisfläche, solange die Einwilligung fehlt */
.tw-gate{
  background:#fff;
  border:1px solid #e2e2e2;
  border-radius:var(--radius);
  padding:40px 34px;
  text-align:center;
  box-shadow:0 22px 60px rgba(0,0,0,.08);
}

.tw-gate[hidden]{ display:none; }

.tw-gate h3{
  margin:0 0 14px;
  font-size:clamp(22px, 2.4vw, 28px);
  color:var(--bb-dark);
}

.tw-gate p{
  max-width:620px;
  margin:0 auto 24px;
  color:#555;
  line-height:1.7;
}

.tw-gate-alt{
  margin-top:20px !important;
  margin-bottom:0 !important;
  font-size:15px;
}

.tw-gate-alt a{
  color:var(--bb-red);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* nur eine Gutscheinkarte – die soll nicht über die volle Breite laufen */
.cards--gutschein{
  grid-template-columns:minmax(min(380px, 100%), 420px);
}

/* --- Einwilligungsbanner --- */

.consent{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:100;
  display:block;
  background:#141414;
  border-top:2px solid var(--bb-red);
  box-shadow:0 -18px 50px rgba(0,0,0,.5);
  padding:22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
}

.consent[hidden]{ display:none; }

.consent-inner{
  width:min(1180px, 100%);
  margin-inline:auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:20px 34px;
}

.consent-inner > div:first-child{ flex:1 1 420px; min-width:0; }

.consent-title{
  margin:0 0 8px;
  font-weight:900;
  font-size:17px;
  color:var(--bb-white);
}

.consent-text{
  margin:0;
  color:#cfcfcf;
  font-size:15px;
  line-height:1.6;
}

.consent-text a{
  color:var(--bb-red2);
  text-decoration:underline;
  text-underline-offset:3px;
}

.consent-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  flex:0 0 auto;
}

/* Ablehnen und Akzeptieren sind gleich groß und gleich gut sichtbar */
.consent-actions .btn{ min-width:160px; justify-content:center; }

.btn-ghost{
  background:transparent;
  border:2px solid rgba(255,255,255,.55);
  color:var(--bb-white);
  box-shadow:none;
}

.btn-ghost:hover{
  background:rgba(255,255,255,.12);
  border-color:#fff;
}

/* Schaltfläche im Footer, die aussieht wie die Links daneben */
.footer-linkbutton{
  background:none;
  border:0;
  padding:0;
  color:inherit;
  font:inherit;
  cursor:pointer;
  text-decoration:none;
  transition:color .2s;
}

.footer-linkbutton:hover{ color:var(--bb-red2); }

@media (max-width:600px){
  .consent{ padding:18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .consent-actions{ width:100%; }
  .consent-actions .btn{ flex:1 1 140px; }
  .tw-gate{ padding:30px 22px; }
}


/* Widget-Hoehe auf kleineren Geraeten */
@media (max-width:900px){
  .tw-widget{ --tw-hoehe:900px; }
}

@media (max-width:600px){
  .tw-widget{ --tw-hoehe:780px; }
  .tw-widget iframe{ border-radius:18px; }
}
