/* ===========================================================================
   autor.css – Autorenseite (/ratgeber/autor/<slug>)
   ---------------------------------------------------------------------------
   Ergänzt frisur.css. Farben, Schriften und Grundraster kommen von dort.
   =========================================================================== */

/* --- Kopfbereich ---------------------------------------------------------- */
.au-hero{max-width:var(--maxw);margin:0 auto;padding:2.4rem 1.3rem 1rem}
.au-hero-grid{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);
  gap:2rem;align-items:center;margin-top:1.2rem}
@media (max-width:760px){
  .au-hero-grid{grid-template-columns:1fr;gap:1.7rem}
  /* Auf dem Smartphone das Portraet etwas flacher zuschneiden, damit Name und
     Rolle schon im ersten Bildschirm beginnen. Das Foto ist mit 900x946 nahezu
     quadratisch - ein Rahmen von 6:5 nimmt ihm rund ein Fuenftel der Hoehe.
     Der Ausschnitt wird nach oben gerueckt (35 %), sodass Gesicht und
     Ladenumfeld erhalten bleiben und unten der Pullover wegfaellt. */
  .au-photo img{aspect-ratio:6/5;height:auto;object-fit:cover;object-position:center 35%}
}

.au-photo{margin:0}
.au-photo img{display:block;width:100%;height:auto;border-radius:16px;
  border:1px solid var(--ink-600);
  box-shadow:0 30px 70px -30px rgba(0,0,0,.9),0 0 0 1px rgba(228,198,106,.12)}

.au-hero-text h1{font-family:'Bebas Neue',Oswald,sans-serif;font-weight:400;letter-spacing:.02em;
  line-height:.98;font-size:clamp(2.4rem,6vw,3.8rem);margin:0 0 .3rem}
.au-role{font-family:Oswald,sans-serif;font-size:1rem;letter-spacing:.04em;
  color:var(--gold-bright);margin:0 0 1rem}
.au-intro p{color:var(--cream-soft);font-size:1.06rem;line-height:1.6;margin:0 0 .8rem;max-width:56ch}
.au-trust{display:inline-block;margin:.4rem 0 0;padding:.5rem .95rem;font-size:.83rem;
  color:var(--cream-soft);background:rgba(200,162,74,.09);
  border:1px solid rgba(200,162,74,.28);border-radius:999px}

/* --- Fließtext ------------------------------------------------------------ */
.au-body{padding-top:.5rem;padding-bottom:1.2rem}

/* Abstand zwischen dem Beitraege-Bereich und der Karte "Hairbase in Wien"
   verkleinern. Zuvor summierten sich 3rem (unten) + 1rem (oben) + 1.9rem
   (Section) auf rund 94px. */
.au-visit-wrap{padding-top:0}
.au-visit-wrap>.fp-section{padding-top:.4rem}
.au-prose{max-width:var(--prose)}
.au-prose p{color:var(--cream-soft);line-height:1.72;margin:0 0 1rem}
.au-prose p:last-child{margin-bottom:0}

/* Abschnitt zu den Grenzen: ruhig abgesetzt, ohne Warnton */
.au-limits{padding:1.1rem 1.2rem;background:var(--ink-800);
  border:1px solid var(--ink-600);border-left:3px solid var(--gold);border-radius:12px}

/* --- Bewertungskriterien -------------------------------------------------- */
.au-cards{display:grid;grid-template-columns:1fr;gap:.9rem;list-style:none;margin:1.4rem 0 0;padding:0}
@media (min-width:620px){ .au-cards{grid-template-columns:repeat(2,1fr)} }
@media (min-width:980px){ .au-cards{grid-template-columns:repeat(3,1fr)} }
.au-card{background:var(--ink-800);border:1px solid var(--ink-600);border-radius:14px;padding:1.05rem 1.15rem}
.au-card h3{font-family:Oswald,sans-serif;font-weight:600;font-size:.98rem;
  color:var(--gold-bright);margin:0 0 .35rem}
.au-card p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.55}
.au-after-cards{margin-top:1.3rem}

