/* ═══════════════════════════════════════════════════════════════════════════
   Styles des Basis-Designs „Amara" (template-one).

   ACHTUNG — DIESE DATEI GILT FÜR ALLE DESIGNS.
   public/site.html lädt sie fest, nicht abhängig vom aktiven Design. Alles, was hier NICHT
   unter .t1-* steht — :root-Tokens, body, .container, .section, .btn, .input —, wirkt damit
   auch in Strähne und Myra. Die beiden bringen ihre eigenen, klassengebundenen Regeln mit
   (.strahne / .sbq) und überschreiben das Nötige; wer hier eine ungescopte Regel ändert,
   ändert also drei Designs auf einmal.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ===== Salon template design tokens ===== */
:root {
  /* Warm cream-toned palette */
  --bg: oklch(0.972 0.012 78);
  --bg-2: oklch(0.955 0.014 75);
  --surface: oklch(0.99 0.006 78);
  --beige: oklch(0.88 0.024 70);
  --beige-2: oklch(0.82 0.030 65);
  --rose: oklch(0.86 0.038 22);
  --rose-2: oklch(0.78 0.050 22);
  --ink: oklch(0.22 0.008 60);
  --ink-2: oklch(0.38 0.010 60);
  --muted: oklch(0.53 0.010 60); /* trägt kleine Schrift – siehe schemes.css */
  --line: oklch(0.88 0.010 70);
  --line-2: oklch(0.82 0.014 70);
  --gold: oklch(0.62 0.060 75);

  /* Grund der Leistungs-Kacheln. Eigenes Token statt --surface, weil das auch .card,
     .chip und .btn-light tragen — die Kachel liegt auf --bg-2 und braucht im dunklen
     Farbdesign mehr Hub, als dort für die übrigen Flächen richtig wäre. */
  --t1-tile: oklch(0.99 0.006 78);

  /* Frei gewählte Akzentfarbe. Steht hier nur, damit das Token nie unaufgelöst ist;
     gesetzt wird es ausschließlich als Inline-Property an <html>, und gelesen wird es
     ausschließlich unter :root[data-t1-accent] in schemes.css. */
  --t1-accent: oklch(0.86 0.038 22);

  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --ui: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px oklch(0.2 0.01 60 / 0.05);
  --shadow-m: 0 12px 40px -18px oklch(0.2 0.01 60 / 0.18);
  --shadow-l: 0 30px 80px -30px oklch(0.2 0.01 60 / 0.22);

  /* ── Tokens für die Farbdesigns von „Amara" ────────────────────────────────
     Die Werte hier sind EXAKT die, die vorher als Literale im Stylesheet und in
     den Sektionen standen — dieser Block ändert das Aussehen um kein Pixel.
     Überschrieben werden sie ausschließlich in Template1/schemes.css, gescoped
     auf :root[data-t1-scheme="…"].

     WICHTIG: Jedes dieser Tokens braucht hier einen Wert. Eine unaufgelöste var()
     fällt nicht auf den vorherigen Wert zurück, sondern auf den Initialwert der
     Eigenschaft — und templates-src/straehne/source.jsx benutzt die nackte Klasse
     `btn`. Stünde --radius-pill nur unter [data-t1-scheme], bekäme Strähne
     border-radius:0 und rechteckige Buttons. */
  --radius-pill: 999px;

  /* Große dunkle Flächen (TopStrip, Stimmen, Footer). Sie bleiben in JEDEM
     Farbdesign dunkel — auch im dunklen: mit var(--ink) kippten sie dort auf
     Blendweiß und das weiß gesetzte Logo verschwände darin. */
  --invert-bg: oklch(0.22 0.008 60);
  --invert-surface: oklch(0.27 0.01 60);
  --invert-ink: oklch(0.972 0.012 78);
  --invert-ink-2: oklch(0.88 0.024 70);
  --invert-ink-3: oklch(0.85 0.015 70);
  --invert-ink-4: oklch(0.78 0.02 70);
  --invert-muted: oklch(0.65 0.01 60);
  --invert-muted-2: oklch(0.62 0.01 60); /* Team-Login im Fuß: 4,5:1 auf dem dunklen Band */
  --invert-line: oklch(0.5 0.01 60);
  --invert-line-2: oklch(0.4 0.01 60);
  --invert-line-3: oklch(0.32 0.01 60);
  --invert-accent: oklch(0.45 0.04 25);

  /* Kartengrafik im Kontaktbereich (SVG). Eigene Tokens, weil die vorhandenen
     Palettenwerte sichtbar heller sind als die Originalstriche. */
  --map-grid: oklch(0.7 0.02 70);
  --map-street: oklch(0.65 0.02 70);
  /* Echte Google-Karte nach dem Klick (window.SalonMap): Graustufen, dann eine Papier-
     Schicht im Seitenton (multiply macht das Kartenweiß zu --bg) und nur ein Hauch Akzent —
     kräftiger getönt wirkte die Karte schnell schrill (Salbei) oder schlammig (nacht).
     Das dunkle Farbdesign dreht die Karte um und hellt mit screen auf (schemes.css). */
  --map-filter: grayscale(1) contrast(0.96) brightness(1.04);
  --map-wash-blend: multiply;
  --map-tint-opacity: 0.15;

  --on-rose: oklch(0.22 0.008 60);   /* Schrift auf Rosé-Flächen (Chip, Newsletter, .btn-rose) */
  --err: #b4231f;
  --scrim: oklch(0.14 0.012 60 / 0.66);
  --btn-primary-hover: oklch(0.30 0.01 60);
  --btn-light-hover: white;
  --btn-rose-hover: var(--rose-2); /* eigener Wert nur in „mohn“ (schemes.css) */
  /* Hauptknopf auf dem Titelbild der Bühne (schemes.css). Vorgabe = .btn-primary, also kein
     Unterschied; „mohn“ setzt dort die Koralle, weil der dunkle Knopf auf dem Schleier versinkt. */
  --t1-stage-cta-bg: var(--ink);
  --t1-stage-cta-ink: var(--bg);
  --t1-stage-cta-hover: var(--btn-primary-hover);

  /* Bild-Platzhalter (gestreift, wenn kein Foto gepflegt ist) */
  --ph-stripe: oklch(0.78 0.015 70 / 0.45);
  --ph-from: oklch(0.90 0.020 65);
  --ph-to: oklch(0.84 0.030 60);
  --ph-ink: oklch(0.35 0.015 60);
  --ph-rose-stripe: oklch(0.74 0.045 22 / 0.45);
  --ph-rose-from: oklch(0.90 0.035 22);
  --ph-rose-to: oklch(0.83 0.050 22);
  --ph-dark-stripe: oklch(0.35 0.01 60 / 0.5);
  --ph-dark-from: oklch(0.30 0.008 60);
  --ph-dark-to: oklch(0.22 0.008 60);
  --ph-dark-fg: oklch(0.85 0.02 70);
  --tag-bg: oklch(1 0 0 / 0.7);
  --tag-dark-bg: oklch(0 0 0 / 0.4);
  --tag-dark-fg: oklch(0.95 0.005 70);

  /* Schriftpaarung: nur Cormorant Garamond bringt echte Kursive mit. Eine Paarung
     mit Grotesk-Display stellt --display-style auf normal, sonst rechnet der Browser
     eine schiefe Fälschung. */
  --display-style: italic;
  --display-weight: 300;
  --display-track: -0.01em;
  --eyebrow-family: var(--ui);

  /* Bildstil */
  --img-filter: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ui);
  /* 16px, nicht 15: alles darunter löst auf iOS beim Fokus eines Eingabefelds einen Zoom aus,
     aus dem der Gast nicht mehr herausfindet (die Felder erben font über `font: inherit`). */
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
/* color:inherit fehlte: ein <button> faellt sonst auf die Systemfarbe (Schwarz) zurueck.
   Im hellen Design faellt das nicht auf, im dunklen wird die Schrift unsichtbar —
   z. B. die Stellentitel im Karriere-Bereich. Straehne und Myra setzen dasselbe
   bereits in ihren eigenen, gescopten Regeln; fuer sie aendert sich hier nichts. */
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ===== Type ===== */
.display { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.02; }
.display em { font-style: var(--display-style); font-weight: var(--display-weight); color: var(--rose-2); }
.eyebrow {
  font-family: var(--eyebrow-family);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.serif-italic { font-family: var(--display); font-style: var(--display-style); font-weight: 400; }
.kicker { font-family: var(--eyebrow-family); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--btn-primary-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--btn-light-hover); }
.btn-rose { background: var(--rose); color: var(--on-rose); }
.btn-rose:hover { background: var(--btn-rose-hover); }
.btn-text { background: none; border: none; padding: 6px 0; color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn-sm { padding: 9px 16px; font-size: 12.5px; }

/* ===== Image placeholders — subtle stripes ===== */
.imgph {
  position: relative;
  background:
    linear-gradient(135deg, transparent 0%, transparent 49.5%, var(--ph-stripe) 49.5%, var(--ph-stripe) 50.5%, transparent 50.5%) 0 0 / 14px 14px,
    linear-gradient(180deg, var(--ph-from), var(--ph-to));
  color: var(--ph-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  overflow: hidden;
}
.imgph.rose {
  background:
    linear-gradient(135deg, transparent 0%, transparent 49.5%, var(--ph-rose-stripe) 49.5%, var(--ph-rose-stripe) 50.5%, transparent 50.5%) 0 0 / 14px 14px,
    linear-gradient(180deg, var(--ph-rose-from), var(--ph-rose-to));
}
.imgph.ink {
  background:
    linear-gradient(135deg, transparent 0%, transparent 49.5%, var(--ph-dark-stripe) 49.5%, var(--ph-dark-stripe) 50.5%, transparent 50.5%) 0 0 / 14px 14px,
    linear-gradient(180deg, var(--ph-dark-from), var(--ph-dark-to));
  color: var(--ph-dark-fg);
}
.imgph .tag {
  background: var(--tag-bg);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
}
.imgph.ink .tag { background: var(--tag-dark-bg); color: var(--tag-dark-fg); }

/* ===== Hero =====
   Diese Werte standen bis zum Varianten-Umbau als Inline-Styles im JSX. Sie sind
   hier 1:1 uebernommen — der Umbau selbst aendert das Aussehen nicht. Erst dadurch
   lassen sich die Varianten in Template1/schemes.css ueberhaupt formulieren:
   gegen Inline-Styles kaeme keine Regel ohne !important an, und !important wuerde
   mit dem Mobil-Block am Dateiende kollidieren. */
.t1-hero-section { padding: 40px 0 90px; }
.t1-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.t1-hero-kicker { align-items: center; margin-bottom: 28px; }
.t1-hero-rule { width: 36px; height: 1px; background: var(--ink); }
.t1-hero-title { font-size: clamp(56px, 7vw, 104px); margin: 0; }
.t1-hero-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 480px; margin-top: 32px; }
.t1-hero-stats { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.t1-hero-statvalue { font-size: 36px; }
.t1-hero-visual { position: relative; height: 720px; }
.t1-hero-main { position: absolute; inset: 0; }
.t1-hero-detail {
  position: absolute;
  bottom: -34px;
  left: -34px;
  width: 220px;
  height: 280px;
  overflow: hidden;
  border: 8px solid var(--bg);
}
.t1-hero-detail > .imgph { width: 100%; height: 100%; }
.t1-hero-aicard {
  position: absolute;
  top: 24px;
  right: -24px;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow-m);
}
.t1-hero-aiquote {
  font-family: var(--display);
  font-style: var(--display-style);
  font-size: 18px;
  line-height: 1.3;
  margin: 10px 0 0;
}

/* Bildstil (Feld „Bildstil"): --img-filter ist im Standard `none`, dieser Block
   ändert das Aussehen also erst, wenn ein Stil gewählt wurde. */
.imgph img, .t1-svc-img img { filter: var(--img-filter); }

/* ===== Layout helpers ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--container-pad, 40px); }
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.divider { height: 1px; background: var(--line); }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
}
.card-flat {
  background: var(--bg-2);
  border-radius: var(--radius-l);
  padding: 28px;
}

/* ===== Pill chips ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ===== Abschnitts-Rhythmus =====
   Welchen Grund eine Flaeche traegt, entscheidet ihre NACHBARSCHAFT. Den Ton vergibt
   window.SalonRhythm zur Laufzeit (public/app/section-rhythm.js) und setzt ihn als
   data-tone; hier steht nur, wie die drei Töne aussehen.

   Vorher stand hier eine `:nth-child(even of .partner-section--amara, #salon, #team,
   #galerie)`-Regel. Die kannte nur vier der zwölf Flächen, zählte also an der falschen
   Menge — sobald ein Salon etwas ausblendete, stießen gleichfarbige Nachbarn aneinander.
   Außerdem war sie ungescopt und färbte Strähne und Myra mit ein. */
/* Eigene Abschnitte (window.SalonSections) stehen in derselben Spalte wie alles andere:
   --wrap-w ist die Breite von .container, das seitliche Polster kommt aus demselben Token
   und folgt damit auch seinen Haltestellen. Vorher war die Innenspalte 1080px breit und
   begann dadurch 120px weiter rechts als jede Ueberschrift der Seite. */
.t1 .secblk { --sec-pad: 90px; --secblk-pad: 0; --wrap-w: 1400px; --radius-img: var(--radius-m); }
.t1 .secblk-inner { padding-inline: var(--container-pad, 40px); }
.t1 [data-tone='grund'] { background: var(--bg); }
.t1 [data-tone='weich'] { background: var(--bg-2); }
.t1 [data-tone='invers'] { background: var(--invert-bg); color: var(--invert-ink); }

/* ===== Kopfleiste ===== */
.t1-topstrip {
  background: var(--invert-bg);
  color: var(--invert-ink);
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 0.05em;
}

/* ===== Marke ===== */
/* Das Aussehen der Marke gehört in diese Datei, nicht in den Inline-Style von atoms.jsx:
   ein Inline-Wert schlägt JEDE Medienregel. Genau daran scheiterte die 520px-Klammer weiter
   unten — max-width:200px stand am Element selbst, das Bild wurde deshalb nie kleiner,
   sondern vom overflow:hidden der .logo beschnitten. Dynamisch bleibt nur, was von `size`
   abhängt. */
.t1 .logo { display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
/* Marke auf einer der dunklen Flächen (TopStrip, Footer). */
.t1 .logo.logo-light { color: var(--invert-ink); }
.t1 .logo .logo-img { width: auto; max-width: 200px; object-fit: contain; align-self: center; }
/* Auf den dunklen Flächen (Kopfleiste, Fuß) bekommt das Bildlogo eine helle Platte. Es gibt
   nur EINE hochgeladene Datei, und die ist für den hellen Kopf gezeichnet — ohne Platte
   verschwindet ein dunkles Logo dort einfach. Umfärben ist keine Alternative: das nähme der
   Marke ihre Farben. */
.t1 .logo.logo-light .logo-img {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-s, 6px);
  padding: 5px 9px;
  box-sizing: border-box;
}
.t1 .logo-wordmark { font-family: var(--ui); font-weight: 600; letter-spacing: 0.32em; }
/* Slogan: ein Satz, keine Wortmarke. */
.t1 .logo-slogan {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  max-width: 34ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Form ===== */
.t1 .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.t1 .field label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  /* Explizit, damit ein Design mit kleinerer Grundschrift den iOS-Zoom nicht zurückholt. */
  font-size: 16px;
  color: var(--ink);
  transition: border 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); }
