/* ==========================================================================
   FKI Kultur / SprInt Essen – Design-System
   Farben aus dem Logo: Marineblau, Mittelblau, Grün
   ========================================================================== */
:root {
  --navy:        #16375a;   /* Hauptfarbe (Text/Headings, dunkelblauer Kasten) */
  --navy-700:    #1f4a75;
  --navy-900:    #0e2740;
  --blue:        #5b7fa6;   /* Mittelblau (Balken im Logo) */
  --blue-100:    #e8eef5;
  --blue-50:     #f4f7fb;
  --green:       #3d9b40;   /* Grün (Bogen im Logo) */
  --green-700:   #2f7d33;
  --ink:         #23303b;
  --muted:       #5b6b78;
  --line:        #dfe6ee;
  --bg:          #ffffff;
  --bg-soft:     #f6f9fc;
  --white:       #ffffff;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 6px 24px rgba(22,55,90,.08);
  --shadow-sm:   0 2px 10px rgba(22,55,90,.07);
  --maxw:        1140px;
  --font:        "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 64px 0; }

/* RTL (Arabisch) */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 40px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background .15s, transform .15s;
  font-size: 1rem;
}
.btn:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-100); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 74px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; max-width: 300px; }
.brand-text strong { color: var(--navy); font-size: 1.08rem; white-space: nowrap; }
.brand-text span { color: var(--muted); font-size: .82rem; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 8px 14px; border-radius: 8px; position: relative; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--green-700); background: var(--blue-50); }
.nav-links a.active { color: var(--green-700); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--green); border-radius: 2px;
}

