/* ===================================================================
   Sabine Pirnay – Coaching | One-Page Redesign
   =================================================================== */

:root {
  /* Feste Markenfarbe: Header/Hero/Über-mich/Footer bleiben immer dunkel,
     unabhängig vom Farbschema des Betriebssystems. */
  --color-brand-dark: #23272b;

  /* Theme-abhängige Töne (werden unten für den Dark Mode neu definiert) */
  --color-heading: #23272b;
  --color-heading-soft: #3a4048;
  --color-text: #333333;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f6;
  --color-border: #e5e7eb;
  --shadow-card: 0 10px 30px rgba(20, 25, 30, 0.08);

  /* Akzentfarben: identisch in Hell und Dunkel */
  --color-blue: #6ec1e4;
  --color-orange: #f08d5e;
  --color-orange-dark: #e07545;

  --font-display: "Cinzel", serif;
  --font-heading: "Roboto", sans-serif;
  --font-body: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --container-w: 1180px;
  --header-h: 84px;
  --radius: 10px;
}

/* Dunkel-Modus: folgt automatisch der Systemeinstellung, mit denselben
   Marken- und Akzentfarben wie im hellen Modus. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-heading: #f4f6f7;
    --color-heading-soft: #d7dbde;
    --color-text: #cfd6da;
    --color-text-light: #9aa3a9;
    --color-bg: #23272b;
    --color-bg-alt: #2f343a;
    --color-border: rgba(255, 255, 255, 0.14);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--color-heading); margin: 0 0 .5em; }
h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-orange-dark);
  margin: 0 0 .6em;
}
.lead { font-size: 1.1rem; color: var(--color-text-light); max-width: 640px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #fff; color: #000; padding: 10px 16px; z-index: 2000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--color-orange); color: #201a17; }
.btn-primary:hover { background: var(--color-orange-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-brand-dark); }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--color-orange); z-index: 950;
  transition: width .1s linear;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,0));
  transition: background .25s ease, box-shadow .25s ease, height .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
  background: rgba(24,28,32,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
  height: 68px;
}
.header-inner {
  width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-badge { height: 40px; width: auto; transition: height .25s ease; }
.site-header.is-scrolled .brand-badge { height: 34px; }

.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-link {
  text-decoration: none; color: #fff; font-family: var(--font-heading);
  font-size: .95rem; font-weight: 500; padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: border-color .2s ease;
  background: none; border-top: none; border-left: none; border-right: none; cursor: pointer;
}
.nav-link:hover, .nav-link.is-active { border-color: var(--color-orange); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: stretch;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/hero-bg.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(20,28,36,.88) 0%, rgba(35,45,55,.68) 55%, rgba(35,45,55,.4) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container-w); margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 60px;
  width: 100%;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 20px;
}
.hero-text { min-width: 0; }
.hero-text h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: #fff;
  line-height: 1.3;
}
.hero-text blockquote { margin: 28px auto; max-width: 480px; text-align: center; }
.hero-text blockquote p { font-style: italic; font-family: var(--font-display); font-size: 1rem; color: #dfe6ea; margin: 0 0 .3em; }
.hero-text cite { display: block; font-size: .85rem; color: #9fb0ba; font-style: normal; }
.hero-image { display: flex; justify-content: center; align-items: flex-end; height: 100%; min-width: 0; align-self: stretch; }
.hero-image img {
  max-height: 78vh; width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 25px 30px rgba(0,0,0,.35));
  margin-bottom: -60px; /* Bild bündig mit dem unteren Bildschirmrand abschneiden, statt mit Lücke mitten im Bein zu enden */
}

/* ===== USP ===== */
.usp { padding: 100px 0 90px; text-align: center; }
.usp .eyebrow, .usp h2, .usp .lead { margin-left: auto; margin-right: auto; }
.usp h2 { font-size: 2.1rem; color: var(--color-blue); }
.usp .lead { margin-top: 14px; margin-bottom: 50px; }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.usp-card {
  display: block; text-decoration: none; color: inherit; min-width: 0;
  background: var(--color-bg-alt); border-radius: var(--radius);
  padding: 34px 30px; border-top: 3px solid var(--color-orange);
  transition: transform .2s ease, box-shadow .2s ease;
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.usp-card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.usp-card p { color: var(--color-text-light); margin: 0; font-size: .95rem; }

/* ===== SERVICES ===== */
.services { padding: 90px 0; background: var(--color-bg-alt); text-align: center; }
.services .eyebrow { margin: 0 auto; }
.services h2 { max-width: 640px; margin: 0 auto 55px; font-size: 1.6rem; color: var(--color-heading-soft); font-weight: 500; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: left; }
.service-card {
  background: var(--color-bg); border-radius: var(--radius); overflow: hidden; min-width: 0;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-media {
  height: 150px; background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05);
}
.service-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-kicker {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-blue);
  font-weight: 600; line-height: 1.3; min-height: 2.7em; margin: 0 0 .3em;
}
.service-body h3 { line-height: 1.25; min-height: 3.15rem; margin-bottom: .4em; }
.service-body p:not(.service-kicker) { color: var(--color-text-light); font-size: .93rem; flex: 1; }
.link-more {
  align-self: flex-start; background: none; border: none; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; color: var(--color-orange-dark);
  padding: 0; font-size: .9rem; margin-top: 8px;
}
.link-more:hover { text-decoration: underline; }