.textarea { resize: vertical; min-height: 100px; }

/* ===== Utility ===== */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }

/* Mid-range (laptops 881–1180px): collapse secondary actions */
@media (max-width: 1180px) {
  .hide-md { display: none !important; }
  .shrink-md { max-width: 240px !important; width: 240px !important; }
}

/* Mobile */
@media (max-width: 880px) {
  :root { --container-pad: 22px; }
  .section { padding: 70px 0; }
  .hide-mobile { display: none !important; }
  /* Bleibt nach `hide-mobile` nichts übrig, entfällt die ganze Leiste statt als leerer
     dunkler Streifen stehen zu bleiben. */
  .t1-topstrip:not(.has-mobile-content) { display: none; }
}
@media (min-width: 881px) {
  .show-mobile { display: none !important; }
}

/* ===== Mobile-Optimierung Template One =====
   Die Sektionen nutzen Inline-Grids; deshalb hier mit !important auf die
   Klassen-Hooks (t1-*) zugreifen, um die Spalten mobil sauber zu stapeln. */

/* Kein horizontales Scrollen (clip statt hidden → sticky-Header bleibt intakt). */
html, body { overflow-x: clip; max-width: 100%; }

/* Burger-Button (mobiles Menü) */
.t1-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2); color: var(--ink);
}
.t1-mobile-facts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.t1-mobile-facts span { display: flex; gap: 8px; align-items: flex-start; }
.t1-mobile-drawer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 18px 22px 26px;
  /* Langes Menü auf kleinen Screens scrollt im Drawer statt über den Viewport hinaus. */
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.t1-mobile-nav { display: flex; flex-direction: column; }
.t1-mobile-nav a {
  padding: 14px 4px; font-size: 17px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.t1-mobile-actions { display: grid; gap: 10px; margin-top: 18px; }
.t1-mobile-actions .btn { width: 100%; min-height: 48px; }

@media (max-width: 880px) {
  /* Größere, gut tappbare Buttons. Auch das Tablet-Hochformat (768px) wird getippt — die
     Grenze gehört deshalb hierher und nicht in den 520px-Block. */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 42px; padding: 11px 18px; }
  .btn-text { min-height: 40px; display: inline-flex; align-items: center; }
  .chip { min-height: 40px; display: inline-flex; align-items: center; }
  .t1 .logo { min-height: 44px; align-items: center; }
  .t1-head a.flex { min-height: 40px; }

  /* Header kompakter. Die seitlichen 24px MÜSSEN mit: das !important überschreibt das
     Inline-Padding des Kopfs, und mit `14px 0` klebten Logo und Burger am Bildschirmrand. */
  .t1-header-inner { padding: 14px 24px !important; }

  /* Abschnitts-Köpfe mit seitlicher Aktion → untereinander */
  .t1-head { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }

  /* Hero: stapeln, dekorative Float-Karten ausblenden.
     `min-width: 0` ist tragend: Raster-Kinder schrumpfen sonst nicht unter ihre Inhaltsbreite
     (min-width: auto), und die Überschrift schob die ganze Spalte über den Bildschirmrand.
     Die Textspalte löst sich auf (`display: contents`), damit die Kennzahlen UNTER das Bild
     rücken können: vorher stand zwischen Buchen-Knopf und Bild noch der Kennzahlen-Block, und
     das Titelbild – auf dem Desktop die halbe Bühne – begann erst nach dem ersten Bildschirm.
     Nicht in „buehne": dort IST die Textspalte die Fläche auf dem Bild (schemes.css). */
  .t1-hero { grid-template-columns: 1fr !important; gap: 0 !important; }
  .t1-hero > * { min-width: 0; }
  .t1-hero-section:not([data-variant='buehne']) .t1-hero-copy { display: contents; }
  .t1-hero-section:not([data-variant='buehne']) .t1-hero-copy > * { min-width: 0; }
  .t1-hero-section:not([data-variant='buehne']) .t1-hero-visual { order: 1; margin-top: 36px; }
  .t1-hero-section:not([data-variant='buehne']) .t1-hero-stats { order: 2; }
  .t1-hero h1 { overflow-wrap: anywhere; hyphens: auto; }
  .t1-hero .flex { flex-wrap: wrap; }
  /* Detailbild und AI-Karte lagen als absolute Overlays auf dem Hauptbild. Untereinander
     gestapelt waren es zwei bildschirmbreite Fotos direkt nacheinander (480px Bild im
     Startbereich). Jetzt bleibt die Komposition des Desktops: das Detailbild sitzt als
     kleiner Abzug mit Passepartout auf der unteren Ecke des Hauptbilds – im Fluss, über
     negativen Rand, damit die AI-Karte danach nicht überdeckt wird. `display` setzt diese
     Regel bewusst NICHT für die Kinder: „zentriert" und „buehne" regeln das in schemes.css. */
  .t1-hero-visual {
    height: auto !important;
    max-height: none !important;
    display: block;
  }
  .t1-hero-main {
    position: relative;
    inset: auto;
    height: clamp(250px, 66vw, 460px);
  }
  .t1-hero-detail, .t1-hero-aicard {
    position: relative;
    inset: auto;
    box-shadow: none;
  }
  .t1-hero-detail {
    z-index: 1;
    width: clamp(104px, 31%, 200px);
    height: auto;
    aspect-ratio: 4 / 5;
    margin: calc(clamp(104px, 31%, 200px) * -0.9) 0 0 14px;
    border-width: 5px;
  }
  .t1-hero-aicard { width: auto; margin-top: 18px; }

  /* Inhalts-Grids → eine Spalte */
  .t1-services-grid { grid-template-columns: 1fr !important; }
  .t1-about { grid-template-columns: 1fr !important; gap: 32px !important; }
  .t1-about-images { grid-template-columns: 1fr 1fr !important; grid-template-rows: 130px 130px !important; }
  .t1-gallery-grid { grid-template-columns: 1fr 1fr !important; grid-auto-rows: 170px !important; grid-auto-flow: dense; }
  .t1-reviews-grid { grid-template-columns: 1fr !important; }
  .t1-contact { grid-template-columns: 1fr !important; gap: 34px !important; }
  .t1-faq { grid-template-columns: 1fr !important; gap: 30px !important; }
  .t1-newsletter { grid-template-columns: 1fr !important; gap: 22px !important; padding: 36px 24px !important; }
  .t1-team-grid { grid-template-columns: 1fr 1fr !important; }
  .t1-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 30px !important; }
}

