/* Gestaltung nach Designguide (tchin tchin BRANDING, Stand November 2024).
   Primaerfarbe #1e3cf5, Abstufungen #030a8c / #040dbf / #80aaff / #d5e9f7,
   Schrift Nunito.

   Die Schrift wird selbst ausgeliefert, nicht ueber Google Fonts geladen:
   der Aufruf zu Googles Servern uebertraegt die IP jedes Besuchers
   (LG Muenchen I, 20.01.2022, 3 O 17493/20). Die Dateien sind auf die
   benoetigten Zeichen reduziert - 21 KB statt 132 KB je Schnitt. */

@font-face{font-family:Nunito;font-style:normal;font-weight:400;font-display:swap;
  src:url(/assets/schrift/Nunito-Regular.ttf) format("truetype")}
@font-face{font-family:Nunito;font-style:normal;font-weight:600;font-display:swap;
  src:url(/assets/schrift/Nunito-SemiBold.ttf) format("truetype")}
@font-face{font-family:Nunito;font-style:normal;font-weight:700;font-display:swap;
  src:url(/assets/schrift/Nunito-Bold.ttf) format("truetype")}
@font-face{font-family:Nunito;font-style:normal;font-weight:800;font-display:swap;
  src:url(/assets/schrift/Nunito-ExtraBold.ttf) format("truetype")}

:root{
  --blau:#1e3cf5;          /* Primaerfarbe */
  --blau-dunkel:#030a8c;   /* Text auf Hell, Hover */
  --blau-mittel:#040dbf;
  --blau-hell:#80aaff;
  --blau-zart:#d5e9f7;     /* Flaechen, Verlaufsanfang */
  --ink:#0b1030;
  --dim:#5a638c;
  --line:#dbe3fb;
  --flaeche:#fff;
  --grund:#f7f9ff;
  --schrift:Nunito,"Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--grund);color:var(--ink);
  font:16px/1.65 var(--schrift);-webkit-font-smoothing:antialiased}
a{color:var(--blau)}
a:hover{color:var(--blau-dunkel)}

.entwurf{background:var(--blau-dunkel);color:#fff;padding:.55rem 1rem;
  font-size:.85rem;text-align:center}