/* ===== TESTIMONIALS (Karussell) ===== */
.testimonials { padding: 90px 0; text-align: center; }
.testimonials .eyebrow, .testimonials h2 { margin-left: auto; margin-right: auto; }
.testimonials h2 { margin-bottom: 50px; }

.carousel { position: relative; max-width: 720px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track {
  display: flex;
  transition: transform .4s ease;
  touch-action: pan-y;
  cursor: grab;
}
.carousel-track:active { cursor: grabbing; }
.carousel-slide {
  flex: 0 0 100%; min-width: 0; box-sizing: border-box; margin: 0;
  background: var(--color-bg-alt);
  padding: 44px 64px; display: flex; flex-direction: column; text-align: left;
  min-height: 220px; justify-content: center;
}
.carousel-slide p { margin: 0 0 20px; font-size: .98rem; color: var(--color-text-light); }
.carousel-slide footer { border-top: 1px solid var(--color-border); padding-top: 14px; }
.carousel-slide cite { display: block; font-style: normal; font-weight: 700; color: var(--color-heading); }
.carousel-slide span { font-size: .82rem; color: var(--color-text-light); }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--color-bg); color: var(--color-heading);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.carousel-arrow:hover { background: var(--color-orange); color: #201a17; }
.carousel-arrow-prev { left: 10px; }
.carousel-arrow-next { right: 10px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.carousel-dot {
  width: 9px; height: 9px; border-radius: 5px; border: none; padding: 0;
  background: var(--color-border); cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.carousel-dot.is-active { width: 24px; background: var(--color-orange); }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ===== ABOUT ===== */
.about { padding: 90px 0; background: var(--color-brand-dark); color: #fff; }
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.about-media, .about-text { min-width: 0; }
.about-media img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.about .eyebrow { color: var(--color-blue); }
.about h2 { color: #fff; font-size: 1.7rem; }
.about-text { text-align: center; }
.about-text p { color: #cfd6da; }

/* ===== CONTACT ===== */
.contact { padding: 90px 0 110px; text-align: center; }
.contact .eyebrow, .contact h2 { margin-left: auto; margin-right: auto; }
.contact h2 { margin-bottom: 40px; }
.contact-form { max-width: 640px; margin: 0 auto; text-align: left; display: grid; gap: 20px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-family: var(--font-heading); font-size: .85rem; font-weight: 600; color: var(--color-heading-soft); }
.form-row input, .form-row textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--color-border);
  border-radius: 8px; background: var(--color-bg-alt); color: var(--color-text);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-blue); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #1c7a3d; }
.form-status.err { color: #c0392b; }

/* ===== FOOTER ===== */
.site-footer { background: var(--color-brand-dark); color: #cfd6da; padding: 36px 0 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px 30px; padding-bottom: 28px; font-size: .92rem;
}
.footer-contact { margin: 0; }
.footer-contact a { color: #cfd6da; text-decoration: none; }
.footer-contact a:hover { color: var(--color-orange); }
.footer-legal { margin: 0; display: flex; gap: 22px; white-space: nowrap; }
.footer-legal a { text-decoration: none; color: #cfd6da; background: none; border: none; cursor: pointer; font: inherit; padding: 0; }
.footer-legal a:hover { color: var(--color-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; padding: 20px 24px; font-size: .82rem; color: #8b959b;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 24, 28, .6);
  display: none; align-items: flex-start; justify-content: center;
  padding: 6vh 20px; overflow-y: auto;
}
.modal-overlay.is-open { display: flex; }
.modal {
  display: none;
  background: var(--color-bg); border-radius: var(--radius);
  max-width: 640px; width: 100%; padding: 44px 40px 40px;
  position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.modal-wide { max-width: 760px; }
.modal.is-open { display: block; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--color-bg-alt); font-size: 1.4rem; line-height: 1; cursor: pointer;
  color: var(--color-heading-soft);
}
.modal-close:hover { background: var(--color-border); }
.modal h2 { font-size: 1.5rem; }
.modal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.modal .cv-list { padding-left: 1.1em; font-size: .95rem; }
.modal .cv-list li { margin-bottom: .6em; }
.modal .fine-print { font-size: .8rem; color: var(--color-text-light); }
.modal .btn { margin-top: 10px; }
body.modal-open { overflow: hidden; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 45vh; margin-bottom: 0; }
  .usp-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; margin: 0 auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--color-bg); box-shadow: 0 10px 20px rgba(0,0,0,.1);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav .nav-link { color: var(--color-heading) !important; display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .usp-grid, .services-grid { grid-template-columns: 1fr; }
  .carousel-slide { padding: 36px 40px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 1.1rem; }
  .carousel-arrow-prev { left: 4px; }
  .carousel-arrow-next { right: 4px; }
  h2 { font-size: 1.6rem; }
  .modal { padding: 36px 22px 30px; }
}
