/* ============================================
   derstottercoach.de — Main Stylesheet
   Calm, warm, trustworthy design for
   online stuttering coaching.
   ============================================ */

/* ------------------------------------------
   1. Custom Properties
   ------------------------------------------ */
:root {
  --teal:       #2A9D8F;
  --teal-dark:  #1E7A6E;
  --teal-light: #E8F5F3;
  --orange:     #E76F51;
  --orange-dark:#D4573B;
  --bg:         #FAFAF8;
  --bg-alt:     #F0F4F3;
  --text:       #264653;
  --text-dim:   #7A8B8B;
  --white:      #FFFFFF;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 2px 8px rgba(38,70,83,.08);
  --shadow-lg:  0 4px 20px rgba(38,70,83,.10);
  --transition: .2s ease;
  --max-width:  1200px;
  --content-width: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }
ul, ol { list-style-position: inside; }

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

/* ------------------------------------------
   3. Typography (Inter for headings)
   ------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;700;800&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: .75rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }
h4 { font-size: 1.1rem; margin-bottom: .5rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--teal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

ul, ol { margin-bottom: 1.25rem; padding-left: 1.25rem; list-style-position: outside; }
li { margin-bottom: .35rem; }

/* ------------------------------------------
   4. Utility Classes
   ------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }

.grid-2, .grid-3 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ------------------------------------------
   5. Navigation
   ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(38,70,83,.06);
  box-shadow: 0 1px 4px rgba(38,70,83,.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal);
}
.nav-logo:hover { color: var(--teal-dark); }

.nav-links {
  display: none;
  list-style: none;
  gap: 1.75rem;
  margin: 0; padding: 0;
}

.nav-links a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid rgba(38,70,83,.06);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: .6rem 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--bg-alt);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--teal); }

/* ------------------------------------------
   6. Hero Section
   ------------------------------------------ */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  max-width: 640px;
  margin: 0 auto 1rem;
}

.hero-sub {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  color: var(--text-dim);
  font-size: 1.15rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.hero-image {
  max-width: 560px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-lg);
}

/* ------------------------------------------
   7. Section Layouts
   ------------------------------------------ */
.section {
  padding: 4rem 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section--teal {
  background: var(--teal);
  color: var(--white);
}
.section--teal h2,
.section--teal h3,
.section--teal p { color: var(--white); }

.section-header {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 2.5rem;
}

/* ------------------------------------------
   8. Buttons
   ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
  line-height: 1.3;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: transparent;
  padding-left: .5rem;
  padding-right: .5rem;
}
.btn-ghost:hover { color: var(--teal-dark); }

/* White variants for dark backgrounds */
.section--teal .btn-primary { background: var(--white); color: var(--teal); border-color: var(--white); }
.section--teal .btn-primary:hover { background: var(--bg); border-color: var(--bg); }
.section--teal .btn-secondary { color: var(--white); border-color: var(--white); }
.section--teal .btn-secondary:hover { background: var(--white); color: var(--teal); }

/* ------------------------------------------
   9. Cards
   ------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 1rem;
  color: var(--teal);
}

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-dim); font-size: 1rem; }

/* ------------------------------------------
   10. Pricing Cards
   ------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: box-shadow var(--transition);
}

.pricing-card--featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 20px;
}

.pricing-price {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 1rem 0 .25rem;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  text-align: left;
}
.pricing-features li {
  padding: .4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: .95rem;
  color: var(--text);
}
.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ------------------------------------------
   11. Testimonial Cards
   ------------------------------------------ */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}
.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  left: 0; top: -.25rem;
  font-size: 2rem;
  color: var(--teal);
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name { font-weight: 700; font-size: .95rem; }
.testimonial-info { font-size: .85rem; color: var(--text-dim); }

/* ------------------------------------------
   12. FAQ Accordion (details/summary)
   ------------------------------------------ */
.faq-item {
  border-bottom: 1px solid rgba(38,70,83,.1);
}

