:root{
  --bgTop:#ffffff;
  --bgBottom:#f2f6ff;

  --panel:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.10);

  --shadow: 0 18px 45px rgba(15,23,42,.08);
  --shadow2: 0 10px 24px rgba(15,23,42,.06);

  --brand:#2563eb;
  --brand2:#7c3aed;

  --r:18px;
  --w:1080px;
  --pad:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(900px 520px at 14% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(820px 460px at 90% 8%, rgba(124,58,237,.08), transparent 60%),
    linear-gradient(180deg, var(--bgTop), var(--bgBottom));
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--w); margin:0 auto; padding:0 var(--pad)}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  border-radius:12px; background:var(--panel); outline:2px solid var(--brand); z-index:60;
}

.header{
  padding: 18px 0 10px;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}
.header::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.70);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.header > .wrap{position:relative}

/* Navigation */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow2);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.logoLarge{
  height: 46px;
  width: auto;
  display:block;
}
.brandText{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.brandText strong{
  font-size: 14px;
  letter-spacing:.2px;
}
.brandText span{
  font-size: 12px;
  color: var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 58ch;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  display:inline-flex;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  font-size: 13px;
  color: var(--text);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.nav a:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.30);
  background: rgba(37,99,235,.06);
}
.nav a.primary{
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.10);
  font-weight: 700;
}

.main{
  padding: 16px 0 30px;
}

/* Cards / Sections */
.cardPanel{
  margin: 14px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  background: var(--panel);
  box-shadow: var(--shadow2);
}

.titleBlock h1{
  margin: 0;
  font-size: 26px;
  line-height:1.15;
  letter-spacing: .2px;
}
.titleBlock p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 78ch;
}

.sectionHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
}
.sectionHeader h2{
  margin:0;
  font-size: 16px;
  letter-spacing:.2px;
}
.muted{color: var(--muted); margin:10px 0 0; line-height:1.55}

.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px){
  .grid{grid-template-columns: 1fr 1fr;}
}
.card{
  display:block;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color: rgba(37,99,235,.22);
}
.cardTop{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.cardTitle{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.badge{
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.08);
  color: var(--muted);
}
.arrow{opacity:.70; font-size:18px}
.card p{margin:10px 0 0; color: var(--muted); line-height:1.5; font-size:13px}

/* Contact: two cards */
.contactGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 920px){
  .contactGrid{grid-template-columns: .55fr .45fr;}
}

.notice{
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.06);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.notice strong{color: var(--text)}
.notice a{ text-decoration: underline; text-underline-offset: 3px; }

.form{display:grid; gap: 12px;}
.row{display:grid; gap:8px}
label{font-size: 13px; color: var(--muted)}
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
textarea{min-height: 130px; resize: vertical}
.hp{display:none !important}

.actions{display:flex; gap: 10px; flex-wrap:wrap; align-items:center;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.35);
  background: rgba(37,99,235,.10);
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(37,99,235,.14)}
.btn.secondary{
  border-color: var(--line);
  background: rgba(15,23,42,.04);
  font-weight: 600;
}
.help{color: var(--muted); font-size: 12px; margin: 0; line-height: 1.45;}
.help a{ text-decoration: underline; text-underline-offset: 3px; }

.alert{
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.alert.ok{background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.25)}
.alert.err{background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.25)}

.footer{
  padding: 16px 0 30px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  align-items:center;
}
.fineprint{margin:0; color:var(--muted); font-size:12px}
.footer a{color: var(--muted); text-decoration: underline; text-underline-offset: 3px}

/* Modal (Cookie-Hinweis) */
.modal-open{overflow:hidden}
.modal[hidden]{display:none}
.modal{
  position: fixed;
  inset: 0;
  z-index: 100;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 18px;
}
@media (min-width: 720px){
  .modal{align-items:center}
}
.backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.35);
  backdrop-filter: blur(4px);
}
.modalCard{
  position:relative;
  width: min(720px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 28px 90px rgba(2,6,23,.25);
  padding: 18px;
}
.modalTitle{display:flex; gap:12px; align-items:flex-start;}
.modalIcon{
  width: 40px; height: 40px;
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(37,99,235,.08);
  flex:0 0 auto;
}
.modalTitle h3{margin:0; font-size: 15px; letter-spacing: .2px;}
.modalTitle p{margin:6px 0 0; color: #475569; line-height:1.55; font-size: 13px;}
.modalActions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.modalActions a{ text-decoration: underline; text-underline-offset: 3px; color: #475569; }

@media (max-width: 740px){
  .brandText span{display:none;}
}
@media (max-width: 560px){
  .topbar{flex-direction:column; align-items:flex-start;}
  .nav{justify-content:flex-start;}
  .logoLarge{height: 44px;}
}


/* --- v5: großes Logo oben + klare Navigation darunter --- */
.header{
  position: relative;
  padding: 22px 0 10px;
  backdrop-filter: none;
}
.header::before{ display:none; }

.masthead{
  text-align:center;
  padding: 18px 0 8px;
}
.mastLogo{
  width: min(620px, 92vw);
  height:auto;
  display:block;
  margin: 0 auto;
}
.mastTagline{
  margin: 10px auto 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.topbar{
  margin-top: 12px;
  border-radius: 14px;
  box-shadow: var(--shadow2);
  padding: 10px 12px;
}

.brand{ display:none; } /* v5: Brand-Block durch Masthead ersetzt */

.nav{
  justify-content:center;
}