/* --- Aufzählung "Wobei ich helfen kann" ----------------------------------- */
.au-points{list-style:none;margin:.2rem 0 1.2rem;padding:0;max-width:var(--prose);
  display:grid;gap:.5rem}
.au-points li{position:relative;padding-left:1.5rem;color:var(--cream-soft);line-height:1.55}
.au-points li::before{content:"";position:absolute;left:.35rem;top:.62em;
  width:.4rem;height:.4rem;border-radius:50%;background:var(--gold)}

.au-highlight{max-width:var(--prose);margin:0;padding:.95rem 1.15rem;
  color:var(--cream);background:rgba(200,162,74,.09);
  border:1px solid rgba(200,162,74,.28);border-radius:12px;line-height:1.6}

/* --- Beiträge ------------------------------------------------------------- */
.au-cta{margin:1.4rem 0 1.2rem}
.au-cta + h3{font-size:1.05rem;margin:1.7rem 0 .45rem;color:var(--cream)}
.au-link-intro{margin:0 0 .9rem;color:var(--cream-soft);font-size:.92rem;line-height:1.6}
.au-links{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0;padding:0}
.au-links a{display:inline-block;font-family:Oswald,sans-serif;font-size:.83rem;
  color:var(--cream-soft);background:transparent;border:1px solid var(--ink-600);
  border-radius:999px;padding:.4rem .85rem;text-decoration:none;
  transition:border-color .18s,color .18s}
.au-links a:hover{border-color:var(--gold);color:var(--gold-bright);text-decoration:none}

/* --- Geschäft ------------------------------------------------------------- */
/* Kontaktbox übernimmt das Aussehen der Frisurenseiten:
   Logo oben, Angaben darunter, alles mittig. */
.au-visit{display:flex;flex-direction:column;align-items:center;text-align:center}
/* Muss so spezifisch sein wie .fp-visit-body>p - sonst gewinnt dort das
   margin:0 und der Absatz sitzt trotz zentriertem Text links. */
.fp-visit-body>p.au-since{margin:.9rem auto 0;color:var(--muted);font-size:.86rem;max-width:none}
/* (ersetzt durch die Regel im Video-Abschnitt weiter unten) */
@media (max-width:520px){
  /* Untereinander und gleich breit, damit sie mittig wirken */

}
.au-note{max-width:640px;margin:1.6rem auto 0;text-align:center;color:var(--muted);
  font-size:.83rem;line-height:1.55}

/* --- Autorenbox auf den Frisurenseiten ------------------------------------ */
.fp-authorbox{display:flex;gap:1rem;align-items:flex-start;
  background:var(--ink-800);border:1px solid var(--ink-600);border-radius:14px;
  padding:1.05rem 1.15rem;margin-top:1.6rem}
.fp-authorbox img{flex:none;width:64px;height:64px;border-radius:50%;object-fit:cover;
  border:1px solid var(--ink-600)}
.fp-authorbox-body{min-width:0}
.fp-authorbox-t{display:block;font-family:Oswald,sans-serif;font-weight:600;
  font-size:.96rem;color:var(--cream);margin-bottom:.25rem}
.fp-authorbox-x{display:block;color:var(--muted);font-size:.88rem;line-height:1.5;margin-bottom:.5rem}
.fp-authorbox a{font-family:Oswald,sans-serif;font-size:.82rem;color:var(--gold-bright);
  text-decoration:none;border-bottom:1px solid rgba(228,198,106,.35);padding-bottom:.1rem}
.fp-authorbox a:hover{color:var(--cream);text-decoration:none}
@media (max-width:520px){
  .fp-authorbox{flex-direction:column;gap:.7rem}
  .fp-authorbox img{width:56px;height:56px}
}

/* --- Beratungsvideo in der Karte "Hairbase in Wien" --------------------- */
/* Eine gemeinsame Karte: links das Video (rund 42 %), rechts Logo, Text,
   Kontaktdaten und Buttons. Beide Spalten beginnen oben.
   Unter 900px einspaltig - dort steht das Video zuerst.
   Reihenfolge im Quelltext = sichtbare Reihenfolge = Tab-Reihenfolge. */
