/* ==========================================================================
   Farbstudio Visciotti – statisches Stylesheet (ohne WordPress/X-Theme)
   ========================================================================== */

@font-face {
  font-family: "bank-gotik";
  src: url("../fonts/BankGothic-Md-BT.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #233754;
  --navy-hover: #3b3d6a;
  --teal: #00a99d;
  --gold: #d8b030;
  --text: #999999;
  --heading: #272727;
  --line: #e5e5e5;
  --white: #ffffff;
  --font-head: "bank-gotik", sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
  --font-hero: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (min-width: 1199px) { html { font-size: 16px; } }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal); }
p { margin: 0 0 1.5em; }
ul, ol { padding: 0; margin: 0 0 1.5em 1.655em; }
strong, b { font-weight: 700; }
address { margin-bottom: 1.5em; font-style: normal; }
hr { height: 0; margin: 1.5em 0; border: 0; border-top: 2px solid var(--line); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  margin: 1.25em 0 .2em;
  font-family: var(--font-head);
  font-weight: 100;
  font-style: normal;
  color: var(--heading);
  text-rendering: optimizeLegibility;
}
h1, .h1 { margin-top: 1em; font-size: 400%; line-height: 1.1; }
h2, .h2 { font-size: 285.7%; line-height: 1.2; }
h3, .h3 { font-size: 228.5%; line-height: 1.3; }
h4, h5, h6, .h4, .h5, .h6 { margin-top: 1.75em; margin-bottom: .5em; line-height: 1.4; }
h4, .h4 { font-size: 171.4%; }
h5, .h5 { font-size: 150%; }
h6, .h6 { font-size: 100%; text-transform: uppercase; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; padding: .75em 1em; background: var(--white); color: var(--navy); }
.skip-link:focus { left: 1em; top: 1em; }

.container { width: 88%; max-width: 1200px; margin: 0 auto; }

/* ---------- Header / Navigation ---------- */
.navbar { position: relative; z-index: 1030; background: var(--navy); }
.navbar-inner { min-height: 90px; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.brand { display: block; margin-top: 25px; line-height: 1; }
.brand img { width: 250px; display: block; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 100;
  letter-spacing: .085em;
  color: var(--white);
}
.nav-desktop a { height: 90px; padding: 35px 20px 0; font-size: 17px; line-height: 1; }
.nav-desktop li:last-child a { padding-right: 0; }
.nav a span { display: inline-block; margin-right: -.085em; padding-bottom: 2px; }
.nav-desktop a:hover span,
.nav-desktop a[aria-current="page"] span { box-shadow: 0 2px 0 0 var(--white); }

.nav-toggle {
  display: none;
  margin-top: 15px;
  width: 50px; height: 50px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--navy);
  cursor: pointer;
  font-size: 15px;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--navy-hover); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; position: relative; content: "";
  transition: transform .3s ease, background-color .3s ease;
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; width: 100%; overflow: hidden; }
.nav-mobile .nav { flex-direction: column; padding: 10px 0 25px; }
.nav-mobile a { font-size: 14px; line-height: 1.5; padding: 1em 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav-mobile li:last-child a { border-bottom: 0; }
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { opacity: .8; }

@media (max-width: 978.98px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open { display: block; }
}

/* ---------- Hero-Slider (Nachbau Slider Revolution) ---------- */
.hero {
  --hh: min(900px, 72.58vw);      /* Original: 1240×900 Raster, skaliert mit der Breite */
  position: relative;
  height: var(--h, var(--hh));
  overflow: hidden;
  background: #000;
  color: var(--white);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 1; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s cubic-bezier(.45,0,.55,1); }
.hero-slide.is-out { z-index: 2; }
.hero-slide.is-front { z-index: 3; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }

/* Halbtransparentes Band – fährt von unten in Position (1,2 s, power3.inOut) */
.hero-band {
  position: absolute; left: 0; right: 0; top: 50%;
  height: calc(var(--hh) * .3389);
  margin-top: calc(var(--hh) * -.1694);
  overflow: hidden;
}
.hero-band::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3);
  transform: translateY(100%); opacity: 0;
}
.hero-slide.is-active .hero-band::before { animation: bandIn 1.2s cubic-bezier(.65,0,.35,1) forwards; }

.hero-title, .hero-word {
  position: absolute; left: 50%; top: 50%;
  margin: 0;
  font-family: var(--font-hero);
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
  text-align: center;
}
.hero-title {
  font-size: calc(var(--hh) * .1244);       /* 112px bei 900px Höhe */
  letter-spacing: calc(var(--hh) * .0078);  /* 7px */
  line-height: 1;
  transform: translate(calc(-50% + var(--hh) * .0167), calc(-50% - var(--hh) * .0444)) scale(.9);
  opacity: 0;
}
.hero-title .hl { color: var(--gold); }
.hero-slide.is-active .hero-title { animation: titleIn 1s cubic-bezier(.45,0,.55,1) .18s forwards; }
.hero-slide.is-out .hero-title {
  opacity: 1;
  transform: translate(calc(-50% + var(--hh) * .0167), calc(-50% - var(--hh) * .0444));
  animation: fadeOut .3s cubic-bezier(.65,0,.35,1) forwards;
}

