:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  line-height: 1.65;
  background: var(--white);
}

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

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

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 0.8rem;
}

.header.scrolled .header-top {
  padding: 0.2rem 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  transition: width 0.3s ease, height 0.3s ease;
}

.header.scrolled .logo-img {
  width: 75px;
  height: 75px;
}

.header-center {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: font-size 0.3s ease;
}

.header.scrolled .site-title {
  font-size: 1.4rem;
}

.site-tagline {
  font-size: 0.9rem;
  color: var(--teal);
  margin-top: 0;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.header.scrolled .site-tagline {
  font-size: 0.8rem;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-calendar:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-calendar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hamburger {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover { background: rgba(13,148,136,0.1); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}







/* ========== MENU SLOT – fixed height, no layout shift ========== */
.menu-slot {
  height: 40px;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.menu-slot.open {
  border-bottom-color: #e2e8f0;
}

.menu-slot-inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem 1.1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.menu-slot a {
  color: #0f766e;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.25rem 0.4rem;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(36px);   /* start from right */
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-slot.open a {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Right → Left order (last item appears first) */
.menu-slot.open a:nth-child(9) { transition-delay: 0.05s; } /* Datenschutz */
.menu-slot.open a:nth-child(8) { transition-delay: 0.12s; } /* Impressum */
.menu-slot.open a:nth-child(7) { transition-delay: 0.19s; } /* Kontakt */
.menu-slot.open a:nth-child(6) { transition-delay: 0.26s; } /* Philosophie */
.menu-slot.open a:nth-child(5) { transition-delay: 0.33s; } /* Referenzen */
.menu-slot.open a:nth-child(4) { transition-delay: 0.40s; } /* Heike */
.menu-slot.open a:nth-child(3) { transition-delay: 0.47s; } /* Methode */
.menu-slot.open a:nth-child(2) { transition-delay: 0.54s; } /* Bildungsurlaub */
.menu-slot.open a:nth-child(1) { transition-delay: 0.61s; } /* Online-Unterricht */

.menu-slot a:hover {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
}


.nav-orange {
  background: var(--orange);
  padding: 0.65rem 1.5rem;
}

.nav-orange-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.nav-orange a {
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-orange a:hover {
  background: rgba(255,255,255,0.15);
  color: #0f766e;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--teal-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,148,136,0.2) 0%, rgba(15,118,110,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Cards */
.offer-card {
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(0,0,0,0.22);
}

.offer-card-image {
  height: 210px;
  overflow: hidden;
  position: relative;
}

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

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

.badge-free {
  position: absolute;
  top: 14px;
  right: -34px;
  background: var(--orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 2.6rem;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.offer-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-card h2 {
  font-size: 1.45rem;
  color: var(--teal-dark);
  margin-bottom: 0.55rem;
}

.offer-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: white;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13,148,136,0.35);
}

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

.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245,158,11,0.35);
}

/* ========== PAGE CONTENT ========== */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto;
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-section h2 {
  font-size: 1.7rem;
  color: var(--teal-dark);
  margin: 2rem 0 1rem;
}

.content-section h2:first-child { margin-top: 0; }

.content-section p {
  margin-bottom: 1.1rem;
  color: var(--gray-700);
}

.content-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--gray-700);
}

.content-section li { margin-bottom: 0.4rem; }

.img-rounded {
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--teal-dark);
  color: white;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-nav {
  max-width: 900px;
  margin: 0 auto 2rem;
  background: var(--orange);
  border-radius: 10px;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.85; }

.footer-info {
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.footer-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-info-item .icon { font-size: 1.5rem; margin-bottom: 0.2rem; }
.footer-info-item strong { font-size: 0.95rem; }
.footer-info-item span { font-size: 0.85rem; opacity: 0.9; }

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.75;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 1000px;
  margin: 0 auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; max-width: 440px; }
  .site-title { font-size: 1.5rem; }
  .site-tagline { font-size: 0.85rem; }
  .logo-img { width: 110px; height: 110px; }
  .header.scrolled .logo-img { width: 60px; height: 60px; }
  .footer-info { grid-template-columns: 1fr; gap: 1.25rem; }
  .page-hero h1 { font-size: 1.9rem; }
}

@media (max-width: 600px) {
  .header-top { padding: 0.7rem 1rem; }
  .logo-img { width: 100px; height: 100px; }
  .btn-calendar span { display: none; }
  .nav-orange-inner { gap: 1.2rem; }
  .nav-orange a { font-size: 0.95rem; }
  .hero { min-height: 78vh; }
}

/* Hide secondary menu items on tablet/mobile so primary ones fit */
@media (max-width: 1100px) {
  .menu-slot a[href*="online-unterricht"],
  .menu-slot a[href*="bildungsurlaub"],
  .menu-slot a[href*="impressum"],
  .menu-slot a[href*="datenschutz"] {
    display: none;
  }
  .menu-slot-inner {
    gap: 0.15rem 1rem;
  }
}

@media (max-width: 700px) {
  .menu-slot a {
    font-size: 0.88rem;
    padding: 0.2rem 0.3rem;
  }
  .menu-slot-inner {
    gap: 0.1rem 0.7rem;
  }
  .logo-img {
    width: 120px !important;
    height: 120px !important;
  }
  .header.scrolled .logo-img {
    width: 90px !important;
    height: 90px !important;
  }
}

.footer-nav a:hover {
  color: #0f766e;
  opacity: 1;
}



/* Menu hover + active – no blue flash */
.menu-slot-inner a,
.nav-orange a,
.footer-nav a {
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-slot-inner a:link,
.menu-slot-inner a:visited,
.menu-slot-inner a:active,
.menu-slot-inner a:focus {
  color: #0f766e;
  outline: none;
  background: transparent;
}
.menu-slot-inner a:hover {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
  border-radius: 6px;
}
.menu-slot-inner a.active {
  color: #0d9488;
  font-weight: 600;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 6px;
}
.nav-orange a:link,
.nav-orange a:visited,
.nav-orange a:active,
.nav-orange a:focus {
  color: #fff;
  outline: none;
}
.nav-orange a:hover,
.nav-orange a.active {
  color: #0f766e;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
}
a:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}
