/* =========================================================
   Cordula Becker – Coaching Website
   Shared stylesheet
   ========================================================= */

:root {
  --color-dark: #4D4D4D;
  --color-terracotta: #9F4E4C;
  --color-cyan: #00BFED;
  --color-cyan-light: #45B0E1;
  --color-cream: #F3EEE6;
  --color-cream-darker: #ECE5D8;
  --color-white: #FFFFFF;

  --font-head: 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 200;
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.35;
  font-size: 25px;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 350;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--color-dark);
}

h1 { font-size: 42px; }
h2 { font-size: 34px; }
h3 { font-size: 24px; }

p { margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 300;
  color: var(--color-cyan);
  letter-spacing: 0.03em;
  font-size: 24px;
  margin-bottom: 16px;
  display: block;
}

.headline-accent {
  color: var(--color-terracotta);
  font-weight: 200;
}

/* Kein Abstand wenn h2 direkt von rotem Lead-Absatz gefolgt wird */
h2:has(+ p.headline-accent) {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--color-cyan);
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 400;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--color-cyan-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-cyan);
}

/* ---------- Header / Navigation ---------- */

.site-header {
  padding: 24px 0;
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--color-dark);
}

/* ---------- Burger-Overlay-Navigation ---------- */

.main-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-nav.open {
  display: flex;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 350;
  letter-spacing: 0.03em;
  color: var(--color-dark);
  text-transform: uppercase;
  line-height: 1;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-terracotta);
  font-weight: 200;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 301;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-dark);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .main-nav a { font-size: 34px; }
}

/* ---------- Sub-navigation (Coaching-Angebote tabs) ---------- */

.sub-nav {
  background: var(--color-white);
  text-align: center;
  padding: 6px 0 14px;
  position: sticky;
  top: 75px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sub-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.sub-nav a {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--color-dark);
  text-transform: uppercase;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: var(--color-cyan);
}

@media (max-width: 600px) {
  .sub-nav ul { flex-direction: column; gap: 8px; }
}

/* ---------- Page header banner (wide composite illustration) ---------- */

.page-header {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
  min-height: clamp(180px, 22vw, 380px);
  display: flex;
  align-items: center;
}

.page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: clamp(180px, 22vw, 380px);
}

.page-header .img-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
}