.faq-item summary {
  padding: 1.25rem 2rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--teal);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item .faq-body {
  padding: 0 0 1.25rem;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ------------------------------------------
   13. CTA Sections
   ------------------------------------------ */
.cta-banner {
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p { margin-bottom: 1.5rem; }
.cta-banner .btn { margin: .25rem; }

.cta-banner--orange {
  background: var(--orange);
  color: var(--white);
}
.cta-banner--orange h2,
.cta-banner--orange p { color: var(--white); }
.cta-banner--orange .btn-primary {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.cta-banner--orange .btn-primary:hover {
  background: var(--bg);
  border-color: var(--bg);
}

/* ------------------------------------------
   14. Forms
   ------------------------------------------ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .35rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: .75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(38,70,83,.18);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,.15);
  outline: none;
}

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

.form-hint {
  font-size: .85rem;
  color: var(--text-dim);
  margin-top: .25rem;
}

/* ------------------------------------------
   15. Footer
   ------------------------------------------ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .75rem;
}

.site-footer a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--white); }

.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: .4rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ------------------------------------------
   16. Sticky Mobile CTA
   ------------------------------------------ */
.mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid rgba(38,70,83,.08);
  box-shadow: 0 -2px 10px rgba(38,70,83,.08);
  padding: .6rem .75rem;
  gap: .5rem;
}

.mobile-cta .btn {
  flex: 1;
  font-size: .9rem;
  padding: .7rem .5rem;
}

/* ------------------------------------------
   17. Badge / Pill
   ------------------------------------------ */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal-dark);
}

.badge--teal { background: var(--teal); color: var(--white); }
.badge--orange { background: var(--orange); color: var(--white); }

/* ------------------------------------------
   18. Breadcrumb
   ------------------------------------------ */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-dim);
  padding: .75rem 0;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { margin: 0 .4rem; }

/* ------------------------------------------
   19. Blog / Article Layout
   ------------------------------------------ */
.article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.article h1 { font-size: 2rem; margin-bottom: 1rem; }
.article h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.article h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .5rem; }

.article img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-meta {
  font-size: .9rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* ------------------------------------------
   20. Subtle Fade-in Animation (CSS only)
   ------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeUp .6s ease both;
}

/* Stagger classes for sequential reveals */
.fade-in-d1 { animation-delay: .1s; }
.fade-in-d2 { animation-delay: .2s; }
.fade-in-d3 { animation-delay: .3s; }

/* ------------------------------------------
   21. Tablet (768px+)
   ------------------------------------------ */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .section   { padding: 5rem 0; }

  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .mobile-cta { display: none; }
}

/* ------------------------------------------
   22. Desktop (1024px+)
   ------------------------------------------ */
@media (min-width: 1024px) {
  .section { padding: 6rem 0; }

  h1 { font-size: 3rem; }

  .nav-links { display: flex; }
  .nav-toggle { display: none; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .hero { padding: 5rem 0 4rem; }
}

/* ------------------------------------------
   23. Reduced Motion
   ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------
   24. Print
   ------------------------------------------ */
/* ------------------------------------------
   25. JS-driven States
   ------------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
}
.fade-in.visible {
  animation: fadeUp .6s ease both;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(38,70,83,.08);
}

body.nav-open .nav-menu { display: flex; }

body.cta-hidden .mobile-cta {
  transform: translateY(100%);
}
.mobile-cta {
  transition: transform .3s ease;
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
}
details[open] .faq-content {
  max-height: 500px;
  opacity: 1;
}

/* ------------------------------------------
   26. Trust Badges Row
   ------------------------------------------ */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 20px;
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ------------------------------------------
   27. Method Comparison Cards
   ------------------------------------------ */
.method-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.method-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.method-old {
  color: var(--text-dim);
  font-size: .95rem;
  margin-bottom: .75rem;
  text-decoration: line-through;
  text-decoration-color: var(--orange);
}

.method-new {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ------------------------------------------
   28. Step Cards
   ------------------------------------------ */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ------------------------------------------
   29. Grid 4
   ------------------------------------------ */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------
   30. Pill Badges
   ------------------------------------------ */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

/* ------------------------------------------
   31. Print (moved)
   ------------------------------------------ */
@media print {
  .site-header, .site-footer, .mobile-cta, .nav-toggle { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 1rem 0; }
}
