/* =========================================================
   edvGO Website – Global Stylesheet
   Primary:   #5ED31A  (green)
   Secondary: #7B6ACC  (purple)
   Text:      #111111  (near-black)
   ========================================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:     #5ED31A;
  --primary-dark:#4ab514;
  --secondary:   #7B6ACC;
  --secondary-dark:#6355b0;
  --text:        #111111;
  --text-light:  #444444;
  --bg:          #f7f9f4;
  --white:       #ffffff;
  --radius:      1.25rem;
  --radius-lg:   2rem;
  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --shadow-hover:0 8px 32px rgba(0,0,0,.16);
  --transition:  .3s ease;
  --font:        'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Wave wrapper (replaces inline styles on inter-section waves) ---------- */
.wave-wrap {
  line-height: 0;
  overflow: hidden;
}
.wave-wrap svg {
  display: block;
  width: 100%;
}
.wave-wrap--white  { background: #ffffff; }
.wave-wrap--light  { background: linear-gradient(135deg, #f0f8e8 0%, #ede9fb 100%); }
.wave-wrap--light2 { background: linear-gradient(160deg, #f0f8e8 0%, #ede9fb 100%); }

/* ---------- References intro paragraph ---------- */
.ref-intro {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Services: alternate-background block ---------- */
.service-block--alt {
  background: linear-gradient(135deg, #f0f8e8 0%, #ede9fb 100%);
  padding-top: 0;
}
.container--top {
  padding-top: 5rem;
}

/* ---------- Accessibility: Skip Navigation ---------- */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-nav:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: .75rem 1.5rem;
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius) 0;
  outline: none;
  text-decoration: none;
}

/* ---------- Accessibility: Focus Styles ---------- */
:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: 3px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-dark); }
ul  { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: .6rem auto 0;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

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

.nav-logo img { height: 100px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav contact info */
.nav-contact {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-left: 1.5rem;
  border-left: 2px solid #eee;
  padding-left: 1.5rem;
}
.nav-contact-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-contact-link:hover { color: var(--primary-dark); }
.nav-contact-link svg { flex-shrink: 0; color: var(--primary-dark); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-contact { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 20px rgba(0,0,0,.10);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: .8rem 1.5rem;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #3ab010 50%, var(--secondary) 100%);
  color: var(--white);
  padding: 7rem 0 10rem;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='rgba(255,255,255,.06)' d='M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,64C960,53,1056,43,1152,42.7C1248,43,1344,53,1392,58.7L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'/%3E%3C/svg%3E") no-repeat center top / cover;
}

.hero-logo {
  margin: 0 auto 2.5rem;
  max-width: 280px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  opacity: .92;
}

.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
}
.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  color: var(--primary-dark);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  color: var(--white);
}

/* Wave divider (bottom of hero) */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}
.wave-divider svg { display: block; width: 100%; }

/* ---------- Business Tiles ---------- */
.tiles-section {
  background: var(--white);
  padding-bottom: 6rem;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tile {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--primary);
  cursor: pointer;
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.tile-logo {
  height: 90px;
  width: auto;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.tile h3 {
  margin-bottom: .6rem;
  color: var(--secondary-dark);
}

.tile p {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.tile .tile-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--secondary);
}
.tile .tile-link:hover { color: var(--primary-dark); }

/* Wave between sections */
.wave-section {
  position: relative;
  overflow: hidden;
}

/* ---------- Membership Grid ---------- */
.membership-section {
  background: linear-gradient(160deg, #f0f8e8 0%, #ede9fb 100%);
  padding: 5rem 0 6rem;
}

.membership-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.membership-card {
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  width: 280px;
  transition: transform var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-bottom: 3px solid var(--secondary);
}
.membership-card:hover { transform: translateY(-4px); color: var(--text); }

.membership-card .org-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  flex-shrink: 0;
}
.badge-ihk  { background: #003b80; color: #fff; }
.badge-ccc  { background: #e00; color: #fff; }

.membership-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.membership-card span {
  font-size: .82rem;
  color: var(--text-light);
}

/* ---------- References Grid ---------- */
.references-section {
  background: var(--white);
  padding: 5rem 0 6rem;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ref-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-bottom: 3px solid var(--primary);
}
.ref-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.ref-logo-wrap {
  width: 100%;
  height: 160px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.ref-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ref-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ref-card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.ref-card .ref-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: auto;
  padding-top: .5rem;
}

/* ---------- Footer ---------- */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  gap: 2rem;
  justify-items: center;
}

footer h4 { color: var(--primary); margin-bottom: 1rem; font-size: 1rem; }
footer p, footer a { font-size: .9rem; color: #aaa; }
footer a:hover { color: var(--primary); }
footer ul li + li { margin-top: .5rem; }

.footer-logo { height: 36px; filter: brightness(0) invert(1); margin-bottom: .8rem; }

.footer-contact {
  list-style: none;
  margin-top: .9rem;
}
.footer-contact li + li { margin-top: .5rem; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: #aaa;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--primary); }
.footer-contact svg { flex-shrink: 0; }

.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: .82rem;
  color: #666;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Subpages – Services ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 6rem 0 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.88); max-width: 600px; margin: 1rem auto 0; font-size: 1.1rem; }

.service-block {
  padding: 5rem 0;
}
.service-block:nth-child(even) {
  background: linear-gradient(135deg, #f0f8e8 0%, #ede9fb 100%);
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}
.service-layout.reverse { direction: rtl; }
.service-layout.reverse > * { direction: ltr; }

.service-logo-wrap {
  text-align: center;
}
.service-logo-wrap img {
  max-width: 200px;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.12));
}

.service-content h2 {
  color: var(--secondary-dark);
  margin-bottom: 1rem;
}
.service-content p { color: var(--text-light); margin-bottom: 1rem; }

.feature-list { margin-top: 1.2rem; }
.feature-list li {
  padding: .45rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
  font-size: .95rem;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .service-layout,
  .service-layout.reverse { grid-template-columns: 1fr; direction: ltr; }
  .service-logo-wrap { order: -1; }
}

/* ---------- Impressum / Datenschutz ---------- */
.legal-content {
  background: var(--white);
  padding: 4rem 0 6rem;
}
.legal-content .container { max-width: 780px; }
.legal-content h2 { margin-top: 2.5rem; margin-bottom: .8rem; font-size: 1.3rem; color: var(--secondary-dark); }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: .5rem; font-size: 1.05rem; }
.legal-content h4 { margin-top: 1rem; margin-bottom: .4rem; font-size: .95rem; font-weight: 600; color: var(--text); }
.legal-content p,
.legal-content li { font-size: .95rem; color: var(--text-light); margin-bottom: .6rem; }
.legal-content ul { padding-left: 1.4rem; list-style: disc; }
.legal-content a { color: var(--secondary); }

/* ---------- FAQ Section ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
}

.faq-item dt {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .6rem;
}

.faq-item dd {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

.faq-item dd a {
  color: var(--secondary);
}
.faq-item dd a:hover {
  color: var(--secondary-dark);
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: linear-gradient(135deg, #f0f8e8 0%, #ede9fb 100%);
  padding: 5rem 0;
  text-align: center;
}
.contact-section p {
  color: var(--text-light);
  margin: .75rem auto 2rem;
  max-width: 520px;
}
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--white);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition), color var(--transition);
}
.contact-link:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--primary-dark);
}
.contact-link svg { color: var(--primary-dark); flex-shrink: 0; }
.contact-hours {
  margin-top: 2rem;
  color: var(--text-light);
  line-height: 1.8;
}
.contact-hours p { margin: 0; }
.contact-hours strong { color: var(--text); }

.contact-hours {
  max-width: 520px; /* Breite wie im .contact-section p Element */
  margin: 2rem auto 0; /* Zentriert den Block und fügt oben Abstand hinzu */
  color: var(--text-light);
  line-height: 1.8;
  text-align: center; /* Stellt sicher, dass der Text im Fall unerwarteter Blockelemente auch zentriert ist */
}
.mt-1  { margin-top: 1rem; }
.mt-2  { margin-top: 2rem; }
.mb-2  { margin-bottom: 2rem; }
.green { color: var(--primary-dark); }
.purple { color: var(--secondary); }

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back-to-top ---------- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top.show { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--secondary-dark); transform: translateY(-3px); }