/* Sprachwechsler mit Flaggen */
.lang-switch { display: flex; gap: 3px; align-items: center; background: var(--blue-50); border: 1px solid var(--line); border-radius: 30px; padding: 3px; }
.lang-opt {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--muted); font-weight: 700; font-size: .76rem; text-transform: uppercase;
  padding: 5px 9px; border-radius: 24px; transition: background .15s, color .15s;
}
.lang-opt:hover { color: var(--navy); background: #fff; }
.lang-opt.active { background: var(--navy); color: #fff; }
.lang-opt .flag { display: inline-flex; width: 18px; height: 13px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-opt .flag svg { width: 100%; height: 100%; display: block; }
[dir="rtl"] .lang-opt { flex-direction: row-reverse; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, var(--blue) 140%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px;
  width: 420px; height: 420px; border: 10px solid var(--green);
  border-radius: 50%; opacity: .25; clip-path: inset(0 0 0 40%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; padding: 84px 0 78px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.25rem; color: #dbe6f2; margin-bottom: 1.6rem; }
.hero .kicker { display:inline-block; background: rgba(255,255,255,.14); color:#eaf2fb; padding:6px 14px; border-radius:30px; font-weight:600; font-size:.85rem; margin-bottom:18px; letter-spacing:.02em;}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-with-image .hero-inner { max-width: 620px; }
.hero-media { position:absolute; inset:0; z-index:1; }
.hero-media img { width:100%; height:100%; object-fit:cover; opacity:.28; }

/* ---------- Content-Sektionen ---------- */
.section { padding: 60px 0; }
.section.soft { background: var(--bg-soft); }
.links-block.section { background: var(--navy); }
.section .container { max-width: 980px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split.reverse { direction: ltr; }
.split.reverse .split-text { order: 2; }
.split.reverse .split-media { order: 1; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.section-narrow { max-width: 760px; }
.eyebrow { color: var(--green-700); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }
.prose p { color: var(--ink); }
.prose ul { padding-left: 1.2em; }

/* ---------- Externe-Links-Block (SprInt, B5, Kd11-13) ---------- */
.links-block { background: var(--navy); color: #fff; }
.links-block h2 { color: #fff; }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.link-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 26px 22px; text-decoration: none; color: #fff;
  transition: transform .15s, background .15s; display: block;
}
.link-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); }
.link-card .lc-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; color:#fff; }
.link-card .lc-url { color: var(--green); font-weight: 600; font-size: .9rem; word-break: break-all; }
.link-card .lc-desc { color: #cddaea; font-size: .95rem; margin-top: 8px; }

/* ---------- Karten / Werte ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card .ic { width: 46px; height: 46px; border-radius: 10px; background: var(--blue-100); color: var(--navy); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }

/* ---------- Aktuelles / News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16/9; background: var(--blue-100); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { color: var(--green-700); font-size: .82rem; font-weight: 700; }
.news-card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.news-card p { color: var(--muted); font-size: .95rem; }
.news-card a.more { margin-top: auto; color: var(--navy-700); font-weight: 700; text-decoration: none; }
.news-card a.more:hover { color: var(--green-700); }

/* ---------- Aktuelles-Slider (Startseite) ---------- */
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.slider-head h2 { margin: 0; }
.slider-all { color: var(--navy-700); font-weight: 700; text-decoration: none; white-space: nowrap; }
.slider-all:hover { color: var(--green-700); }
.slider { position: relative; }
.slider-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 2px 14px; -ms-overflow-style: none; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider .slide { flex: 0 0 320px; max-width: 82vw; scroll-snap-align: start; }
.slider-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.slider-btn:hover { background: var(--navy); color: #fff; }
.slider-btn.prev { left: -18px; }
.slider-btn.next { right: -18px; }
.slider-btn[disabled] { opacity: .35; cursor: default; }
@media (max-width: 860px) {
  .slider-btn { display: none; }
  .slider .slide { flex-basis: 78vw; }
}

.article { max-width: 760px; margin: 0 auto; }
.article .date { color: var(--green-700); font-weight: 700; }
.article img.lead-img { border-radius: var(--radius); margin: 18px 0 26px; box-shadow: var(--shadow); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-box dt { font-weight: 700; color: var(--navy); margin-top: 12px; }
.contact-box dd { margin: 2px 0 0; }

/* Kontaktformular */
.contact-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 14px; font-size: .95rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; margin-top: 5px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.contact-form textarea { resize: vertical; }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.contact-form .consent input { margin-top: 3px; }
.contact-form .consent a { color: var(--navy-700); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { margin-top: 4px; }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }
.form-alert.ok { background: #e6f4e6; border: 1px solid #b7e0b7; color: #215a24; }
.form-alert.err { background: #fcebe9; border: 1px solid #f2c1ba; color: #a5311f; }
.contact-form .captcha .captcha-row { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.contact-form .captcha .captcha-q { font-weight: 700; color: var(--navy); background: var(--blue-100); padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.contact-form .captcha input { max-width: 120px; }

/* Cookie-Hinweis: immer sichtbares Icon + Popover */
.cookie-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 95;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--navy); box-shadow: 0 6px 20px rgba(22,55,90,.28);
  display: grid; place-items: center; transition: transform .15s, background .15s;
}
.cookie-fab:hover { transform: translateY(-2px); background: var(--navy-700); }
.cookie-fab svg { width: 28px; height: 28px; display: block; }
.cookie-banner {
  display: none; position: fixed; left: 18px; bottom: 78px; z-index: 96;
  width: 340px; max-width: calc(100vw - 36px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 34px rgba(22,55,90,.20); padding: 18px 20px;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 14px; font-size: .9rem; line-height: 1.55; color: var(--ink); }
.cookie-banner strong { color: var(--navy); }
.cookie-banner a { color: var(--navy-700); font-weight: 600; }
.cookie-banner .btn { padding: 10px 22px; width: 100%; }
[dir="rtl"] .cookie-fab { left: auto; right: 18px; }
[dir="rtl"] .cookie-banner { left: auto; right: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7d4e2; padding: 46px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #c7d4e2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #90a4b8; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.footer-logo { height: 56px; background:#fff; padding:8px 12px; border-radius:10px; display:inline-block; margin-bottom:14px; }

/* ---------- Breadcrumb ---------- */
.page-head { background: var(--blue-50); border-bottom: 1px solid var(--line); padding: 34px 0; }
.page-head h1 { margin: 0; }
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.crumbs a { color: var(--navy-700); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split, .cards, .link-cards, .news-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 1; } .split.reverse .split-media { order: 2; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; } .nav-links a { display: block; padding: 10px 0; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .brand img { height: 56px; }
  .nav { gap: 10px; }
  .nav-links a.active::after { display: none; }
}
@media (max-width: 520px) {
  .lang-opt { padding: 5px 6px; gap: 0; }
  .lang-opt .code { display: none; }
  .brand-text span { display: none; }
}
