/* ================================================================
   CSS Custom Properties
   ================================================================ */
:root {
  /* Teal palette
     --teal:       text/links on white  — contrast 5.1:1 (AA ✓)
     --teal-cta:   button background    — white text on top 7.5:1 (AA ✓)
  */
  --teal:        #1A7A73;
  --teal-cta:    #145F5A;
  --teal-hover:  #0F4845;
  --teal-light:  #E8F7F5;
  --teal-border: #A8D5D1;

  --text:        #1C2B36;
  --text-muted:  #4D6475;
  --bg:          #FFFFFF;
  --bg-alt:      #F5FAFB;
  --border:      #D5E4E7;

  --radius:      6px;
  --max-w:       1080px;
  --max-text-w:  720px;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-hover);
}

/* ================================================================
   Typography
   ================================================================ */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.0625rem; }

/* ================================================================
   Layout Utilities
   ================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

/* ================================================================
   Header
   ================================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.header-nav a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.lang-toggle {
  background: none;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  margin-left: 0.5rem;
}

.lang-toggle:hover {
  background: var(--teal);
  color: #fff;
}

/* Hamburger button (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-open .nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-block;
  background: var(--teal-cta);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  background: var(--teal-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: none;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal-cta);
  border-color: var(--teal-cta);
  color: #fff;
}

/* ================================================================
   Hero
   ================================================================ */
#hero {
  padding: 6rem 0 5rem;
  background: var(--bg);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  color: var(--teal);
  margin-top: 1rem;
  margin-bottom: 1.125rem;
  line-height: 1.4;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 48ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--teal-border);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* Photo */
.hero-photo {
  flex-shrink: 0;
}

.photo-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  border: 4px solid var(--teal-light);
  outline: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

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


/* ================================================================
   Section Headings (shared)
   ================================================================ */
.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-top: 0.75rem;
}

/* ================================================================
   Arbeitsweise
   ================================================================ */
#arbeitsweise .container {
  max-width: var(--max-text-w);
}

#arbeitsweise p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ================================================================
   Leistungen
   ================================================================ */
.services-intro {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 8px 8px 0 0;
}

.service-card.featured {
  background: var(--teal-light);
  border-color: var(--teal-border);
}

.service-card h3 {
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 1.125rem;
  position: relative;
  line-height: 1.5;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.service-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-cta);
  border: 1px solid var(--teal-border);
  border-radius: 100px;
  padding: 0.125rem 0.625rem;
  margin-bottom: 0.875rem;
  background: #fff;
  letter-spacing: 0.03em;
}

.services-format-note {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.services-format-note::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--teal-border);
  flex-shrink: 0;
}

/* ================================================================
   Zielgruppen
   ================================================================ */
#zielgruppen .container {
  max-width: var(--max-text-w);
}

#zielgruppen p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ================================================================
   Über mich
   ================================================================ */
#ueber .container {
  max-width: var(--max-text-w);
}

#ueber p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ================================================================
   Preise
   ================================================================ */
#preise .container {
  max-width: var(--max-text-w);
}

.price-note {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ================================================================
   FAQ
   ================================================================ */
#faq .container {
  max-width: var(--max-text-w);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
  color: var(--text);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--teal);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] > summary {
  background: var(--teal-light);
}

.faq-item[open] > summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--teal-light);
}

.faq-answer {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ================================================================
   Kontakt
   ================================================================ */
#kontakt {
  text-align: center;
}

#kontakt .container {
  max-width: var(--max-text-w);
}

#kontakt .section-heading::after {
  margin-left: auto;
  margin-right: auto;
}

.contact-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.email-link {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 2px solid var(--teal-border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.email-link:hover {
  color: var(--teal-hover);
  border-color: var(--teal-hover);
}

/* ================================================================
   Footer
   ================================================================ */
footer {
  background: #1A2830;
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 0 2.5rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-wordmark {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9375rem;
}

.impressum-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.impressum-block > summary {
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.15s;
  user-select: none;
}

.impressum-block > summary::-webkit-details-marker {
  display: none;
}

.impressum-block > summary::before {
  content: '▸';
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.impressum-block[open] > summary::before {
  transform: rotate(90deg);
}

.impressum-block > summary:hover {
  color: rgba(255, 255, 255, 0.7);
}

.impressum-content {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  max-width: 480px;
}

.impressum-content p {
  margin-bottom: 0.75rem;
}

.impressum-content strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.impressum-content em {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  font-size: 0.8125rem;
}

/* ================================================================
   Accessibility
   ================================================================ */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ================================================================
   Responsive — Tablet (≥ 600px): 2-column services
   ================================================================ */
@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.625rem);
  }
}

/* ================================================================
   Responsive — Desktop (≥ 900px): 3-column services, wider gaps
   ================================================================ */
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .service-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}

/* ================================================================
   Responsive — Mobile (≤ 640px): mobile nav, single-column hero
   ================================================================ */
@media (max-width: 640px) {
  section {
    padding: 3.5rem 0;
  }

  #hero {
    padding: 3.5rem 0;
  }

  /* Show hamburger, hide nav by default */
  .nav-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    gap: 0.125rem;
  }

  .header-nav.is-open {
    display: flex;
  }

  .header-nav a {
    width: 100%;
    padding: 0.625rem 0.75rem;
  }

  .lang-toggle {
    margin-left: 0;
    width: 100%;
    padding: 0.625rem 0.75rem;
    text-align: left;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: none;
    border-radius: 0;
    margin-top: 0.375rem;
  }

  /* Single-column hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-photo {
    order: -1;
  }

  .photo-frame {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges {
    justify-content: center;
  }
}

/* ================================================================
   Responsive — Mobile nav: keep lang-toggle inline on medium screens
   ================================================================ */
@media (min-width: 641px) {
  .lang-toggle {
    display: inline-block;
  }
}

/* ================================================================
   Print
   ================================================================ */
@media print {
  header {
    position: static;
    border-bottom: 1px solid #ccc;
  }

  .nav-toggle,
  .lang-toggle {
    display: none;
  }

  section:nth-child(even) {
    background: none;
  }

  .btn {
    border: 1px solid #000;
    background: none;
    color: #000;
  }
}