.entwurf a{color:#fff;text-decoration:underline}

header{background:var(--flaeche);border-bottom:1px solid var(--line);
  padding:1rem 1.5rem;display:flex;gap:2rem;align-items:center;flex-wrap:wrap}
.marke{display:inline-flex;text-decoration:none;flex:0 0 auto}
.marke img{display:block;width:130px;height:auto}

nav.haupt{flex:1 1 auto}
nav.haupt ul{list-style:none;margin:0;padding:0;display:flex;gap:1.4rem;flex-wrap:wrap}
nav.haupt>ul>li{position:relative}
nav.haupt a{text-decoration:none;color:var(--ink);font-size:.92rem;font-weight:600;
  padding:.2rem 0;display:inline-block;border-bottom:2px solid transparent}
nav.haupt a:hover{color:var(--blau)}
nav.haupt li.hier>a{color:var(--blau);border-bottom-color:var(--blau)}
nav.haupt ul ul{display:none;position:absolute;top:100%;left:0;z-index:20;
  flex-direction:column;gap:0;background:var(--flaeche);border:1px solid var(--line);
  border-radius:8px;padding:.4rem 0;min-width:16rem;
  box-shadow:0 10px 28px rgba(3,10,140,.13)}
nav.haupt li:hover>ul,nav.haupt li:focus-within>ul{display:flex}
nav.haupt ul ul a{padding:.45rem 1rem;width:100%;border:0;font-weight:400}
nav.haupt ul ul a:hover{background:var(--blau-zart)}

.sprachen{flex:0 0 auto;display:flex;gap:.5rem;font-size:.82rem;font-weight:700;
  letter-spacing:.05em}
.sprachen a{text-decoration:none;color:var(--dim);padding:.15rem .45rem;border-radius:4px}
.sprachen a:hover{background:var(--blau-zart);color:var(--blau-dunkel)}
.sprachen .jetzt{background:var(--blau);color:#fff;padding:.15rem .45rem;border-radius:4px}

main{max-width:48rem;margin:0 auto;padding:2.5rem 1.5rem 4rem}
h1{font-size:2rem;line-height:1.2;margin:0 0 1.5rem;font-weight:800;
  letter-spacing:-.02em;color:var(--blau-dunkel)}
h2{font-size:1.3rem;margin:2.2rem 0 .6rem;font-weight:700;color:var(--blau-mittel)}
h3{font-size:1.06rem;margin:1.6rem 0 .4rem;font-weight:700}
/* Nicht grau: auf der Leistungsseite steht unter jedem h4 (Parametername)
   die Norm als Absatz. Ein blasses h4 kehrt die Rangfolge um - die
   Normnummer wirkt dann wichtiger als der Parameter. */
h4,h5,h6{font-size:.98rem;margin:1.4rem 0 .2rem;font-weight:700;color:var(--ink)}
p{margin:0 0 .9rem}
ul{padding-left:1.25rem}
main li{margin:.2rem 0}

.duenn{margin-top:2.5rem;border:1px solid var(--line);border-left:3px solid var(--blau-hell);
  background:var(--flaeche);border-radius:8px;padding:1rem 1.2rem;
  font-size:.9rem;color:var(--dim)}
.duenn strong{color:var(--ink);display:block;margin-bottom:.25rem}
.duenn a{font-weight:600}

/* Einfarbig in einem Blau des Designguides - der fruehere Verlauf erzeugte
   Zwischentoene, die in keiner Hausfarbe vorkommen (Rueckmeldung Team). */
footer{background:var(--blau-dunkel);padding:1.8rem 1.5rem;color:#fff;font-size:.85rem}
footer ul{list-style:none;display:flex;gap:1.2rem;flex-wrap:wrap;margin:0 0 .7rem;padding:0}
footer a{color:#fff;font-weight:600}
footer a:focus-visible{outline-color:#fff}
footer p{margin:0}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85em}

@media (max-width:640px){
  header{gap:1rem}
  .marke img{width:105px}
  nav.haupt ul{gap:.9rem}
  /* Untermenues auf dem Handy nicht dauerhaft ausklappen: die Kopfzeile waere
     sonst hoeher als der Bildschirm. Die Oberseiten (Lab.Services, Innovation)
     verlinken alle Unterseiten; per Tastatur/Fokus klappen sie weiter auf. */
  nav.haupt ul ul{position:static;border:0;box-shadow:none;padding:.2rem 0 .2rem .8rem;min-width:0}
  h1{font-size:1.6rem}
}

/* Kontaktformular */
.formular{margin-top:2.5rem;padding:1.5rem;background:var(--flaeche);border:1px solid var(--line);border-radius:12px}
.formular h2{margin-top:0}
.formular label{display:block;margin:0 0 .9rem;font-weight:600;font-size:.92rem}
.formular input,.formular select,.formular textarea{display:block;width:100%;box-sizing:border-box;margin-top:.3rem;
  padding:.6rem .7rem;border:1px solid var(--line);border-radius:8px;font:inherit;font-weight:400;background:#fff}
.formular input:focus,.formular select:focus,.formular textarea:focus{outline:2px solid var(--blau-hell);border-color:var(--blau)}
.formular .zeile{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
@media (max-width:600px){.formular .zeile{grid-template-columns:1fr}}
.formular .haken{display:flex;gap:.6rem;align-items:flex-start;font-weight:400}
.formular .haken input{width:auto;margin-top:.35rem}
.formular .falle{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.formular .stern{color:var(--blau)}
.formular button{background:var(--blau);color:#fff;border:0;border-radius:8px;padding:.7rem 1.6rem;font:inherit;font-weight:700;cursor:pointer}
.formular button:hover{background:var(--blau-dunkel)}
.formular button[disabled]{opacity:.6;cursor:wait}
.formular .meldung.ok{color:#11632b;font-weight:600}
.formular .meldung.fehler{color:#a4161a}

/* Neuigkeiten und Beitraege */
main figure{margin:1.5rem 0}
main figure img{max-width:100%;height:auto;border-radius:10px;display:block}
.datum{color:var(--dim);font-size:.9rem}
.zurueck{margin-top:2.5rem}
.beitraege{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.2rem}
.beitraege a{display:flex;flex-direction:column;gap:.35rem;height:100%;padding:1rem;background:var(--flaeche);
  border:1px solid var(--line);border-radius:12px;text-decoration:none;color:var(--ink)}
.beitraege a:hover{border-color:var(--blau-hell)}
.beitraege img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.beitraege strong{color:var(--blau-dunkel);line-height:1.35}
.beitraege .kurz{color:var(--dim);font-size:.92rem}

/* Seitenbilder; Platzhalter nur im Entwurf */
main figure img{max-height:380px;width:auto;margin:0 auto}
.platzhalter{display:flex;align-items:center;justify-content:center;min-height:180px;border:2px dashed var(--blau-hell);
  border-radius:10px;background:var(--blau-zart);color:var(--blau-dunkel);font-weight:600;text-align:center;padding:1rem}

.bilder{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin:1.5rem 0}
.bilder figure{margin:0}
.bilder img{width:100%;height:220px;object-fit:cover;max-height:none}
.hervor{background:var(--blau-zart);border-left:4px solid var(--blau);padding:.9rem 1.1rem;border-radius:6px}

/* Kartenraster: Team, Parameter */
.karten{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:1rem;margin:1.2rem 0 1.6rem}
.karten li{margin:0;display:flex;flex-direction:column;gap:.55rem;background:var(--flaeche);border:1px solid var(--line);border-radius:12px;padding:1rem}
.karten figure{margin:0;display:flex;justify-content:center}
.karten img{width:120px;height:120px;max-height:none;object-fit:cover;border-radius:50%}
.karten figure.grafik img{width:84px;height:84px;object-fit:contain;border-radius:0}
.karten div{text-align:center}
.karten strong{display:block;color:var(--blau-dunkel);line-height:1.3}
.karten div span{display:block;color:var(--dim);font-size:.9rem;line-height:1.4}
.initialen span{width:120px;height:120px;border-radius:50%;background:var(--blau-zart);color:var(--blau-dunkel);
  display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:800}
.bilder figure.grafik img{object-fit:contain;background:#fff;padding:.6rem;box-sizing:border-box}

/* Barrierefreiheit */
.springen{position:absolute;left:-10000px;top:.5rem;z-index:50;background:var(--blau-dunkel);color:#fff;padding:.6rem 1rem;border-radius:6px;font-weight:700}
.springen:focus{left:1rem}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--blau);outline-offset:2px;border-radius:3px}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
main>figure.grafik img{max-height:260px}

/* Startseite */
main.start{max-width:72rem}
.buehne{position:relative;width:100vw;margin:-2.5rem calc(50% - 50vw) 2.5rem;min-height:clamp(22rem,62vh,36rem);
  display:flex;align-items:flex-end;overflow:hidden;background:var(--blau-dunkel)}
.folien{position:absolute;inset:0}
.folien img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;border-radius:0;
  opacity:0;animation:folie var(--dauer) infinite}
.folien img:first-child{opacity:1}
@keyframes folie{0%{opacity:0}4%{opacity:1}25%{opacity:1}30%{opacity:0}100%{opacity:0}}
.buehne.angehalten .folien img{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.folien img{animation:none!important;opacity:0}.folien img:first-child{opacity:1}}
.buehne::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,10,140,.88) 0%,rgba(3,10,140,.55) 45%,rgba(3,10,140,0) 75%)}
.buehne-text{position:relative;z-index:1;max-width:36rem;padding:2.5rem 1.5rem 3rem max(1.5rem,calc(50vw - 36rem));color:#fff}
.buehne-text h1{color:#fff;font-size:clamp(1.8rem,3.6vw,2.8rem);margin-bottom:1rem}
.buehne-text p{font-size:1.1rem;line-height:1.55}
.knoepfe{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.4rem}
.knopf{display:inline-block;background:#fff;color:var(--blau-dunkel);font-weight:800;text-decoration:none;
  padding:.75rem 1.4rem;border-radius:8px}
.knopf:hover{background:var(--blau-zart);color:var(--blau-dunkel)}
.knopf.hell{background:transparent;color:#fff;border:2px solid #fff}
.knopf.hell:hover{background:rgba(255,255,255,.15);color:#fff}
.buehne .pause{position:absolute;right:1rem;bottom:1rem;z-index:2;background:rgba(0,0,0,.45);color:#fff;border:1px solid rgba(255,255,255,.6);
  border-radius:6px;padding:.35rem .7rem;font:inherit;font-size:.8rem;cursor:pointer}
.buehne a:focus-visible,.buehne button:focus-visible{outline-color:#fff}
.kacheln{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.kacheln li{padding:0;overflow:hidden}
.kacheln a{display:flex;flex-direction:column;text-decoration:none;color:var(--blau-dunkel);font-weight:800;height:100%}
.kacheln figure{display:block}
.kacheln img,.kacheln figure.grafik img{width:100%;height:150px;border-radius:0;object-fit:cover}
.kacheln span{display:block;padding:.8rem 1rem;color:var(--blau-dunkel)!important;font-size:1rem!important}
.kacheln a:hover span{text-decoration:underline}
.band{list-style:none;padding:1.4rem;margin:2rem 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;
  background:var(--blau-zart);border-radius:12px}
.band li{margin:0}
.neueste{margin-top:2.5rem}
figcaption{font-size:.75rem;color:var(--dim);margin-top:.3rem;text-align:right}
@media (max-width:640px){
  .buehne::after{background:linear-gradient(180deg,rgba(3,10,140,.55) 0%,rgba(3,10,140,.9) 60%)}
  .buehne .pause{top:1rem;bottom:auto}
  .kacheln{grid-template-columns:repeat(2,1fr);gap:.7rem}
  .kacheln img,.kacheln figure.grafik img{height:105px}
  .kacheln span{padding:.6rem .7rem;font-size:.9rem!important}
}
.kacheln span{hyphens:auto;overflow-wrap:anywhere}

/* Anfahrt mit Karte in der Fusszeile (Karte erst nach Klick) */
.anfahrt{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:1.5rem;margin-top:1.6rem;padding-top:1.4rem;
  border-top:1px solid rgba(255,255,255,.25);align-items:start}
.anfahrt h2{color:#fff;font-size:1.05rem;margin:0 0 .5rem}
.anfahrt p{margin:0 0 .6rem;line-height:1.5}
.karte{min-height:220px;border-radius:10px;background:rgba(255,255,255,.1);border:1px dashed rgba(255,255,255,.5);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;padding:1.2rem;text-align:center}
.karte button{background:#fff;color:var(--blau-dunkel);border:0;border-radius:8px;padding:.6rem 1.2rem;font:inherit;font-weight:800;cursor:pointer}
.karte.geladen{padding:0;border:0;background:none}
.karte iframe{width:100%;height:260px;border:0;border-radius:10px}
@media (max-width:640px){.anfahrt{grid-template-columns:1fr}}
.bildlink{display:block;border-radius:10px}
.bildlink:hover figure img{outline:2px solid var(--blau-hell)}
html,body{overflow-x:clip}
/* Buehne ueberarbeitet (30.09.): breiterer, luftigerer Textblock, buendig mit dem Inhalt darunter */
.buehne{align-items:center;min-height:clamp(24rem,68vh,40rem)}
.buehne::after{background:linear-gradient(90deg,rgba(3,10,140,.9) 0%,rgba(3,10,140,.72) 42%,rgba(3,10,140,.15) 72%,rgba(3,10,140,0) 85%)}
.buehne-text{box-sizing:content-box;max-width:44rem;padding:4rem 1.5rem 4.5rem max(1.5rem,calc(50vw - 36rem + 1.5rem))}
.buehne-text h1{font-size:clamp(2.1rem,4.2vw,3.4rem);line-height:1.12;letter-spacing:-.025em;margin:0 0 1.2rem;text-wrap:balance}
.buehne-text p{font-size:clamp(1.05rem,1.4vw,1.25rem);line-height:1.6;max-width:38rem;margin:0}
.knoepfe{margin-top:2rem;gap:1rem}
.knopf{padding:.85rem 1.6rem;font-size:1.02rem}
@media (max-width:640px){
  .buehne-text{padding:4.5rem 1.25rem 2.5rem}
  .buehne-text h1{font-size:2rem}
  .knoepfe .knopf{flex:1 1 100%;text-align:center}
}
@media (max-width:640px){.buehne::after{background:linear-gradient(180deg,rgba(3,10,140,.55) 0%,rgba(3,10,140,.88) 45%,rgba(3,10,140,.92) 100%)}}