@media (max-width: 520px) {
  .t1-header-inner { padding: 12px 16px !important; }
  /* Der Buchen-Knopf war hier ausgeblendet — die wichtigste Handlung der Seite lag damit
     auf dem schmalsten Gerät hinter dem Burger. Er bleibt jetzt sichtbar und schrumpft
     stattdessen auf sein Symbol; der Name steht im aria-label. */
  .t1 .t1-header-cta__label { display: none; }
  .t1 .t1-header-cta { padding-left: 12px; padding-right: 12px; }
  /* Startbereich auf dem Handy: Titel und Buchen-Knopf gehören in den ersten Bildschirm,
     und das Bild soll dort schon anschneiden. Fix 56px (das clamp-Minimum) war auf 360px
     ein Plakat mit neun Zeichen je Zeile; 40px Polster oben + 90px unten kamen nie herunter,
     weil der Hero keine .section ist. */
  .t1-hero-section { padding: 22px 0 56px; }
  .t1-hero-kicker { margin-bottom: 20px; }
  .t1-hero-title { font-size: clamp(40px, 12vw, 56px); }
  .t1-hero-section[data-variant] .t1-hero-lead { font-size: 16.5px; margin-top: 18px; }
  .t1-hero-cta { margin-top: 24px; }
  .t1-hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .t1-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 16px;
    justify-self: stretch;
    margin-top: 44px;
    padding-top: 20px;
  }
  .t1-hero-statvalue { font-size: 28px; }
  /* Der Kopf hat auf 320px keinen Platz für Logo + zwei Buttons + Burger nebeneinander.
     Die Konto-Buttons wandern ins Menü, das sie ohnehin führt. */
  .t1-header-inner .hide-mobile { display: none !important; }
  /* Lange Wortmarken schoben den Burger über den Rand. */
  .t1 .logo { min-width: 0; max-width: calc(100vw - 160px); overflow: hidden; }
  .t1 .logo .logo-img { max-width: 100%; }
  .section { padding: 48px 0 !important; }
  .section-tight { padding: 40px 0 !important; }
  :root { --container-pad: 16px; }
  /* Team und Galerie bleiben zweispaltig: einspaltig war jedes Porträt so hoch wie ein
     halber Bildschirm, und die Bento-Spannen der Galerie (span 2) erzeugten neben der einen
     Spalte eine implizite zweite – schmal wie ein Etikett, die Kacheln darin Streifen. */
  .t1 .t1-team-grid { gap: 22px 14px; }
  .t1-team-card .between { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .t1-team-card h3 { font-size: 21px !important; }
  .t1-gallery-grid { grid-auto-rows: 140px !important; gap: 10px; }
  /* Leistungskarten: einspaltig bleibt richtig (Text braucht die Breite), aber das Banner
     über jeder Karte war 168px – sieben Leistungen, sieben Fotos nacheinander. */
  .t1 .t1-svc-card { padding: 22px; min-height: 0; }
  .t1 .t1-svc-img { margin: -22px -22px 18px; height: 128px; }
  .t1 .t1-contact-form { padding: 24px 20px; }
  /* Eigene Abschnitte folgen dem Abschnittsabstand der Seite (48px) – mit 90px lagen
     dazwischen fast doppelt so große Lücken. Marken: siehe Partner-Block unten. */
  .t1 .secblk { --sec-pad: 48px; }
  .t1-contact-cards,
  .t1-footer-grid { grid-template-columns: 1fr !important; }
  .t1-form-names { grid-template-columns: 1fr !important; }
  /* Die Werte-Kacheln unter „Über uns" hatten als einziges Raster keine Klasse und
     blieben deshalb bis 320px zweispaltig. */
  .t1-about-values { grid-template-columns: 1fr !important; }
}