.fp-visit.has-video{max-width:1040px}

@media (min-width:900px){
  .fp-visit.has-video{
    display:grid;
    grid-template-columns:minmax(0,42%) minmax(0,1fr);
    gap:2.6rem;
    align-items:center;       /* beide Spalten vertikal mittig */
    padding:2.4rem 2.4rem 2.6rem;
  }
  .fp-visit.has-video>.au-visit-media{width:100%}
}

.au-visit-media{display:flex;flex-direction:column;align-items:center;width:100%}
.au-visit-info{display:flex;flex-direction:column;align-items:center;width:100%}
/* Ueberschrift und Vertrauenssatz sind kurz -> balance.
   Der laengere Geschaeftstext -> pretty. */
.au-visit-info .fp-visit-body h2{text-wrap:balance}
.au-visit-info .au-prose p{text-wrap:pretty}
.au-visit-info .au-since{text-wrap:balance}

/* Kennzeichnung und kurze Zeile ueber dem Video. Bewusst keine zweite
   Ueberschrift, damit sie nicht mit dem H2 "Hairbase in Wien" konkurriert. */
/* text-wrap:balance gleicht die Zeilenlaengen aus, damit in der schmalen
   Videospalte nicht ein einzelnes Wort allein in der letzten Zeile steht.
   Wirkt nur bei kurzen Bloecken - Browser ohne Unterstuetzung ignorieren es. */
.au-media-kicker{margin:0 0 .3rem;font-family:Oswald,sans-serif;text-transform:uppercase;
  letter-spacing:.12em;font-size:.62rem;font-weight:600;color:var(--gold-bright);
  text-wrap:balance}
.au-media-h{margin:0 0 1rem;font-family:Oswald,sans-serif;font-size:1.06rem;
  font-weight:600;color:var(--cream);line-height:1.3;letter-spacing:.01em;
  text-wrap:balance}
/* Fliesstext: pretty statt balance - balance greift nur bei wenigen Zeilen,
   pretty verhindert dagegen einzelne Restwoerter am Absatzende. */
.au-media-text p{margin:0 0 .9rem;color:var(--cream-soft);font-size:.92rem;line-height:1.6;
  text-wrap:pretty}

/* Videorahmen schliesst die linke Spalte unten sauber ab (keine Bildunterschrift). */
.au-video-frame{position:relative;width:100%;max-width:420px;margin:0 auto;
  aspect-ratio:9/16;border-radius:16px;overflow:hidden;background:var(--ink-800);
  border:1px solid rgba(200,162,74,.24);box-shadow:0 16px 40px -16px rgba(0,0,0,.75)}
.au-video-el{display:block;width:100%;height:100%;object-fit:cover;background:#000}
.au-video-fallback{padding:1rem;color:var(--cream-soft);font-size:.9rem}
.au-video-fallback a{color:var(--gold-bright)}

/* Play-Knopf: klar sichtbar auch auf dunklem Bildinhalt. */
.au-video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:68px;height:68px;padding:0;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;line-height:0;
  background:rgba(0,0,0,.58);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  border:2px solid rgba(232,205,130,.9);
  box-shadow:0 4px 18px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.35);
  color:#fff;
  transition:background .18s ease,border-color .18s ease,transform .18s ease}
/* Ohne Unterstuetzung fuer backdrop-filter (aeltere Browser) faellt die
   Weichzeichnung weg - dort deckt die Fuellung etwas staerker ab. */
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
  .au-video-play{background:rgba(0,0,0,.72)}
}
.au-video-play svg{display:block;margin-left:4px}   /* optischer Ausgleich der Dreiecksform */
.au-video-play:hover{background:rgba(0,0,0,.76);border-color:var(--gold-bright);
  transform:translate(-50%,-50%) scale(1.06)}
.au-video-play:focus-visible{outline:3px solid var(--gold-bright);outline-offset:4px}
.au-video-play[hidden]{display:none}

/* Buttons: exakt gleiche Aussenmasse, untereinander. Der goldene Button hat
   ab Werk border:0, der graue 1px - deshalb hier eine transparente Kante,
   damit beide dasselbe Kastenmodell haben. */
