/* =========================================================
   DITIB Gundelsheim – Stylesheet
   Mobile First · ohne externe Dienste · umgesetzt von NXTLVL Solutions
   ========================================================= */

:root {
  --accent: #19b5fe;
  --accent-dark: #0a9be0;
  --dark: #141618;
  --dark-2: #1c1f22;
  --text: #151515;
  --body: #6b6f74;
  --muted: #9aa0a6;
  --line: #ececec;
  --soft: #fafafa;
  --white: #fff;
  --red: #e30a17;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-head: "Raleway", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --header-h: 72px;
  --wrap: 1170px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 1024px) { :root { --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--text); line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 30px; } }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 4px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 1px; line-height: 24px;
  color: #fff; background: var(--accent);
  padding: 15px 40px; border-radius: 50px;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 0 0 rgba(25, 181, 254, 0);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 25px -8px rgba(25, 181, 254, .6); }
.btn .ico { font-size: 1.05em; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 22px; font-size: 13px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  transition: box-shadow .3s var(--ease), transform .4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, .07); }
.header-inner {
  height: 100%; max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 20px;
}
@media (min-width: 1024px) { .header-inner { padding: 0 40px; } }
.brand { margin-right: auto; display: block; }
.brand img { height: 42px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 50px; } }

/* Navigation Desktop */
.main-nav ul { display: flex; align-items: center; }
.main-nav a {
  position: relative; display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text); padding: 0 14px; line-height: var(--header-h);
  transition: color .25s var(--ease);
}
.main-nav li + li a::before {
  content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--text); opacity: .85;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); }

/* Sprachwechsler */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .5px; color: var(--text);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px;
  transition: border-color .25s, color .25s;
}
.lang-current:hover, .lang-switch.is-open .lang-current { border-color: var(--accent); color: var(--accent); }
.lang-current .ico { font-size: 15px; }
.lang-current .ico-chev { font-size: 11px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.lang-switch.is-open .ico-chev { transform: rotate(-90deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 150px;
  background: #fff; border-radius: 8px; padding: 6px;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; text-align: left; display: flex; gap: 10px; align-items: center;
  font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--text);
  padding: 9px 12px; border-radius: 5px;
}
.lang-menu button span { font-weight: 700; color: var(--accent); width: 20px; }
.lang-menu button:hover, .lang-menu button[aria-selected="true"] { background: #f1f9fe; }

/* Hamburger */
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -8px; }
.menu-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: -1;
    background: #fff; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease-io), visibility .45s;
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 0 20px; }
  .main-nav li { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease); }
  .main-nav.is-open li { opacity: 1; transform: none; }
  .main-nav.is-open li:nth-child(2) { transition-delay: .04s; }
  .main-nav.is-open li:nth-child(3) { transition-delay: .08s; }
  .main-nav.is-open li:nth-child(4) { transition-delay: .12s; }
  .main-nav.is-open li:nth-child(5) { transition-delay: .16s; }
  .main-nav.is-open li:nth-child(6) { transition-delay: .2s; }
  .main-nav a { line-height: 1; padding: 16px 24px; font-size: 14px; border-bottom: 1px solid #f3f3f3; }
  .main-nav li + li a::before { display: none; }
}