/* ── Geometrie der Inhalts-Raster ──────────────────────────────────────────
   Diese Werte standen bis zum Aufbau-Varianten-Umbau als Inline-Styles im JSX
   (Template1/sections-1.jsx, sections-2.jsx). Sie sind hierher gewandert, weil ein
   Inline-Style jede Regel ohne !important schlägt: solange die Geometrie am Element
   klebte, konnte kein Variantenblock sie ersetzen — dieselbe Vorgeschichte wie beim
   Hero, siehe Kopf der Hero-Varianten in Template1/schemes.css.

   Die Werte sind 1:1 übernommen. Wer hier etwas ändert, ändert das Aussehen JEDES
   Salons auf dem Basis-Design, nicht nur das einer Variante. */

.t1-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 1px Fuge, gefüllt vom Grund des Rasters — daher die Linienfarbe darunter. */
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

/* Eigener Grund, NICHT --bg-2: die Sektion darunter setzt selbst --bg-2, die Kachel hätte
   damit exakt die Farbe ihres Untergrunds und wäre nur an den 1px-Fugen zu ahnen. */
.t1-svc-card {
  background: var(--t1-tile);
  padding: 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Dezenter Leistungsbanner am Kartenkopf, randlos: die negativen Ränder heben exakt das
   Polster der Karte auf und hängen deshalb an dessen Wert. */
.t1-svc-img { margin: -32px -32px 22px; height: 168px; overflow: hidden; }
/* Das Polster stand inline im JSX und war damit für keine Mobilregel erreichbar. */
.t1-contact-form { padding: 36px; }

.t1-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t1-team-portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-l); }

