/* =====================================================================
   SILANFA – Gestaltung (Farben, Schriften, Layout)
   Normalerweise muss hier nichts geändert werden.
   Farben zentral anpassen: Abschnitt ":root" unten.
   ===================================================================== */

@font-face {
  font-family: "Varela Round";
  src: url("../fonts/varela-round.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --primaer: #003366;
  --primaer-dunkel: #00264d;
  --sekundaer: #222222;
  --text: #1b1b1b;
  --text-hell: #5a5d60;
  --grau-hell: #f2f3f4;
  --grau: #bbbdbf;
  --linie: #e1e3e5;
  --weiss: #ffffff;

  --music: #92365d;
  --lifescience: #5e5f9c;
  --medical: #2bb99b;
  --office: #c89733;
  --standard: #808080;

  --schrift-titel: "Varela Round", "Segoe UI", system-ui, sans-serif;
  --schrift-text: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --schatten: 0 1px 2px rgba(0,30,60,.06), 0 8px 24px rgba(0,30,60,.08);
  --breite: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--schrift-text); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primaer); }
a:hover { color: var(--primaer-dunkel); }
h1, h2, h3, h4 { font-family: var(--schrift-titel); font-weight: 400; line-height: 1.2; color: var(--primaer); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; color: var(--sekundaer); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--office); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primaer); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.kopf .logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; color: var(--sekundaer); padding: .5rem .8rem; border-radius: 8px; font-size: .97rem; }
.nav a:hover { background: var(--grau-hell); color: var(--primaer); }
.nav a[aria-current="page"] { color: var(--primaer); font-weight: bold; }
.nav .btn { margin-left: .6rem; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--primaer-dunkel); }
.menue-knopf { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menue-knopf span { display: block; width: 26px; height: 2px; background: var(--primaer); margin: 6px 0; transition: .2s; }

@media (max-width: 900px) {
  .menue-knopf { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
         padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); display: none; }
  .nav.offen { display: flex; }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--grau-hell); }
  .nav .btn { margin: .8rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--primaer); color: #fff; text-decoration: none; border: 2px solid var(--primaer);
       padding: .75rem 1.4rem; border-radius: 999px; font-family: var(--schrift-titel); font-size: 1rem; cursor: pointer; transition: .15s; line-height: 1.2; }
