:root {
  --color-bg: #fdfbf7;
  --color-bg-warm: #f7f3ec;
  --color-text: #2d3a3a;
  --color-text-light: #5a6b6b;
  --color-accent: #7b9e87;
  --color-accent-soft: #e8f0ea;
  --color-border: #e5dfd5;
  --font-display: 'Cormorant Garamond', georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

/* Crisis Bar */
.crisis-bar {
  background: #4a5568;
  color: white;
  padding: 0.6rem 2rem;
  font-size: 0.85rem;
  text-align: center;
}

.crisis-bar a {
  color: white;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crisis-bar a:hover {
  text-decoration: none;
}

.crisis-bar span {
  opacity: 0.7;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(253 251 247 / 95%);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.has-crisis-bar nav {
  top: auto;
  position: sticky;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(
    ellipse,
    var(--color-accent-soft) 0%,
    transparent 70%
  );
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-accent);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-cta:hover {
  background: #6b8e77;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgb(123 158 135 / 30%);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* About Section */
.about {
  background: var(--color-bg-warm);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 4/5;
  background: linear-gradient(
    135deg,
    var(--color-accent-soft) 0%,
    var(--color-border) 100%
  );
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder {
  text-align: center;
  color: var(--color-text-light);
  padding: 2rem;
}

.about-image-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-highlight {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.highlight-item {
  text-align: left;
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.highlight-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Features Section (Horizontal Scroll) */
.features {
  background: var(--color-bg);
  overflow: hidden;
}

.features-scroll-container {
  position: relative;
  margin-top: 3rem;
}

.features-scroll {
  display: flex;
  gap: 2rem;
  overflow: auto hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.features-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.feature-card {
  flex: 0 0 calc(33.333% - 1.35rem);
  scroll-snap-align: start;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgb(0 0 0 / 8%);
  border-color: var(--color-accent-soft);
}

.feature-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-accent-soft) 0%,
    var(--color-border) 100%
  );
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
}

.feature-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(45 58 58 / 40%) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.feature-content {
  padding: 2rem;
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.feature-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Navigation Buttons */
.features-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
}

.features-nav-btn:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
}

.features-nav-btn svg {
  width: 20px;
  height: 20px;
}

.features-nav-prev {
  left: -24px;
}

.features-nav-next {
  right: -24px;
}

.features-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.features-nav-btn:disabled:hover {
  background: white;
  color: var(--color-text);
  border-color: var(--color-border);
  transform: translateY(-50%) scale(1);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgb(0 0 0 / 6%);
  border-color: var(--color-accent-soft);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  background: var(--color-bg-warm);
}

/* Ablauf/Process Section */
.ablauf {
  background: var(--color-bg);
}

.ablauf-intro {
  max-width: 600px;
  margin-bottom: 4rem;
}

.ablauf-intro p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-number {
  width: 64px;
  height: 64px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 4px 20px rgb(123 158 135 / 30%);
}

.timeline-line {
  width: 2px;
  height: 1.5rem;
  background: var(--color-accent-soft);
  margin-top: -1px;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 1.75rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
  border-color: var(--color-accent-soft);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.timeline-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.timeline-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  background: var(--color-accent-soft);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 500;
}

.timeline-detail svg {
  width: 14px;
  height: 14px;
}

@media (width <= 600px) {
  .timeline-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .timeline-marker {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }

  .timeline-number {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .timeline-line {
    width: auto;
    height: 2px;
    flex: 1;
    margin-top: 0;
  }

  .timeline-item:last-child .timeline-line {
    display: block;
    background: transparent;
  }

  .timeline-content {
    padding: 1.25rem 1.5rem;
  }

  .timeline-content h3 {
    font-size: 1.15rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.contact-item-text {
  padding-top: 0.25rem;
}

.contact-item-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-item-value {
  color: var(--color-text);
  font-size: 1rem;
}

.contact-item-value a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item-value a:hover {
  color: var(--color-accent);
}

.contact-note {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.contact-note h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.contact-note p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Map placeholder */
.map-container {
  background: linear-gradient(
    135deg,
    var(--color-accent-soft) 0%,
    var(--color-border) 100%
  );
  border-radius: 8px;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: var(--color-text-light);
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Für Jugendliche Section */
.jugendliche {
  background: linear-gradient(135deg, #e8f0ea 0%, #f7f3ec 100%);
}

.jugendliche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.jugendliche-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.jugendliche-content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.jugendliche-content p strong {
  color: var(--color-text);
}

.jugendliche-box {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.jugendliche-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.jugendliche-box ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.jugendliche-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-light);
}

.jugendliche-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.jugendliche-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.jugendliche-cta:hover {
  gap: 0.75rem;
}

/* FAQ Section */
.faq {
  background: var(--color-bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.faq-item {
  background: white;
  padding: 1.75rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.faq-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Wartezeit Badge */
.wartezeit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.wartezeit-badge svg {
  width: 18px;
  height: 18px;
}

@media (width <= 968px) {
  .jugendliche-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* Features - show 1 card on tablet */
  .feature-card {
    flex: 0 0 calc(50% - 1rem);
  }

  .features-nav-prev {
    left: -16px;
  }

  .features-nav-next {
    right: -16px;
  }

  .features-nav-btn {
    width: 40px;
    height: 40px;
  }

  .features-nav-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Footer */
footer {
  background: var(--color-text);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgb(255 255 255 / 60%);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: rgb(255 255 255 / 50%);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 50%);
}

.footer-legal a {
  color: rgb(255 255 255 / 50%);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: white;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 60%);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-bg);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

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

.modal-content {
  padding: 2rem;
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-content h3:first-child {
  margin-top: 0;
}

.modal-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Responsive */
@media (width <= 968px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
    aspect-ratio: 16/9;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal a {
    margin: 0 1rem;
  }

  .about-highlight {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (width <= 480px) {
  .hero {
    padding-top: 6rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .nav-inner {
    padding: 1rem 1.5rem;
  }

  /* Features - show 1 full card on mobile */
  .feature-card {
    flex: 0 0 calc(100% - 0.5rem);
  }

  .features-scroll {
    gap: 1rem;
  }

  .features-nav-btn {
    display: none; /* Hide navigation buttons on very small screens */
  }

  .feature-content {
    padding: 1.5rem;
  }

  .feature-content h3 {
    font-size: 1.25rem;
  }
}