.t1-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  /* `dense`: Die zweite breite Kachel passt in Reihe 2 nicht mehr neben die hohe dritte und
     rutscht in Reihe 3 — ohne Nachfüllen blieb davor eine leere Zelle stehen (bei acht Bildern
     immer genau eine). */
  grid-auto-flow: dense;
  gap: 14px;
}
.t1-gallery-item { border-radius: var(--radius-l); grid-column: span 1; grid-row: span 1; }
/* Bento-Rhythmus: erste und sechste Kachel breit, dritte hoch. Vorher als Index-Rechnung
   im JSX (index === 0 || index === 5 bzw. index === 2). */
.t1-gallery-grid > .t1-gallery-item:nth-child(1),
.t1-gallery-grid > .t1-gallery-item:nth-child(6) { grid-column: span 2; }
.t1-gallery-grid > .t1-gallery-item:nth-child(3) { grid-row: span 2; }

/* ── Leistungs-Kategorie-Filter (modern, Template One) ── */
.t1-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.t1-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.t1-cat-tab:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.t1-cat-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Die Zahl bleibt zurückgenommen, aber lesbar: mit 0.55 stand sie bei 2,9:1. */
.t1-cat-count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.t1-cat-tab.active .t1-cat-count { opacity: 0.85; }
@media (max-width: 720px) {
  .t1-cat-filter { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -22px 28px; padding: 0 22px 4px; }
  .t1-cat-tab { flex: 0 0 auto; }
}
/* Der Scroller zieht sich über den Innenabstand des Containers hinaus, damit die Chips am
   Rand „anschneiden". Der Abstand ist NICHT konstant: 22px ab 880px, 16px ab 520px. Jeder
   feste Wert ragt deshalb irgendwo über den Bildschirmrand — die Blutungen unten spiegeln
   exakt die Containerabstände. */