.au-visit-btns{display:grid;gap:.6rem;width:100%;max-width:300px;
  margin:1.3rem auto 0;justify-items:stretch}
.au-visit-btns .fp-btn{width:100%;box-sizing:border-box;justify-content:center;
  text-align:center;border:1px solid transparent;padding:.85rem 1.2rem}
.au-visit-btns .fp-btn.ghost{border-color:var(--ink-500)}

@media (max-width:899px){
  /* Einspaltig: Video nutzt die volle verfuegbare Breite der Karte */
  .au-video-frame{max-width:none}
  .au-visit-media{margin-bottom:2rem}
  .au-visit-btns{max-width:none}
}
@media (prefers-reduced-motion:reduce){
  .au-video-play{transition:none}
  .au-video-play:hover{transform:translate(-50%,-50%)}
}

/* --- Vollbild: das Video vollstaendig zeigen ----------------------------- */
/* Im eingebetteten Zustand bleibt object-fit:cover, damit der Rahmen sauber
   im 9:16-Format gefuellt wird. Im Vollbild wuerde cover das Hochformat
   beschneiden - dort gilt deshalb contain, ohne Seitenverhaeltnis, ohne
   Eckenrundung und ohne Ueberlaufbegrenzung.
   Die Regeln stehen bewusst ganz am Dateiende, damit sie die normalen
   Video-Regeln ueberschreiben.
   WICHTIG: :fullscreen und :-webkit-full-screen duerfen NICHT in einer
   gemeinsamen Selektorliste stehen. Kennt ein Browser einen der beiden
   Selektoren nicht, verwirft er sonst die komplette Regel. Deshalb ist
   jede Variante einzeln notiert. */

/* Fall 1: der Browser schaltet das Videoelement selbst ins Vollbild
   (das ist bei den nativen Steuerelementen der Normalfall). */
.au-video-el:fullscreen{
  width:100vw;height:100vh;max-width:none;max-height:none;
  aspect-ratio:auto;object-fit:contain;background:#000;border-radius:0}
.au-video-el:-webkit-full-screen{
  width:100%;height:100%;max-width:none;max-height:none;
  aspect-ratio:auto;object-fit:contain;background:#000;border-radius:0}
.au-video-el:-moz-full-screen{
  width:100%;height:100%;max-width:none;max-height:none;
  aspect-ratio:auto;object-fit:contain;background:#000;border-radius:0}

/* Fall 2: der umgebende Rahmen geht ins Vollbild. */
.au-video-frame:fullscreen{
  width:100vw;height:100vh;max-width:none;max-height:none;
  aspect-ratio:auto;background:#000;border:0;border-radius:0;box-shadow:none;
  overflow:visible;display:flex;align-items:center;justify-content:center}
.au-video-frame:-webkit-full-screen{
  width:100%;height:100%;max-width:none;max-height:none;
  aspect-ratio:auto;background:#000;border:0;border-radius:0;box-shadow:none;
  overflow:visible;display:flex;align-items:center;justify-content:center}
.au-video-frame:-moz-full-screen{
  width:100%;height:100%;max-width:none;max-height:none;
  aspect-ratio:auto;background:#000;border:0;border-radius:0;box-shadow:none;
  overflow:visible;display:flex;align-items:center;justify-content:center}

.au-video-frame:fullscreen .au-video-el{
  width:100%;height:100%;object-fit:contain;aspect-ratio:auto;border-radius:0}
.au-video-frame:-webkit-full-screen .au-video-el{
  width:100%;height:100%;object-fit:contain;aspect-ratio:auto;border-radius:0}
.au-video-frame:-moz-full-screen .au-video-el{
  width:100%;height:100%;object-fit:contain;aspect-ratio:auto;border-radius:0}

/* Der zusaetzliche Play-Knopf gehoert nicht ins Vollbild - dort uebernehmen
   die nativen Steuerelemente. */
.au-video-frame:fullscreen .au-video-play{display:none}
.au-video-frame:-webkit-full-screen .au-video-play{display:none}
.au-video-frame:-moz-full-screen .au-video-play{display:none}