/* =========================================================
   HERO (Slider wie im Original: Crossfade, 6 s, Ken Burns, Parallax)
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 520px;
  margin-top: 0; background: var(--dark); color: #fff;
}
.hero-slides { position: absolute; inset: 0; will-change: transform; }
.slide {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.slide-bg {
  position: absolute; inset: -4% 0; background: center / cover no-repeat;
}
.slide-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.kenburns .slide-bg { transform: scale(1.15); }
.kenburns.is-active .slide-bg { transform: scale(1); transition: transform 7s linear; }

.slide-content { position: relative; z-index: 2; padding: var(--header-h) 20px 40px; max-width: 100%; }
.slide-title {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(2.2rem, 11vw, 7.8rem); line-height: 1; letter-spacing: -.064em;
  margin-bottom: 22px;
}
/* Oben Platz für Akzente (Ü, İ), per negativem Rand ausgeglichen */
.slide-title .ln { display: block; overflow: hidden; padding: .2em .08em .06em; margin-top: -.2em; }
.slide-title .ln > span { display: inline-block; }
.slide-sub { font-family: var(--font-display); font-size: clamp(15px, 2.2vw, 18px); line-height: 30px; margin-bottom: 30px; color: #fff; }
.slide-sub span { display: inline-block; }
.slide-btn { margin: 0; }

/* Startzustand der Ebenen */
.slide .slide-title, .slide .slide-sub, .slide .slide-btn { transition: none; }
/* Folie 1: Skalieren + Einblenden (power2.inOut) */
.fx-scale .slide-title, .fx-scale .slide-sub, .fx-scale .slide-btn { opacity: 0; transform: scale(.8); }
.fx-scale.is-active .slide-title, .fx-scale.is-active .slide-sub, .fx-scale.is-active .slide-btn {
  opacity: 1; transform: none; transition: opacity 1s var(--ease-io), transform 1s var(--ease-io);
}
.fx-scale.is-active .slide-title { transition-delay: .6s; }
.fx-scale.is-active .slide-sub { transition-delay: .8s; }
.fx-scale.is-active .slide-btn { transition-delay: 1s; }
/* Folie 2: Maske – erste Zeile von oben, Rest von unten */
.fx-mask .ln > span { transform: translateY(130%); }
.fx-mask .ln-down > span { transform: translateY(-130%); }
.fx-mask .slide-sub, .fx-mask .slide-btn { overflow: hidden; }
.fx-mask .slide-sub span, .fx-mask .slide-btn .btn { transform: translateY(110%); opacity: 0; }
.fx-mask.is-active .ln > span, .fx-mask.is-active .slide-sub span, .fx-mask.is-active .slide-btn .btn {
  transform: none; opacity: 1; transition: transform 1s var(--ease-io) .6s, opacity 1s var(--ease-io) .6s;
}
.fx-mask.is-active .ln + .ln > span { transition-delay: .7s; }
.fx-mask.is-active .slide-sub span { transition-delay: .85s; }
.fx-mask.is-active .slide-btn .btn { transition-delay: 1s; }
/* Folie 3: Von unten einblenden (power4.inOut) */
.fx-up .slide-title, .fx-up .slide-sub, .fx-up .slide-btn { opacity: 0; transform: translateY(50px); }
.fx-up.is-active .slide-title, .fx-up.is-active .slide-sub, .fx-up.is-active .slide-btn {
  opacity: 1; transform: none; transition: opacity 1s cubic-bezier(.77, 0, .175, 1), transform 1s cubic-bezier(.77, 0, .175, 1);
}
.fx-up.is-active .slide-title { transition-delay: .6s; }
.fx-up.is-active .slide-sub { transition-delay: .75s; }
.fx-up.is-active .slide-btn { transition-delay: .9s; }

.hero-arrow {
  position: absolute; top: 50%; z-index: 5; width: 54px; height: 54px; margin-top: -27px;
  display: grid; place-items: center; color: #fff; font-size: 34px; opacity: .85;
  transition: opacity .25s, transform .25s var(--ease);
}
.hero-arrow .ico { stroke-width: 1.6; }
.hero-prev { left: 10px; transform: scaleX(-1); }
.hero-next { right: 10px; }
.hero-prev:hover { opacity: 1; transform: scaleX(-1) translateX(3px); }
.hero-next:hover { opacity: 1; transform: translateX(3px); }
@media (max-width: 767px) { .hero-arrow { display: none; } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 5; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* =========================================================
   SEKTIONEN
   ========================================================= */
.section { position: relative; padding: 80px 0 0; }
@media (min-width: 1024px) { .section { padding-top: 120px; } }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 50px; }
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-family: var(--font-head); font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.5px;
  margin-bottom: 26px;
}
.section-title::before, .section-title::after {
  content: ""; flex: 0 1 90px; height: 6px; background: #eaeaea;
  transform: scaleX(0); transition: transform 1s var(--ease) .2s;
}
@media (max-width: 639px) { .section-title { gap: 14px; } .section-title::before, .section-title::after { flex-basis: 34px; height: 4px; } }
.section-title::before { transform-origin: right; }
.section-title::after { transform-origin: left; }
.is-visible .section-title::before, .is-visible .section-title::after, .no-anim .section-title::before, .no-anim .section-title::after { transform: none; }
.section-lead { font-family: var(--font-head); font-weight: 300; font-size: 16px; line-height: 1.9; color: var(--body); margin-bottom: .6em; }