.btn:hover { background: var(--primaer-dunkel); border-color: var(--primaer-dunkel); color: #fff; transform: translateY(-1px); }
.btn-hell { background: transparent; color: var(--primaer); }
.btn-hell:hover { background: var(--primaer); color: #fff; }
.btn-weiss { background: #fff; border-color: #fff; color: var(--primaer); }
.btn-weiss:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-gruppe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.abschnitt-grau { background: var(--grau-hell); }
.abschnitt-dunkel { background: var(--primaer); color: #e8eef5; }
.abschnitt-dunkel h2, .abschnitt-dunkel h3 { color: #fff; }
.kicker { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-hell); margin-bottom: .8rem; font-weight: bold; }
.abschnitt-dunkel .kicker { color: #9fb6cf; }
.lead { font-size: 1.15rem; color: var(--text-hell); max-width: 46rem; }
.abschnitt-kopf { max-width: 48rem; margin-bottom: 2.5rem; }
.zentriert { text-align: center; margin-inline: auto; }
.zentriert .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden;
        background: radial-gradient(1000px 500px at 85% -10%, #e6edf5 0%, rgba(230,237,245,0) 70%), #fff; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 span { color: var(--sekundaer); }
.hero-vorteile { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .55rem; }
.hero-vorteile li { padding-left: 1.9rem; position: relative; }
.hero-vorteile li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--primaer) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.hero-karte { background: #fff; border: 1px solid var(--linie); border-radius: 20px; box-shadow: var(--schatten); padding: 1.8rem; }
.hero-karte h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.weg { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: var(--text); padding: 1rem; border-radius: 12px; border: 1px solid var(--linie); margin-top: .8rem; transition: .15s; }
.weg:hover { border-color: var(--primaer); box-shadow: var(--schatten); color: var(--text); }
.weg strong { display: block; font-family: var(--schrift-titel); font-weight: 400; color: var(--primaer); font-size: 1.08rem; }
.weg small { color: var(--text-hell); font-size: .92rem; }
.weg .pfeil { margin-left: auto; color: var(--primaer); font-size: 1.3rem; align-self: center; }
.weg-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--grau-hell); display: grid; place-items: center; color: var(--primaer); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }

/* ---------- Seitentitel (Unterseiten) ---------- */
.seitenkopf { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); background: linear-gradient(180deg, #eef3f8, #fff); border-bottom: 1px solid var(--linie); }
.seitenkopf .lead { margin-bottom: 0; }

/* ---------- Raster & Karten ---------- */
.raster { display: grid; gap: 1.4rem; }
.raster-2 { grid-template-columns: repeat(2, 1fr); }
.raster-3 { grid-template-columns: repeat(3, 1fr); }
.raster-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .raster-3, .raster-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .raster-2, .raster-3, .raster-4 { grid-template-columns: 1fr; } }

.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.7rem; position: relative; }
.karte p:last-child { margin-bottom: 0; }
.karte-schatten { box-shadow: var(--schatten); border-color: transparent; }

.bereich { border-top: 5px solid var(--farbe, var(--primaer)); display: flex; flex-direction: column; }
.bereich img { height: 52px; width: auto; margin-bottom: 1.2rem; }
.bereich .mehr { margin-top: auto; padding-top: 1rem; font-family: var(--schrift-titel); text-decoration: none; color: var(--farbe, var(--primaer)); }
.bereich .mehr:hover { text-decoration: underline; }
.music { --farbe: var(--music); }
.lifescience { --farbe: var(--lifescience); }
.medical { --farbe: var(--medical); }
.office { --farbe: var(--office); }
.badge { display: inline-block; font-size: .75rem; font-weight: bold; letter-spacing: .04em; padding: .2rem .65rem; border-radius: 999px;
         background: var(--grau-hell); color: var(--text-hell); margin-bottom: .8rem; align-self: flex-start; }
.badge-aktiv { background: #e3f6ef; color: #17765f; }

/* ---------- Schritte ---------- */
.schritte { counter-reset: schritt; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.schritt { counter-increment: schritt; position: relative; padding-top: 3.6rem; }
.schritt::before { content: counter(schritt); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--primaer); color: #fff; font-family: var(--schrift-titel); font-size: 1.15rem; }
.abschnitt-dunkel .schritt::before { background: #fff; color: var(--primaer); }
@media (max-width: 900px) { .schritte { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .schritte { grid-template-columns: 1fr; } }

/* ---------- Häkchenlisten ---------- */
.liste-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.liste-check li { position: relative; padding-left: 2rem; }
.liste-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 6px;
  background: #e6edf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23003366' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/85% no-repeat; }

/* ---------- Vertrauensleiste ---------- */
.leiste { border-block: 1px solid var(--linie); background: #fff; }
.leiste .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.4rem; }
.leiste div { display: flex; gap: .7rem; align-items: center; font-size: .95rem; color: var(--sekundaer); }
.leiste b { font-family: var(--schrift-titel); font-weight: 400; color: var(--primaer); font-size: 1.6rem; }
@media (max-width: 900px) { .leiste .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--linie); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-family: var(--schrift-titel); color: var(--primaer); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--text-hell); }

/* ---------- CTA-Band ---------- */
.cta { background: var(--primaer); color: #dce6f0; border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { text-align: center; }
.team .foto { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #dfe7f0, #c6d3e1); margin-bottom: .9rem; display: grid; place-items: center; }
.team .foto img { width: 100%; height: 100%; object-fit: cover; }
.team .initiale { font-family: var(--schrift-titel); font-size: 3rem; color: var(--primaer); }
.team h3 { margin-bottom: .1rem; }
.team p { color: var(--text-hell); font-size: .95rem; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 1rem; }
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .formular .zeile { grid-template-columns: 1fr; } }
.formular label { display: block; font-size: .92rem; font-weight: bold; margin-bottom: .3rem; color: var(--sekundaer); }
.formular input, .formular select, .formular textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid var(--grau); border-radius: 10px; background: #fff; color: var(--text); }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: none; border-color: var(--primaer); box-shadow: 0 0 0 3px rgba(0,51,102,.15); }
.formular textarea { min-height: 150px; resize: vertical; }
.formular .hinweis { font-size: .85rem; color: var(--text-hell); }
.formular .checkbox { display: flex; gap: .6rem; align-items: flex-start; font-weight: normal; }
.formular .checkbox input { width: auto; margin-top: .3rem; }
.hp { position: absolute; left: -5000px; }

.kontakt-info { display: grid; gap: 1.2rem; align-content: start; }
.kontakt-info .eintrag { display: flex; gap: 1rem; }
.kontakt-info .eintrag .weg-icon { flex: 0 0 44px; }
.kontakt-info strong { display: block; font-family: var(--schrift-titel); font-weight: 400; color: var(--primaer); }

/* ---------- Jobs ---------- */
.job-filter { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: .8rem; align-items: end; background: #fff; padding: 1.2rem; border-radius: var(--radius); box-shadow: var(--schatten); margin-top: -2.4rem; position: relative; }
.job-filter label { font-size: .82rem; font-weight: bold; display: block; margin-bottom: .25rem; color: var(--text-hell); }
.job-filter input, .job-filter select { width: 100%; font: inherit; font-size: .97rem; padding: .65rem .8rem; border: 1px solid var(--grau); border-radius: 10px; background: #fff; }
.job-filter .remote { display: flex; gap: .5rem; align-items: center; white-space: nowrap; padding-bottom: .65rem; font-size: .95rem; }
@media (max-width: 960px) { .job-filter { grid-template-columns: 1fr 1fr; } .job-filter .suche { grid-column: 1 / -1; } }
@media (max-width: 560px) { .job-filter { grid-template-columns: 1fr; } }
.job-anzahl { margin: 1.8rem 0 1rem; color: var(--text-hell); }
.job-liste { display: grid; gap: .9rem; }
.job { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.2rem; align-items: center; text-decoration: none; color: var(--text);
       background: #fff; border: 1px solid var(--linie); border-left: 5px solid var(--farbe, var(--primaer)); border-radius: var(--radius); padding: 1.1rem 1.3rem; transition: .15s; }
.job:hover { box-shadow: var(--schatten); color: var(--text); transform: translateY(-1px); }
.job .kreis { width: 56px; height: 56px; border-radius: 14px; background: var(--farbe); opacity: .12; position: relative; }
.job .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: var(--schrift-titel); color: #fff; background: var(--farbe, var(--primaer)); font-size: 1.1rem; }
.job h3 { margin: 0 0 .25rem; font-size: 1.12rem; color: var(--primaer); }
.job .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; color: var(--text-hell); }
.job .art { font-size: .8rem; font-weight: bold; padding: .3rem .8rem; border-radius: 999px; background: var(--grau-hell); color: var(--sekundaer); white-space: nowrap; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } .job .icon { display: none; } .job .art { justify-self: start; } }
.leer { text-align: center; padding: 3rem 1.5rem; border: 2px dashed var(--linie); border-radius: var(--radius); }

.job-detail { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.job-detail h2 { font-size: 1.4rem; margin-top: 2rem; }
.job-detail ul { padding-left: 1.2rem; }
.job-detail li { margin-bottom: .4rem; }
.job-seite { position: sticky; top: 96px; }
.job-seite dl { margin: 0 0 1.4rem; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .95rem; }
.job-seite dt { color: var(--text-hell); }
.job-seite dd { margin: 0; font-weight: bold; }
@media (max-width: 900px) { .job-detail { grid-template-columns: 1fr; } .job-seite { position: static; } }
.zurueck { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-size: .95rem; }

/* ---------- Bild + Text ---------- */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .zweispaltig { grid-template-columns: 1fr; } }
.bildbox { border-radius: 20px; overflow: hidden; box-shadow: var(--schatten); }

/* ---------- Rechtstexte ---------- */
.text-seite { max-width: 48rem; }
.text-seite h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.text-seite h3 { font-size: 1.1rem; margin-top: 1.5rem; }

/* ---------- Fusszeile ---------- */
.fuss { background: #0b1d30; color: #b9c6d4; padding: 4rem 0 2rem; font-size: .95rem; }
.fuss a { color: #dfe7ef; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss .raster { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .fuss .raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss .raster { grid-template-columns: 1fr; } }
.fuss h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.fuss .logo-weiss { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1rem; }
.fuss .unten { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }

/* ---------- Kleinkram ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hinweisbox { background: #fff8e6; border: 1px solid #f0d48a; border-radius: 10px; padding: 1rem 1.2rem; font-size: .95rem; }
.erfolg { background: #e3f6ef; border: 1px solid #9fdcc6; border-radius: 10px; padding: 1rem 1.2rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .kopf, .fuss, .btn, .job-filter { display: none !important; } }

/* Karten in dunklen Abschnitten */
.abschnitt-dunkel .karte { color: var(--text); }
.abschnitt-dunkel .karte h3 { color: var(--primaer); }