.page-header h1 {
  position: relative;
  z-index: 2;
  color: var(--color-cyan);
  font-size: clamp(20px, 2.4vw, 34px);
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

/* Pill-Hintergrund für Seiten, wo Figuren in die Mitte reichen (z.B. AVGs) */
.page-header h1.pill {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 10px rgba(255,255,255,0.55);
  border-radius: 32px;
  padding: 8px 28px;
  display: inline-block;
  width: auto;
}

/* Unterhalb 900px: gestapeltes Layout – Illustration oben, Titel darunter */
@media (max-width: 900px) {
  .page-header {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    min-height: auto;
    overflow: visible; /* Safari: kein Clipping des gestapelten Layouts */
  }
  .page-header .img-full {
    display: block;
    position: relative; /* aus dem absoluten Fluss herausnehmen */
    top: auto;          /* Safari-kompatibel statt inset: auto */
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: 40vw;       /* vw-basiert für stufenlose Skalierung */
    min-height: 140px;
    max-height: 200px;
    object-fit: cover;
    object-position: center top;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    transform: none;
  }
  .page-header .container {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .page-header h1 {
    font-size: clamp(22px, 4vw, 30px);
    text-align: center;
    width: 100%;
  }
  /* Kein Pill nötig wenn Illustration in eigenem Streifen liegt */
  .page-header h1.pill {
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    display: block;
    width: 100%;
  }
}

/* ---------- Anliegen list (icon-free styled sub-sections) ---------- */

.anliegen-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.anliegen-list h3 {
  color: var(--color-cyan);
  margin-bottom: 4px;
}

.anliegen-list .item {
  margin-bottom: 28px;
}

.anliegen-list .item p {
  margin-bottom: 4px;
  font-size: 22px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  min-height: 520px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-photo {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.hero-text {
  text-align: right;
  max-width: 50%;
  padding: 36px 0 36px 56px;
}

.hero-text h1 {
  margin-bottom: 0;
  font-size: 40px;
}

.hero-text .sub {
  color: var(--color-terracotta);
  font-family: var(--font-head);
  font-weight: 200;
  font-size: 40px;
  line-height: 1.25;
}

@media (max-width: 880px) {
  .hero .container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: auto;
    padding-top: 0;
  }
  .hero-photo { position: relative; width: 100%; height: 280px; }
  .hero-text { max-width: 100%; text-align: left; padding: 24px 0; }
}

/* ---------- Generic sections ---------- */

section { padding: 72px 0; }

.section-cream { background: var(--color-cream); }
.section-white { background: var(--color-white); }

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-narrow {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

/* Einheitlicher Abstand Button→Text in allen Content-Sektionen */
.section-narrow > .btn,
.section-narrow > a.btn {
  margin-top: 16px;
}

/* ---------- Cards (Coaching Teasers) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--color-cream-darker);
  border-radius: 25px;
  padding: 40px 28px;
  text-align: center;
}

.card img {
  height: 365px;
  margin: 0 auto;
  width: auto;
}

.card h3 { margin-bottom: 12px; color: var(--color-cyan); }

.card p { font-size: 22px; margin-bottom: 24px; }

@media (max-width: 880px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Coaching detail block (illustration + text) ---------- */

.coaching-detail {
  text-align: center;
}

.coaching-detail img {
  max-height: 365px;
  width: auto;
  margin: 0 auto 32px;
}

.coaching-detail .eyebrow { text-align: center; }

.coaching-detail h2 { text-align: center; }

.coaching-detail .copy {
  max-width: 1020px;
  margin: 0 auto 24px;
  text-align: center;
}

/* ---------- Split-Layout (Illustration + Text nebeneinander) ---------- */

.split-layout {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.split-illu {
  flex-shrink: 0;
  max-height: 380px;
  width: auto;
}

.split-content {
  flex: 1;
  text-align: left;
}

.split-content .anliegen-list {
  text-align: left;
  margin: 0;
  max-width: none;
}

.split-content .anliegen-list .item p {
  font-size: 22px;
}

@media (max-width: 880px) {
  .split-layout {
    flex-direction: column;
    align-items: center;
  }
  .split-illu {
    max-height: 260px;
  }
}

/* ---------- Carousel mit Illustration ---------- */

.carousel-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.carousel-illu {
  flex-shrink: 0;
  width: 200px;
  height: 240px;
  object-fit: contain;
}

.carousel-track {
  min-height: 280px;
}

@media (max-width: 600px) {
  .carousel-inner { flex-direction: column; gap: 24px; }
  .carousel-illu { width: 140px; height: 160px; }
}

/* ---------- Photo grid ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer / Kontakt banner ---------- */

.site-footer {
  background: var(--color-cyan);
  color: var(--color-white);
  text-align: center;
  padding: 64px 0 32px;
}

.site-footer h2 { color: var(--color-white); }

.site-footer .copy {
  max-width: 960px;
  margin: 0 auto 28px;
}

.site-footer .legal-links {
  margin-top: 32px;
  font-size: 18px;
}

.site-footer .legal-links a { text-decoration: underline; }

.site-footer .legal-links a + a { margin-left: 16px; }

/* ---------- Form ---------- */

.contact-form {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: 6px;
  margin-top: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D8D2C5;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 20px;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button { margin-top: 24px; }

.contact-form .consent {
  display: block;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form .consent input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: top;
  margin-top: 4px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* ---------- Bullet lists used across content pages ---------- */

.styled-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  max-width: 700px;
}

.styled-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 22px;
}

.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
}

/* ---------- Carousel (Feedback / Testimonials) ---------- */

.carousel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.carousel-track {
  overflow: hidden;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active { display: block; }

.carousel-quote {
  font-family: var(--font-head);
  font-weight: 340;
  font-size: 22px;
  color: var(--color-terracotta);
  margin-bottom: 16px;
}

.carousel-author {
  font-size: 18px;
  color: var(--color-dark);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cream-darker);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active { background: var(--color-cyan); }