@media (max-width: 520px) {
  .t1-cat-filter { margin: 0 -16px 28px; padding: 0 16px 4px; }
}

/* Rich-Text im „Über uns"-Block: die Absätze kommen aus dem Editor, deshalb hier die
   Ränder normalisieren statt im JSX. Nur Amara setzt diese Klasse. */
.t1-about-body > :first-child { margin-top: 0; }
.t1-about-body > :last-child { margin-bottom: 0; }
.t1-about-body p { margin: 0 0 12px; }
.t1-about-body ul,
.t1-about-body ol { margin: 0 0 12px; padding-left: 20px; }
.t1-about-body li { margin-bottom: 4px; }

/* Eigene Seiten und Rechtstexte (template-one-renderer.jsx). Der Inhalt kommt aus dem
   Rich-Text-Editor, kann also Überschriften, Listen und Tabellen enthalten — ohne diese
   Grundregeln steht eine eingefügte Preisliste als unformatierte Zellenwüste da. */
.page-body h2 { font-size: 26px; letter-spacing: -0.02em; margin: 34px 0 12px; }
.page-body h3 { font-size: 19px; margin: 28px 0 10px; }
.page-body > :first-child { margin-top: 0; }
.page-body p { margin: 0 0 14px; }
.page-body ul,
.page-body ol { margin: 0 0 14px; padding-left: 20px; }
.page-body li { margin-bottom: 6px; }
.page-body table { border-collapse: collapse; margin: 4px 0 18px; width: 100%; }
.page-body th,
.page-body td { border-bottom: 1px solid var(--line); padding: 10px 14px 10px 0; text-align: left; }
.page-body th { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.page-body td:last-child,
.page-body th:last-child { padding-right: 0; text-align: right; }
/* ── Marken & Partner ───────────────────────────────────────────────────── */
.t1 .partner-section { padding: clamp(72px, 9vw, 120px) 0; background: var(--bg); color: var(--ink); }
.t1 .partner-section__inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.t1 .partner-section__head { max-width: 700px; margin-bottom: 38px; }
/* Wie .kicker: --rose-2 ist der helle Akzent großer Überschriften und trug diese 11-px-Zeile mit 1,9:1. */
.t1 .partner-section__eyebrow { display: block; margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.t1 .partner-section__head h2 { margin: 0; font-family: var(--display); font-size: clamp(36px, 5vw, 58px); font-weight: 500; line-height: 1; }
.t1 .partner-section__head > p:last-child:not(.partner-section__eyebrow) { margin: 18px 0 0; max-width: 620px; color: var(--ink-2); line-height: 1.7; }
.t1 .partner-list { display: grid; gap: 16px; }
.t1 .partner-section--grid .partner-list { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.t1 .partner-section--strip .partner-list { grid-auto-flow: column; grid-auto-columns: minmax(210px, 28%); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; padding-bottom: 12px; }
.t1 .partner-section--strip .partner-card { scroll-snap-align: start; }
.t1 .partner-section--editorial .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t1 .partner-card { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); color: inherit; text-decoration: none; }
/* --surface hebt sich von --bg UND --bg-2 ab, deshalb genügt hier eine Farbe. Auf dem
   dunklen Ton bräuchte es eine eigene — die Marken-Fläche bekommt ihn heute nie, aber die
   Regel soll nicht davon abhängen, welche Töne der Rhythmus gerade vergibt. */
.t1 [data-tone='invers'] .partner-card { background: var(--invert-bg-2, rgba(255, 255, 255, 0.07)); border-color: var(--invert-line-3); }
.t1 a.partner-card { transition: transform .2s ease, border-color .2s ease; }
.t1 a.partner-card:hover { transform: translateY(-2px); border-color: var(--rose-2); }
.t1 .partner-identity { min-height: 70px; display: flex; align-items: center; }
.t1 .partner-logo-frame { display: flex; width: 100%; min-width: 0; align-items: center; }
.t1 .partner-logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 64px; object-fit: contain; object-position: left center; }
.t1 .partner-wordmark { font-family: var(--display); font-size: 28px; line-height: 1.05; }
.t1 .partner-relationship { display: block; margin-top: 17px; color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.t1 .partner-manufacturer, .t1 .partner-description, .t1 .partner-categories, .t1 .partner-attribution { margin: 12px 0 0; color: var(--ink-2); line-height: 1.55; }
.t1 .partner-manufacturer, .t1 .partner-attribution { font-size: 13px; }
.t1 .partner-products { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.t1 .partner-products li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.t1 .partner-focus { display: inline-flex; max-width: 190px; align-items: center; gap: 10px; }
.t1 .partner-focus[data-accent="hero"] {
  flex-direction: column;
  align-items: flex-start;
  max-width: min(240px, 100%);
  margin: 0 0 24px;
}
.t1 .partner-focus__label { flex: none; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.t1 .partner-focus .partner-logo { max-height: 28px; }
.t1 .partner-focus[data-accent="hero"] .partner-logo { max-height: 48px; }
.t1 .partner-footer { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--invert-line-3); }
.t1 .partner-footer__item { display: flex; width: min(150px, 32vw); opacity: .8; }
.t1 .partner-footer .partner-logo { max-height: 38px; filter: none; }
.t1 .partner-footer .partner-wordmark { color: var(--invert-ink); font-size: 17px; }
@media (max-width: 720px) {
  .t1 .partner-section__inner { width: min(100% - 32px, 1180px); }
  .t1 .partner-section--strip .partner-list { grid-auto-columns: 78%; }
  .t1 .partner-section--editorial .partner-list { grid-template-columns: 1fr; }
  /* Im knappen Header bleibt der Akzent weg; im Hero ist auf Mobilgeräten genug Raum. */
  .t1 .partner-focus[data-accent="header"] { display: none; }
  .t1 .partner-focus[data-accent="hero"] { display: inline-flex; max-width: min(240px, 100%); }
}
/* Wie .section auf dem Handy (48px) – die Basisregel oben steht NACH dem Mobil-Block. */
@media (max-width: 520px) {
  .t1 .partner-section { padding: 48px 0; }
}

/* ===== Reduzierte Bewegung =====
   Amara hatte dazu bisher keine einzige Regel. Betroffen sind die Übergänge in dieser
   Datei UND die in Template1/schemes.css (Bildstil-Filter, Team-Index, Akkordeon), deshalb
   steht die Abschaltung hier breit statt selektiv. Das Einrasten der seitlichen Spuren
   bleibt: es ist Bedienung, keine Zierde. */
@media (prefers-reduced-motion: reduce) {
  .t1 *,
  .t1 *::before,
  .t1 *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .t1 a.partner-card:hover { transform: none; }
}

/* ── Karte im Kontaktbereich (public/app/salon-map.jsx) ──
   Nur Token-Zuordnung: Form und Verhalten stehen in der Komponente. Abgeleitet aus den
   Palettenwerten, damit Farbdesign und eigene Akzentfarbe die Karte mitnehmen. */
.t1-map {
  margin-top: 32px;
  --cz-map-radius: var(--radius-l);
  --cz-map-height: 260px;
  --cz-map-line: var(--line);
  --cz-map-ground: var(--bg-2);
  --cz-map-grid: color-mix(in oklch, var(--map-grid) 45%, transparent);
  --cz-map-street: color-mix(in oklch, var(--map-street) 42%, transparent);
  --cz-map-water: color-mix(in oklch, var(--rose) 35%, transparent);
  --cz-map-park: color-mix(in oklch, var(--beige) 28%, transparent);
  --cz-map-pin-bg: var(--ink);
  --cz-map-pin-fg: var(--bg);
  --cz-map-chip-bg: color-mix(in oklch, var(--surface) 88%, transparent);
  --cz-map-chip-fg: var(--ink);
  --cz-map-note: var(--ink-2);
  --cz-map-filter: var(--map-filter);
  --cz-map-wash: var(--bg);
  --cz-map-wash-blend: var(--map-wash-blend);
  --cz-map-tint: var(--rose-2);
  --cz-map-tint-opacity: var(--map-tint-opacity);
}


/* ── Social-Media-Icons (public/app/salon-social.jsx) ──
   Nur Token-Zuordnung. An .t1 gebunden: Diese Datei lädt auch unter den anderen Designs, die ihre
   eigenen Werte in template.css setzen. Amara-Stil: runde Schaltflächen mit feiner Linie, beim
   Überfahren gefüllt. */
.t1 .czsocial--header {
  --cz-social-size: 34px;
  --cz-social-icon: 15px;
  --cz-social-gap: 2px;
  --cz-social-border: 1px solid transparent;
  --cz-social-fg: var(--ink-2);
  --cz-social-hover-bg: var(--bg-2);
  --cz-social-hover-fg: var(--ink);
  --cz-social-hover-border: var(--line);
}
.t1 .czsocial--menu {
  margin: 4px 0 18px;
  --cz-social-size: 42px;
  --cz-social-icon: 17px;
  --cz-social-border: 1px solid var(--line);
  --cz-social-fg: var(--ink);
  --cz-social-hover-bg: var(--ink);
  --cz-social-hover-fg: var(--bg);
  --cz-social-hover-border: var(--ink);
}
.t1 .czsocial--gallery,
.t1 .czsocial--contact {
  --cz-social-size: 38px;
  --cz-social-icon: 15px;
  --cz-social-border: 1px solid var(--line-2);
  --cz-social-fg: var(--ink);
  --cz-social-hover-bg: var(--ink);
  --cz-social-hover-fg: var(--bg);
  --cz-social-hover-border: var(--ink);
  --cz-social-follow-fg: var(--ink-2);
  --cz-social-follow-size: 13px;
}
.t1 .czsocial--gallery {
  justify-content: flex-end;
}
.t1 .t1-contact-social {
  margin-top: 28px;
}
.t1 .czsocial--footer {
  margin-top: 24px;
  --cz-social-size: 38px;
  --cz-social-icon: 15px;
  --cz-social-border: 1px solid var(--invert-line-2);
  --cz-social-fg: var(--invert-ink);
  --cz-social-hover-bg: var(--invert-ink);
  --cz-social-hover-fg: var(--invert-bg);
  --cz-social-hover-border: var(--invert-ink);
}
/* Stufen der Kopfzeile (window.SalonHeaderFit, public/app/header-fit.js): „eng" = Menüpunkte und
   Konto-Knöpfe ins Burgermenü, „enger" = zusätzlich die Socials. Logo, Partnerlogo und Buchen
   bleiben. Der Drawer ist sonst erst unter 881px erlaubt (show-mobile) – hier auf jeder Breite. */
.t1 header[data-kopf] .t1-header-nav,
.t1 header[data-kopf] .t1-header-account,
.t1 header[data-kopf="enger"] .t1-header-social {
  display: none !important;
}
.t1 header[data-kopf] .t1-burger {
  display: inline-flex !important;
}
.t1 header[data-kopf] .t1-mobile-drawer {
  display: block !important;
}
@media (max-width: 720px) {
  .t1 .czsocial--gallery {
    justify-content: flex-start;
  }
}
/* Auf Touch-Geräten volle Daumenfläche – 38px lagen unter der 44px-Marke. */
@media (max-width: 880px) {
  .t1 .czsocial--gallery,
  .t1 .czsocial--contact,
  .t1 .czsocial--footer {
    --cz-social-size: 44px;
  }
}
