/* ============================================================
   AV Lernzentrum – Stylesheet
   Sections:
   1. Reset & Variables
   2. Base & Typography
   3. Animations & Scroll Effects
   4. Top Bar
   5. Navigation
   6. Hero
   7. Features Strip
   8. About
   9. Services
   10. Why Us
   11. Reviews
   12. CTA Banner
   13. Contact
   14. Footer
   15. Responsive
============================================================ */

/* ── 1. Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #2d6b6b;
  --teal-dark:  #1e4a4a;
  --teal-light: #e1f5ee;
  --white:      #ffffff;
  --gray-light: #f5f5f3;
  --gray-mid:   #888780;
  --text:       #1a1a1a;
  --text-muted: #555555;
  --radius:     12px;
  --transition: 0.25s ease;
}

/* ── 2. Base & Typography ─────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

section { padding: 80px; }

.section-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ── 3. Animations & Scroll Effects ──────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Scroll-reveal base state */
/* → animations defined in av-animations.css */
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ── 4. Top Bar ───────────────────────────────────────────── */
.topbar {
  background: var(--teal-dark);
  color: #cde8e8;
  font-size: 13px;
  padding: 7px 0;
  text-align: center;
}
.topbar a { color: #cde8e8; margin: 0 12px; transition: color var(--transition); }
.topbar a:hover { color: #fff; }

/* ── 5. Navigation ────────────────────────────────────────── */
nav {
  background: var(--teal-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 54px; width: auto; }

.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold, #c9a84c);
  transition: width var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold, #c9a84c);
  color: var(--teal-dark);
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), transform 0.15s;
}
.nav-cta:hover { background: #b8943e; color: #fff; transform: translateY(-1px); }

/* ── 6. Hero ──────────────────────────────────────────────── */
.hero {
  background: var(--teal);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

/* subtle animated background bubbles */
.hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -80px; left: 40%;
  pointer-events: none;
}

.hero-text { animation: fadeInLeft 0.8s ease both; }
.hero h1 { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero h2 { font-size: 22px; font-weight: 400; opacity: 0.9; margin-bottom: 28px; }
.hero p  { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-white {
  background: #fff;
  color: var(--teal);
  padding: 12px 28px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 12px 28px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition), transform 0.15s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

.hero-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease 0.2s both;
}
.hero-logo-box img {
  max-width: 340px;
  width: 100%;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.25));
  animation: float 4s ease-in-out infinite;
}

/* ── 7. Features Strip ────────────────────────────────────── */
.features {
  background: var(--white);
  padding: 60px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-bottom: 1px solid #eee;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid #e8e8e8;
  background: var(--gray-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: 0 8px 28px rgba(45,107,107,0.12);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.feature-card:hover .feature-icon { background: var(--teal); transform: scale(1.1); }
.feature-icon svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 2; transition: stroke var(--transition); }
.feature-card:hover .feature-icon svg { stroke: #fff; }

.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); }

/* ── 8. About ─────────────────────────────────────────────── */
.about {
  background: var(--gray-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.about-text li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; }

.check-icon {
  width: 24px; height: 24px; min-width: 24px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: background var(--transition), transform var(--transition);
}
.about-text li:hover .check-icon { background: var(--teal); transform: scale(1.1); }
.check-icon svg { width: 13px; height: 13px; stroke: var(--teal); stroke-width: 2.5; fill: none; transition: stroke var(--transition); }
.about-text li:hover .check-icon svg { stroke: #fff; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.stat-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(45,107,107,0.1); }
.stat-num { font-size: 40px; font-weight: 800; color: var(--teal); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── 9. Services ──────────────────────────────────────────── */
.services { background: var(--white); }

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

.service-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 32px 24px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  box-shadow: 0 10px 32px rgba(45,107,107,0.14);
  border-color: var(--teal);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover .service-icon { background: var(--teal); transform: rotate(5deg) scale(1.05); }
.service-icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 2; transition: stroke var(--transition); }
.service-card:hover .service-icon svg { stroke: #fff; }

.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--teal-dark); }
.service-card p  { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.service-card a  { font-size: 13px; color: var(--teal); font-weight: 600; transition: letter-spacing var(--transition); }
.service-card:hover a { letter-spacing: 0.03em; }

/* ── 10. Why Us ───────────────────────────────────────────── */
.why { background: var(--teal); color: #fff; }
.why .section-title { color: #fff; }
.why .section-tag   { color: #9ed8d8; }
.why .section-sub   { color: rgba(255,255,255,0.8); }

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

.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}
.why-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }

.why-num { font-size: 36px; font-weight: 800; opacity: 0.2; margin-bottom: 8px; }
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p  { font-size: 14px; opacity: 0.8; }

/* ── 11. Reviews ──────────────────────────────────────────── */
.reviews { background: var(--gray-light); }

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

.review-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 12px; right: 18px;
  font-size: 60px;
  color: var(--teal-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.review-card:hover { box-shadow: 0 8px 28px rgba(45,107,107,0.1); transform: translateY(-4px); }

.stars { color: #f5a623; font-size: 16px; margin-bottom: 14px; }
.review-card p   { font-size: 14px; color: var(--text-muted); font-style: italic; margin-bottom: 18px; }
.review-author   { font-size: 13px; font-weight: 700; color: var(--text); }
.review-role     { font-size: 12px; color: var(--text-muted); }

/* ── 12. CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: var(--teal-dark);
  color: #fff;
  text-align: center;
  padding: 70px 80px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -80px; left: -80px;
}

.cta-banner h2 { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.cta-banner p  { font-size: 17px; opacity: 0.85; margin-bottom: 32px; }

.btn-cta {
  background: #fff;
  color: var(--teal-dark);
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ── 13. Contact ──────────────────────────────────────────── */
.contact {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 28px; }

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
  transition: transform var(--transition);
}
.contact-item:hover { transform: translateX(4px); }

.contact-ic {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.contact-item:hover .contact-ic { background: var(--teal); }
.contact-ic svg { width: 18px; height: 18px; stroke: var(--teal); stroke-width: 2; fill: none; transition: stroke var(--transition); }
.contact-item:hover .contact-ic svg { stroke: #fff; }

.contact-text strong { display: block; font-size: 14px; color: var(--text); }
.contact-text span   { font-size: 13px; color: var(--text-muted); }

.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }

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

.form-group { margin-bottom: 16px; }
.form-group label {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  display: block; margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,107,107,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  background: var(--teal);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), transform 0.15s;
}
.btn-submit:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ── 14. Footer ───────────────────────────────────────────── */
footer {
  background: #0f2a2a;
  color: #cde8e8;
  padding: 60px 80px 30px;
}

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

footer h4 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.07em;
}
footer p, footer a { font-size: 13px; color: #9dbfbf; line-height: 1.9; }
footer a:hover { color: #fff; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 4px; }

.footer-logo img { height: 50px; width: auto; margin-bottom: 14px; filter: brightness(2); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6a9999;
}

/* ── 15. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero,
  .about,
  .contact     { grid-template-columns: 1fr; }

  .features,
  .services-grid,
  .why-grid,
  .reviews-grid { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  section,
  .hero,
  .cta-banner,
  footer        { padding: 40px 24px; }

  nav           { padding: 12px 20px; }
  .nav-links    { display: none; }

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

  .hero h1       { font-size: 28px; }
  .hero-logo-box { order: -1; }
  .hero-logo-box img { max-width: 200px; }

  .features { padding: 40px 24px; }
}


/* ── Animation additions ──────────── */
/* ============================================================
   AV NRW – Scroll Animation Additions
   Appended to each page's style.css
============================================================ */

/* ── Reveal: scale-in (hero cards) ──────────────────────── */
.reveal-scale {
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Reveal: flip-in (stats) ─────────────────────────────── */
.reveal-flip {
  opacity: 0;
  transform: perspective(600px) rotateX(18deg) translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-flip.visible {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0);
}

/* ── Reveal: tag slide-in (section labels) ───────────────── */
.reveal-tag {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s;
}
.reveal-tag.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Stronger base reveal (override if already defined) ──── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Stagger delays (up to 8 children) ──────────────────── */
.stagger > *:nth-child(1) { transition-delay: 0.00s; }
.stagger > *:nth-child(2) { transition-delay: 0.10s; }
.stagger > *:nth-child(3) { transition-delay: 0.20s; }
.stagger > *:nth-child(4) { transition-delay: 0.30s; }
.stagger > *:nth-child(5) { transition-delay: 0.40s; }
.stagger > *:nth-child(6) { transition-delay: 0.50s; }
.stagger > *:nth-child(7) { transition-delay: 0.60s; }
.stagger > *:nth-child(8) { transition-delay: 0.70s; }

/* ── Mobile nav open state ────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: inherit;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 300;
    gap: 12px;
    animation: fadeDown 0.25s ease both;
  }
}