.hero-word {
  font-size: calc(var(--hh) * .0656);       /* 59px */
  line-height: calc(var(--hh) * .0878);     /* 79px Box */
  height: calc(var(--hh) * .0878);
  transform: translate(calc(-50% + var(--hh) * .0167), calc(-50% + var(--hh) * .0778));
  overflow: hidden;                          /* Maske wie im Original */
  padding: 0 .1em;
}
.hero-word .ch { display: inline-block; opacity: 0; transform: translateY(-100%) rotate(35deg); transform-origin: 50% 50%; white-space: pre; }
.hero-slide.is-active .hero-word .ch {
  animation: charIn 1s cubic-bezier(.77,0,.18,1) forwards, charOut 1s cubic-bezier(.77,0,.18,1) forwards;
  animation-delay: calc(1.18s + var(--i) * 50ms), calc(4.08s + var(--i) * 50ms);
}

.hero-slide.is-out .hero-band::before { transform: none; opacity: 1; animation: fadeOut .3s cubic-bezier(.65,0,.35,1) forwards; }
.hero-slide.is-out .hero-word .ch { animation: fadeOut .3s ease forwards; }

@keyframes bandIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes titleIn {
  from { opacity: 0; transform: translate(calc(-50% + var(--hh) * .0167), calc(-50% - var(--hh) * .0444)) scale(.9); }
  to   { opacity: 1; transform: translate(calc(-50% + var(--hh) * .0167), calc(-50% - var(--hh) * .0444)) scale(1); }
}
@keyframes fadeOut { to { opacity: 0; } }
@keyframes charIn  { from { opacity: 0; transform: translateY(-100%) rotate(35deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes charOut { from { opacity: 1; transform: translateY(0) rotate(0); } to { opacity: 0; transform: translateY(100%) rotate(-35deg); } }

/* Bullets „Hermes“ – vertikal rechts */
.hero-bullets {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 5; display: flex; flex-direction: column; gap: 5px;
  list-style: none; margin: 0; padding: 0;
}
.hero-bullets button {
  position: relative; display: block; width: 16px; height: 16px; padding: 0;
  border: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 2px var(--white);
  transition: background .3s ease;
}
.hero-bullets button:hover { background: rgba(0,0,0,.21); }
.hero-bullets button::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 0;
  background: var(--white); box-shadow: 0 0 1px var(--white); transition: height .3s ease;
}
.hero-bullets button[aria-current="true"]::after { height: 100%; }
@media (max-width: 479px) { .hero-bullets { right: 10px; } }
/* Mobil: höherer Slider wie im Original (480er-Raster → 720px Höhe), Schrift skaliert weiter mit der Breite */
@media (max-width: 766px) { .hero { --hh: 100vw; --h: min(720px, 135vw); } }

/* ---------- Sektionen ---------- */
.section { position: relative; padding: 0 0 45px; }
.section-navy { background: var(--navy); }
.section-white { background: var(--white); }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.col { flex: 1 1 0; min-width: 0; }
.col-2 > .col { flex-basis: calc(50% - 1rem); }
.col-3 > .col { flex-basis: calc(33.33% - 1rem); }
.center { text-align: center; }

/* Überschrift mit seitlichen Linien (X „accent“) */
.headline { letter-spacing: -1px; line-height: 1.1; color: var(--teal); }
.headline.accent { overflow: hidden; }
.headline.accent span { display: inline-block; position: relative; padding-bottom: 2px; }
.headline.accent span::before,
.headline.accent span::after {
  content: ""; position: absolute; top: 50%; height: 2px; width: 9999px; margin-top: -1px; background: var(--line);
}
.headline.accent span::before { right: 100%; margin-right: .5em; }
.headline.accent span::after  { left: 100%;  margin-left: .5em; }
.section-head { padding-top: 1px; }
.section-head .headline { margin-top: 1em; margin-bottom: 0; }
.spacer-lg { height: 46px; }
.spacer-md { height: 2em; }
.spacer-sm { height: 25px; }

.on-dark { color: var(--white); line-height: 1.4; }
.on-dark p { margin-bottom: 1.5em; }
.lead-quote { margin: 0 0 2em; text-align: center; color: var(--white); line-height: 1.4; }
.text-dark { color: #000; line-height: inherit; }
.text-muted, .text-muted h4 { color: var(--text); }
.teal { color: var(--teal); }

/* Healthy Colour Concepts */
.intro h5 { text-align: center; color: var(--teal); }

/* Über mich */
.about .name { font-size: 228.5%; color: var(--teal); letter-spacing: -1px; line-height: 1.1; }
.about h4 { margin-top: 0; }
.photo-credit {
  margin-top: .75em; font-size: .525em; line-height: 1.3; letter-spacing: .25em;
  text-transform: uppercase; color: #000; text-align: center;
}
.about-divider { margin: 0; }

/* Mehr Farbe für … / Kursboxen */
.card-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.5em;
  line-height: 1.4;
  font-weight: 100;
  color: var(--white);
  text-align: left;
}
.card img { display: block; width: 100%; height: auto; }
.card .on-dark { margin-top: 1rem; }
.card .on-dark p:last-child { margin-bottom: 0; }

/* Kontakt */
.contact-col { text-align: center; padding: 1.452em; }
.contact-col h5 { margin-top: 0; color: var(--teal); font-weight: 700; }
.contact-col address p { color: #000; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 .3em .3em 0;
  padding: .575em .85em;
  font-size: 1.14em; line-height: 1; font-weight: 400;
  color: var(--white);
  background: var(--teal);
  border: 0; border-radius: .35em;
  box-shadow: 0 .15em .65em 0 rgba(0,0,0,.25);
  cursor: pointer;
}
.btn span { margin: 5px; }
.btn:hover, .btn:focus-visible { color: #2e2e2e; }

/* Karte – Zwei-Klick-Lösung (DSGVO) */
.map-frame { position: relative; width: 100%; padding-bottom: 56.25%; background: #fff; overflow: hidden; }
.map-frame iframe, .map-consent { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em;
  padding: 1.5em; text-align: center; font-size: .9em; line-height: 1.5; color: #555;
  background: #eef1f4 linear-gradient(135deg, rgba(35,55,84,.06) 25%, transparent 25%, transparent 50%, rgba(35,55,84,.06) 50%, rgba(35,55,84,.06) 75%, transparent 75%) 0 0 / 24px 24px;
}
.map-consent p { margin: 0; max-width: 32em; }
.map-consent .btn { font-size: 1em; }

/* COLORBrainting */
.cb-intro { text-align: center; color: var(--text); }
.cb-text { text-align: left; color: var(--text); }
.cb-img { display: block; margin: 0 auto; }
.cta-wrap { text-align: center; }
.cta-wrap .btn { max-width: 300px; line-height: 1.2; text-align: center; }
.divider-white { border-top-color: var(--white); margin: 25px 0; }
.closing p { text-align: center; color: var(--white); line-height: 1.6; }
.closing .big { font-size: 30px; margin-bottom: 0; }
.closing .mid { font-size: 20px; }

/* Rechtstexte */
.legal { padding: 1px 0 60px; color: #555; line-height: 1.7; }
.legal .headline { margin-bottom: .8em; }
.legal h2 { font-size: 150%; color: var(--teal); margin-top: 1.6em; }
.legal h3 { font-size: 120%; color: var(--heading); margin-top: 1.4em; }
.legal dl { display: grid; grid-template-columns: minmax(11em, max-content) 1fr; gap: .35em 1.5em; margin: 0 0 1.5em; }
.legal dt { font-weight: 700; color: var(--heading); }
.legal dd { margin: 0; }
.legal .note { padding: 1em 1.25em; border-left: 3px solid var(--teal); background: #f4f7f9; }
.legal .todo { background: #fff3c4; padding: 0 .25em; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6em; } }

/* ---------- Footer ---------- */
.footer { padding: 50px 0; font-size: 11px; line-height: 1.3; text-align: center; color: var(--white); background: var(--navy); }
.footer a { color: var(--white); }
.footer-nav { list-style: none; margin: 20px 0; padding: 0; }
.footer-nav li { display: inline-block; }
.footer-nav li + li::before { content: "/"; margin: 0 .55em 0 .45em; opacity: .35; }
.footer-nav a { letter-spacing: 1px; text-transform: uppercase; }
.footer-nav a:hover { opacity: .75; }
.footer p { margin: 0; letter-spacing: 1px; }
.footer address { margin: 0 0 12px; font-style: normal; letter-spacing: 1px; opacity: .85; }
.footer address a { white-space: nowrap; }

/* ---------- Nach-oben-Button ---------- */
.scroll-top {
  position: fixed; right: 10px; bottom: 10px; z-index: 10000;
  width: 35px; height: 35px; margin-bottom: -75px; padding: 0;
  border: 2px solid #000; border-radius: 100%;
  background: transparent; color: #000; cursor: pointer; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: margin-bottom .6s ease, opacity .3s ease;
}
.scroll-top svg { width: 18px; height: 18px; }
.scroll-top.in { margin-bottom: 0; opacity: .375; }
.scroll-top.in:hover { opacity: .825; }

/* ---------- Responsive ---------- */
@media (max-width: 766px) {
  .col-3 > .col { flex-basis: calc(50% - 1rem); }
  .col-2.stack-md > .col { flex-basis: 100%; }
}
@media (max-width: 479px) {
  .col-2 > .col, .col-3 > .col { flex-basis: 100%; }
  .headline.accent span { white-space: normal; }
  .brand img { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-slide.is-active { transition: none; }
  .hero-slide.is-active .hero-band::before,
  .hero-slide.is-active .hero-title,
  .hero-slide.is-active .hero-word .ch { animation: none; opacity: 1; transform: none; }
  .hero-slide.is-active .hero-title { transform: translate(calc(-50% + var(--hh) * .0167), calc(-50% - var(--hh) * .0444)); }
  .hero-slide.is-active .hero-band::before { transform: none; }
}