.section-dark { background: var(--dark); color: #b9bec4; }
.section-dark .section-title { color: #fff; }
.section-dark .section-title::before, .section-dark .section-title::after { background: #2a2e33; }
.section-dark .section-lead { color: #b9bec4; }

/* ---------- Über uns: Bildkacheln ---------- */
.tiles { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--dark); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.2) brightness(.95); }
.tile figcaption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 26px 28px; color: #fff;
  background: linear-gradient(to top, rgba(20, 22, 24, .85), rgba(20, 22, 24, 0) 60%);
}
.tile figcaption strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.3px; transform: translateY(8px); transition: transform .5s var(--ease); }
.tile figcaption span { font-size: 13px; color: var(--accent); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tile:hover img { transform: scale(1.08); filter: none; }
.tile:hover figcaption strong { transform: none; }
.tile:hover figcaption span { opacity: 1; transform: none; }
@media (hover: none) { .tile figcaption strong { transform: none; } .tile figcaption span { opacity: 1; transform: none; } }

.facts-strip { background: var(--soft); padding: 46px 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; text-align: center; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--text); letter-spacing: -1px; }
.facts span { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* ---------- Services ---------- */
.services { display: grid; gap: 40px 34px; grid-template-columns: 1fr; padding-bottom: 90px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); padding-bottom: 120px; } }
.service { display: flex; gap: 20px; align-items: flex-start; }
.service-icon, .contact-icon { width: 46px; height: 46px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; margin: 6px 0 12px; }
.service p { margin: 0; font-size: 13.5px; line-height: 2; color: #555; }

/* Linien zeichnen sich beim Einblenden (wie vivus im Original) */
.draw { stroke-dasharray: 300; stroke-dashoffset: 300; }
.is-visible .draw, .no-anim .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease) .25s; }

.cta-bar {
  display: block; background: var(--dark); color: #fff; text-align: center;
  padding: 64px 0;
  font-family: var(--font-body); font-weight: 600; font-size: clamp(15px, 2vw, 18px); letter-spacing: .2px;
  transition: background .4s var(--ease);
}
@media (min-width: 1024px) { .cta-bar { padding: 100px 0; } }
.cta-bar span { display: block; transition: color .3s, letter-spacing .4s var(--ease); }
.cta-bar:hover { background: #0f1113; }
.cta-bar:hover span { color: var(--accent); letter-spacing: .6px; }

/* ---------- Unsere Moschee ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.g-item { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #000; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item:hover img { transform: scale(1.08); }
.g-text { display: flex; align-items: center; padding: 0 12%; }
.g-text p { margin: 0; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; letter-spacing: -.5px; }

.counters-wrap {
  background: var(--dark); color: #fff;
  padding: 80px 0 140px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%);
}
@media (min-width: 1024px) { .counters-wrap { padding: 110px 0 200px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 100%); } }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px 20px; text-align: center; }
@media (min-width: 768px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counter strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.counter span { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; color: #fff; }

/* ---------- News ---------- */
.section-news { margin-top: -40px; padding-bottom: 100px; }
@media (min-width: 1024px) { .section-news { margin-top: -60px; padding-bottom: 130px; } }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); gap: 34px; } }
.news-card { border-radius: 8px; background: #fff; box-shadow: 0 6px 30px -10px rgba(0, 0, 0, .18); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -18px rgba(0, 0, 0, .3); }
.news-link { display: flex; flex-direction: column; height: 100%; }
.news-img { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--dark); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.07); }
.news-tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 14px;
  font-family: var(--font-body); font-weight: 500; font-size: 12px; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
}
.news-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; margin-bottom: 14px; transition: color .25s; }
.news-card:hover h3 { color: var(--accent); }
.news-body p { font-size: 13.5px; line-height: 1.95; color: #555; margin-bottom: 18px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.more .ico { transition: transform .3s var(--ease); }
.news-card:hover .more .ico { transform: translateX(5px); }

/* ---------- Kontakt ---------- */
.section-contact {
  padding-top: 130px; padding-bottom: 90px;
  clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}
@media (min-width: 1024px) { .section-contact { padding-top: 190px; padding-bottom: 120px; clip-path: polygon(0 120px, 100% 0, 100% 100%, 0 100%); } }
.contact-cols { display: grid; gap: 40px 34px; grid-template-columns: 1fr; margin-bottom: 80px; }
@media (min-width: 900px) { .contact-cols { grid-template-columns: repeat(3, 1fr); } }
.contact-cols li { display: flex; gap: 20px; }
.contact-cols h3 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 16px; margin: 6px 0 12px; }
.contact-cols p { margin: 0; font-size: 13.5px; line-height: 2; }

