/* =========================================================
   RoomControl – originalgetreuer HTML-Nachbau
   Design: gestapelte, abgerundete Farb-Panels (radius 25px)
   Farben aus dem Original ausgelesen.
   ========================================================= */

:root {
  --blue:       #009FE3;   /* Marken-Blau (Hero, Karten, Footer) */
  --blue-2:     #009CE5;
  --light-blue: #BCE4FA;   /* helle Panels */
  --navy:       #001F47;   /* CONTROL / Nav / dunkle Akzente   */
  --slate:      #1E293B;
  --muted:      #5B6B86;
  --ink:        #111111;   /* Fließtext auf Hell               */
  --white:      #FFFFFF;

  --radius: 25px;
  --gap: 16px;
  --maxw: 1160px;
  --font: Arial, Helvetica, Verdana, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; }
strong, b { font-weight: 700; }

/* ---------- Container ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.stack > * { margin-bottom: var(--gap); }
/* Erstes Panel schließt direkt an das Banner an: oben-rechts bündig (0),
   oben-links gerundet (passend zur weißen Rundung unter dem Logo im Banner). */
.stack > :first-child { border-radius: 30px 0 30px 30px; }

/* Panel-Grundform */
.panel { border-radius: var(--radius); overflow: hidden; }
.panel--blue  { background: var(--blue);  color: #fff; }
.panel--light { background: var(--light-blue); color: var(--ink); }
.panel--white { background: #fff; border: 1px solid #d7e6f2; }

/* =========================================================
   Header: volles Banner-Bild + überlagerte Navigation
   ========================================================= */
.site-header {
  padding-top: 0; margin-bottom: 0;
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  transition: box-shadow .25s var(--ease, ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -10px rgba(0, 22, 76, .45); }
.header-inner { position: relative; font-size: 0; }
.header-inner .banner { width: 100%; border-radius: 0 30px 0 0; }
.topnav {
  position: absolute; top: 18px; right: 26px;
  display: flex; align-items: center; gap: 4px;
}
.topnav a {
  color: var(--navy); font-size: 24px; font-weight: 400; line-height: 1;
  padding: 4px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.topnav a:hover { color: #fff; }
.topnav a.active {
  color: #fff; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.topnav .sep { color: var(--navy); opacity: .6; font-size: 24px; }

.nav-toggle { display: none; }

/* =========================================================
   Hero-Panel
   ========================================================= */
.hero { padding: 40px 44px 46px; text-align: center; border-radius: 30px; }
.hero h1 {
  color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700;
  margin-bottom: 26px; letter-spacing: .2px;
}
.hero h1 .control { color: var(--navy); }
.hero p { color: #fff; font-size: 17px; line-height: 1.65; text-align: left; }
.hero p + p { margin-top: 20px; }

/* =========================================================
   Icon-Panel (Zentral / Direkt / Transparent + Schlank)
   ========================================================= */
.icons { padding: 34px 26px 12px; }
.icon-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.icon-col { position: relative; text-align: center; padding: 14px 26px 26px; }
.icon-col + .icon-col::before {
  content: ""; position: absolute; left: 0; top: 6%; bottom: 6%;
  width: 2px; background: rgba(0, 95, 170, .30); border-radius: 2px;
}
.icon-col .ic { height: 96px; display: grid; place-items: center; margin-bottom: 16px; }
.icon-col .ic img { height: 90px; width: auto; margin-inline: auto; }
.icon-col h3 { color: var(--blue); font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.icon-col p { color: var(--ink); font-weight: 700; font-size: 16px; }

.intuitiv { text-align: center; padding: 6px 26px 40px; }
.intuitiv h2 { color: var(--blue-2); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.intuitiv p { color: var(--ink); font-weight: 700; }

/* =========================================================
   Feature-Karten (Schachbrett blau / hellblau)
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.fcard { border-radius: var(--radius); padding: 30px 36px 34px; }
.fcard--blue  { background: var(--blue);  }
.fcard--light { background: var(--light-blue); }
.fcard h3 { color: #000; font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.fcard p { font-size: 16px; line-height: 1.65; }
.fcard--blue  p, .fcard--blue  li { color: #fff; }
.fcard--light p, .fcard--light li { color: #000; }
.fcard p + p { margin-top: 12px; }
.fcard ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.fcard ul li { margin-bottom: 4px; }
.fcard .shot { margin-top: 18px; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px -14px rgba(0,22,76,.5); }
.fcard .shot img { width: 100%; }

/* =========================================================
   Klausur- & Prüfungsmodus (helles Panel)
   ========================================================= */
.klausur { padding: 32px 40px 40px; text-align: center; }
.klausur h2 { color: var(--slate); font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.klausur ul { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.klausur li { position: relative; padding-left: 30px; color: #000; font-size: 18px; }
.klausur li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.klausur-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.klausur-imgs figure { border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px -16px rgba(0,22,76,.55); background:#fff; }
.klausur-imgs img { width: 100%; }

/* =========================================================
   Footer (blaues Panel)
   ========================================================= */
.site-footer { padding-bottom: 22px; }
.footer-main { padding: 30px 44px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; align-items: center; }
.footer-brand img { width: 300px; max-width: 100%; }
.footer-col { color: #fff; text-align: right; }
.footer-col.left { text-align: left; }
.footer-col p, .footer-col a { color: #fff; font-size: 18px; line-height: 1.7; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 0; padding: 16px 44px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px 24px; color: #fff; font-size: 15px;
}
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   Scroll-to-top
   ========================================================= */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(0,22,76,.6);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 22px; height: 22px; stroke: #fff; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; padding: 11px 22px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: #cdd9e6; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--block { width: 100%; padding: 14px; }

/* =========================================================
   Unterseiten (Über uns / Kontakt / Rechtliches)
   ========================================================= */
.page-title { padding: 40px 44px; text-align: center; }
.page-title h1 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-bottom: 14px; }
.page-title p { color: #fff; font-size: 17px; max-width: 820px; margin-inline: auto; }
.page-title.light h1 { color: var(--navy); }
.page-title.light p { color: var(--slate); }

/* About */
.about-split { padding: 34px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.about-split h1, .about-split h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 18px; }
.about-split p { color: #fff; font-size: 17px; }
.about-split .media { display: grid; place-items: center; }
.about-split .media img { max-height: 380px; width: auto; }

.founder-panel { padding: 34px 40px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.founder-panel .photo { display: grid; place-items: center; }        /* transparentes PNG, keine weiße Box */
.founder-panel .photo img { width: 100%; display: block; }
.founder-name { color: #fff; font-weight: 700; font-size: 22px; margin-bottom: 18px; }
.founder-name span { display: block; font-weight: 400; font-size: 16px; color: var(--navy); }
.founder-panel blockquote { border-left: 5px solid var(--navy); padding-left: 20px; margin: 0 0 16px; font-size: 20px; font-weight: 700; color: #fff; }
.founder-panel p { color: #fff; font-size: 16px; }
.founder-panel p + p { margin-top: 12px; }
.founder-panel .lead-in { font-weight: 700; }

.story-panel { padding: 34px 44px; }
.story-panel h2 { color: var(--navy); font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; margin-bottom: 14px; }
.story-panel h2 .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; margin-right: 12px; vertical-align: middle; }
.story-panel p { color: var(--ink); font-size: 17px; }
.story-panel p + p { margin-top: 12px; }
.funders { margin-top: 26px; padding-top: 24px; border-top: 2px solid rgba(0,90,160,.15); text-align: center; }
.funders .lbl { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 20px; }
.funders .logos { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; }
.funders .logos img { max-height: 84px; width: auto; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.contact-card { padding: 34px 36px; }
.contact-card.panel--blue h2 { color: #fff; }
.contact-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.contact-card .sub { margin-bottom: 22px; }
.contact-card.panel--blue .sub { color: rgba(255,255,255,.9); }
.contact-card.panel--light .sub { color: var(--slate); }
.contact-meta { display: grid; gap: 12px; margin-bottom: 24px; }
.contact-meta .row { display: flex; gap: 12px; align-items: flex-start; }
.contact-meta .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.25); }
.panel--light .contact-meta .ic { background: #fff; }
.contact-meta .ic svg { width: 20px; height: 20px; }
.panel--blue .contact-meta .ic svg { stroke: #fff; }
.panel--light .contact-meta .ic svg { stroke: var(--blue); }
.contact-meta .label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; opacity: .8; font-weight: 700; }
.panel--blue .contact-meta, .panel--blue .contact-meta a { color: #fff; }
.panel--light .contact-meta, .panel--light .contact-meta a { color: var(--navy); }
.contact-meta .val { font-weight: 700; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.panel--blue .field label { color: #fff; }
.panel--light .field label { color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px;
  border: 0; border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(0,31,71,.35); }
.field input[type="file"] { padding: 9px 12px; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; margin-right: 12px; padding: 8px 14px;
  border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--blue-2); }
.form-note { font-size: 13px; margin-top: 12px; }
.panel--blue .form-note { color: rgba(255,255,255,.85); }
.panel--light .form-note { color: var(--slate); }

.form-status { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.form-status.is-ok { display: block; background: #e7f8ec; color: #12703a; border: 1px solid #b7e6c6; }
.form-status.is-error { display: block; background: #fdecec; color: #a1231f; border: 1px solid #f3c4c2; }

/* Rechtstexte */
.legal { padding: 40px 48px 50px; }
.legal h1 { color: var(--navy); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 10px; }
.legal .updated { color: var(--slate); margin-bottom: 30px; }
.legal h2 { color: var(--navy); font-size: 22px; font-weight: 700; margin: 34px 0 12px; }
.legal h3 { color: var(--slate); font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; font-size: 16px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--blue); word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal .box { background: #fff; border: 1px solid #d7e6f2; border-radius: 14px; padding: 22px 24px; margin: 18px 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .feature-grid, .contact-grid, .klausur-imgs { grid-template-columns: 1fr; }
  .about-split, .founder-panel { grid-template-columns: 1fr; gap: 28px; }
  .about-split .media { order: -1; }
  .founder-panel .photo { max-width: 360px; margin-inline: auto; }
  .footer-main { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .footer-col, .footer-col.left { text-align: center; }
  .footer-brand img { margin-inline: auto; }
}

@media (max-width: 760px) {
  /* Navigation unter das Banner */
  .header-inner { position: static; }
  .topnav {
    position: static; justify-content: center; flex-wrap: wrap;
    background: var(--blue); border-radius: 0 0 var(--radius) var(--radius);
    padding: 10px 12px; margin-top: -6px;
  }
  .topnav a { color: #fff; font-size: 20px; }
  .topnav .sep { color: rgba(255,255,255,.7); font-size: 20px; }
  .hero { padding: 30px 24px 32px; }
  .hero p { text-align: center; }
  .icon-row { grid-template-columns: 1fr; }
  .icon-col + .icon-col::before { display: none; }
  .icon-col { border-top: 2px solid rgba(0,90,160,.16); }
  .icon-col:first-child { border-top: 0; }
  .fcard, .klausur, .footer-main, .footer-bottom, .legal, .about-split, .founder-panel, .story-panel, .contact-card, .page-title { padding-left: 22px; padding-right: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
