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

:root {
  --gruen:        #6cba6d;
  --blau:         #6fc1e5;
  --gruen-dunkel: #52a053;
  --blau-dunkel:  #4aaed4;
  --text:         #515c59;
  --text-hell:    #8a9b98;
  --grenze:       #d1d1d1;
  --bg:           #f4fbfd;
  --card:         #ffffff;
  --gradient:     linear-gradient(135deg, #6cba6d 0%, #6fc1e5 100%);
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Navigation ─── */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--grenze);
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 10px rgba(0,0,0,0.07);
}

.nav-logo-link { flex-shrink: 0; line-height: 0; }

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav ul li a {
  display: inline-block;
  padding: 0.38rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 20px;
  transition: background 0.18s, color 0.18s;
}

.site-nav ul li a:hover,
.site-nav ul li a.aktiv {
  background: var(--gradient);
  color: #fff;
}

/* ─── Hero — Startseite ─── */
.hero {
  background: var(--gradient);
  padding: 5rem 2rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.10) 0%, transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 70px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.10);
  position: relative;
}

.hero p {
  max-width: 580px;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  position: relative;
}

/* ─── Seiten-Header — Unterseiten ─── */
.page-header {
  background: var(--gradient);
  padding: 3rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.10);
  position: relative;
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  position: relative;
}

/* ─── Hauptinhalt ─── */
main {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
}

/* ─── Karten ─── */
section {
  background: var(--card);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 20px rgba(111, 193, 229, 0.09);
  border: 1px solid rgba(209, 209, 209, 0.5);
  transition: box-shadow 0.2s;
}

section:hover {
  box-shadow: 0 4px 28px rgba(111, 193, 229, 0.16);
}

/* Zweispaltiges Raster */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.card-grid section { margin-bottom: 0; }

/* ─── Typografie ─── */
h1 { font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

section h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

section h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: var(--gradient);
  flex-shrink: 0;
}

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

ul, ol { padding-left: 1.5rem; margin-bottom: 0.85rem; }
li { margin-bottom: 0.4rem; }
li:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

a { color: var(--gruen-dunkel); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--blau-dunkel); }

h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--gruen-dunkel); }

/* ─── CTA-Button ─── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 2px 12px rgba(108, 186, 109, 0.3);
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}

/* ─── Download-Liste ─── */
.dl-liste {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.download-link:hover {
  background: var(--card);
  border-color: var(--gruen);
  color: var(--gruen-dunkel);
  transform: translateX(5px);
  box-shadow: 0 2px 12px rgba(108, 186, 109, 0.2);
  text-decoration: none;
}

.download-link::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 20v2h14v-2H5z'/%3E%3C/svg%3E")
    center / 20px no-repeat,
    linear-gradient(135deg, #6cba6d 0%, #6fc1e5 100%);
}

/* ─── "Folgt in Kürze" ─── */
.kommt-bald {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border-radius: 10px;
  color: var(--text-hell);
  font-size: 0.97rem;
}

.kommt-bald::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23aabbcc'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20A10 10 0 0 0 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E")
    center / 20px no-repeat,
    #e8eef2;
}

.badge {
  font-size: 0.77rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(108,186,109,0.15), rgba(111,193,229,0.2));
  color: var(--blau-dunkel);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── Video-Einbettung (responsiv) ─── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 1rem;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ─── Social-Sektion ─── */
.social-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--grenze);
}

.social-cta .social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-cta .social-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.social-cta .social-info {
  flex: 1;
}

.social-cta .social-info strong {
  display: block;
  font-size: 0.95rem;
}

.social-cta .social-info span {
  font-size: 0.85rem;
  color: var(--text-hell);
}

.social-cta .btn {
  margin-top: 0;
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
}

/* ─── Platzhalter (Galerien etc.) ─── */
.platzhalter {
  background: var(--bg);
  border: 2px dashed var(--grenze);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--text-hell);
  font-size: 0.95rem;
}

/* ─── Footer ─── */
footer {
  background: var(--text);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

footer p {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

footer ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.18s;
}

footer ul li a:hover { color: var(--blau); }

/* ─── Blog-Übersicht ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.blog-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(111, 193, 229, 0.09);
  border: 1px solid rgba(209, 209, 209, 0.5);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  box-shadow: 0 6px 30px rgba(111, 193, 229, 0.2);
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-hell);
  margin-bottom: 0.4rem;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-card-teaser {
  font-size: 0.88rem;
  color: var(--text-hell);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

/* ─── Blog-Post ─── */
.blog-post {
  padding: 2rem;
}

.back-nav {
  margin-top: 2rem;
}

.blog-subheading {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--gruen-dunkel);
}

.blog-post p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.blog-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin: 1.25rem 0;
}

.blog-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.blog-img-grid .blog-img {
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  height: 100%;
}

/* ─── Lightbox ─── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 500;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.aktiv {
  display: flex;
}

#lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.blog-img { cursor: zoom-in; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 1.25rem 5.5rem; }
  .page-header { padding: 2.5rem 1.25rem 4rem; }
  section { padding: 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  main { padding: 1.5rem 1rem 3rem; }
  .blog-post { padding: 1.25rem; }
  .blog-img-grid { grid-template-columns: 1fr 1fr; }
}