.contact-grid { display: grid; gap: 40px; padding-top: 60px; border-top: 1px solid #2a2e33; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 70px; } }
.form-intro { font-family: var(--font-head); font-weight: 300; font-size: 18px; color: #fff; line-height: 1.6; }
.address { margin-top: 34px; }
.address h3 { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.address p { display: flex; gap: 12px; font-size: 14px; line-height: 1.8; }
.address .ico { color: var(--accent); font-size: 20px; margin-top: 3px; }
.open-note { color: var(--accent); font-size: 13px !important; }
.social { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2c3136; color: #c8ccd1; transition: color .25s, border-color .25s, background-color .25s, transform .25s; }
.social a:hover, .social a:focus-visible { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social .ico { font-size: 17px; }
.social-lg { justify-content: flex-start; margin: 0; }
.social-lg a { width: 46px; height: 46px; }
.social-lg .ico { font-size: 20px; }
.follow { margin-top: 28px; }

.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field > span { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #fff; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: #fff;
  background: var(--dark-2); border: 1px solid #2c3036; border-radius: 6px;
  padding: 13px 15px; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2319b5fe' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field select option { color: var(--text); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #20242a; box-shadow: 0 0 0 3px rgba(25, 181, 254, .15); }
.is-invalid { border-color: #ff5a5f !important; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.7; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.check.is-invalid { color: #ff8a8e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14px; min-height: 1.5em; }
.form-status.is-success { color: #4ade80; }
.form-status.is-error { color: #ff8a8e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); border-top: 1px solid #22262a; color: #8a9097; text-align: center; padding: 40px 0 46px; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin-bottom: 14px; font-size: 13px; }
.footer-links a, .link-btn { color: #c8ccd1; transition: color .25s; }
.footer-links a:hover, .link-btn:hover { color: var(--accent); }
.copy { margin: 0; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.copy a { color: #c8ccd1; }
.copy a:hover { color: var(--accent); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 18px;
  box-shadow: 0 8px 20px -6px rgba(25, 181, 254, .7);
  opacity: 0; visibility: hidden; transform: translateY(15px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top .ico { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); }

/* =========================================================
   EINBLENDEN BEIM SCROLLEN (fadeInUp / zoomIn wie im Original)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .reveal-zoom { opacity: 0; transform: scale(.85); }
.js .reveal.is-visible, .js .reveal-zoom.is-visible {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease) var(--delay, 0s), transform .9s var(--ease) var(--delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-zoom { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .section-title::before, .section-title::after { transform: none; }
  .slide, .slide * { transition: none !important; }
  .kenburns .slide-bg { transform: none; }
}

/* =========================================================
   RECHTSTEXTE (Dialoge) & HINWEIS
   ========================================================= */
dialog.legal {
  width: min(760px, calc(100% - 24px)); max-height: calc(100% - 40px);
  padding: 0; border: 0; border-radius: 10px; color: var(--body); background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
dialog.legal::backdrop { background: rgba(20, 22, 24, .75); backdrop-filter: blur(3px); }
dialog.legal[open] { animation: dlg .35s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.legal-inner { position: relative; padding: 46px 26px 36px; }
@media (min-width: 640px) { .legal-inner { padding: 56px 50px 44px; } }
.legal h2 { font-family: var(--font-head); font-weight: 600; font-size: 28px; margin-bottom: 20px; }
.legal h3 { font-family: var(--font-body); font-weight: 600; font-size: 15px; margin: 26px 0 8px; }
.legal p { font-size: 14px; line-height: 1.8; }
.legal a { color: var(--accent-dark); text-decoration: underline; }
.legal-close { position: sticky; top: 0; float: right; margin: -30px -12px 0 0; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; background: #f2f2f2; color: var(--text); }
.legal-close:hover { background: var(--accent); color: #fff; }
.legal-date { color: var(--muted); font-size: 12px !important; margin-top: 26px; }
.legal-lang-note { background: #f1f9fe; border-left: 3px solid var(--accent); padding: 10px 14px; font-size: 13px !important; color: var(--text); }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 16px 20px; border-radius: 10px;
  background: #fff; color: var(--body); font-size: 13px; line-height: 1.6;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .35);
  animation: cookieIn .5s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 260px; }
.cookie a { color: var(--accent-dark); text-decoration: underline; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } }

/* =========================================================
   UNTERSEITE NEWS
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: calc(var(--header-h) + 90px) 0 110px; background: var(--dark);
}
@media (min-width: 1024px) { .page-hero { padding: calc(var(--header-h) + 130px) 0 150px; } }
.page-hero-bg { position: absolute; inset: -10% 0; background: url("../assets/img/hero-3.jpg") center / cover no-repeat; transform: scale(1.12); animation: kb 8s linear forwards; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
@keyframes kb { to { transform: scale(1); } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: clamp(2.6rem, 8vw, 5.6rem); letter-spacing: -.06em; line-height: 1; margin-bottom: 18px; animation: heroUp 1s var(--ease-io) .3s both; }
.page-hero p { font-family: var(--font-display); font-size: clamp(15px, 2vw, 18px); margin: 0 0 6px; animation: heroUp 1s var(--ease-io) .5s both; }
.crumbs { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; animation: heroUp 1s var(--ease-io) .7s both; }
.crumbs a { color: var(--accent); }
@keyframes heroUp { from { opacity: 0; transform: translateY(40px); } }

.post-list { padding: 90px 0 40px; }
.news-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 70px; }
.news-toc a { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--text); padding: 9px 18px; border: 1px solid var(--line); border-radius: 30px; transition: all .25s; }
.news-toc a:hover { border-color: var(--accent); color: var(--accent); }
.post { display: grid; gap: 30px; padding-bottom: 80px; margin-bottom: 80px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 30px); }
.post:last-child { border-bottom: 0; margin-bottom: 0; }
@media (min-width: 900px) { .post { grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; } .post:nth-child(even) .post-media { order: 2; } }
.post-media { position: relative; margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); }
@media (min-width: 900px) { .post-media { position: sticky; top: calc(var(--header-h) + 30px); } }
.post-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post-kicker { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -1px; margin-bottom: 24px; }
.post-body p { font-size: 15px; line-height: 2; color: #555; }
.post-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 17px; margin: 30px 0 10px; }
.post-body ul { margin: 0 0 1em; }
.post-body li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.9; color: #555; margin-bottom: 6px; }
.post-body li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.post-note { margin-top: 26px; padding: 18px 22px; background: var(--soft); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; font-size: 14px !important; }
.back-row { padding: 0 0 100px; text-align: center; }

/* Hilfsklasse für JS: Inhalte nicht animieren */
.no-anim * { transition: none !important; }
