/* ==========================================================================
   Fonts: QuickSand (local)
   ========================================================================== */

@font-face {
  font-display: swap;
  font-family: "QuickSand";
  /*font-style: normal;*/
  font-weight: 100 900; /* Define the range of the weight axis */
  src: url("../fonts/quicksand/Quicksand-VariableFont_wght.woff2") format("woff2");
}


/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --page-bg: #f7f8fb; /* Seitenhintergrund */
  --brand: #002d82;
  --brand-outer: #0e80ef;
  --brand-700: #1877cc;
  --brand-nav: #2b74c7;
  --brand-nav-outer: #1b64b7;
  --text: #00003f;
  --bg: #ffffff;
  --footer-h: 56px; /* Sticky-Footer-Höhe */
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "QuickSand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
}

/* ==========================================================================
   Typografie
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6,
p,
td,
th {
  font-family: "QuickSand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

h1 {
  color: var(--brand);
  font-size: 1.8em;
  font-weight: 600;
}

h2 {
  color: var(--brand);
  font-size: 1.3em;
  font-weight: 500;
}

h3 {
  color: var(--brand);
  font-size: 1em;
  font-weight: 400;
}

h4,
h5,
h6,
th {
  color: var(--brand);
}

a {
  color: var(--brand);
  font-weight: normal;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #5ec0ff;
}

span.small {
  font-size: 0.8em;
}

em {
  font-style: normal;
  font-weight: 500;
}

strong,
b {
  font-weight: 600; /* oder 800 */
}

/* ==========================================================================
   Layout-Container
   ========================================================================== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--footer-h); /* Platz für fixen Footer */
  background: transparent;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--page-bg);
  /* vorher: var(--brand-outer) */
  color: #fff;
  position: relative;
  z-index: 10; /* über dem Content-Schatten */
}

.header-inner {
  background: var(--brand);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 10px;
}

.brand img {
  display: block;
  height: 64px;
  width: auto;
}

.header-inner .site-title,
.header-inner .site-tagline {
  margin: 8px;
  color: #fff;
}

/* Titel mit leichtem Schatten */
.header-inner .site-title {
  display: block;
  text-decoration: none;	
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.header-inner .site-title:hover {
  color: #fff;
  text-decoration: none;
}

.header-inner .site-tagline {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  opacity: 0.9;
  margin: 8px 0 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.lang-switch .flag {
  display: inline-block;
  margin-left: 8px;
}

.lang-switch img {
  border: 0;
  display: block;
}

/* Header: kleinere Bildschirme */
@media (max-width: 520px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-auto-rows: auto;
  }

  .brand {
    order: 1;
  }

  .titles {
    order: 2;
  }

  .lang-switch {
    order: 3;
  }

  .brand img {
    height: 40px;
  }

  /* Mobile: Titel/Tagline kleiner */
  .header-inner .site-title {
    font-size: 1.2rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
  }

  .header-inner .site-tagline {
    font-size: 1rem;
    line-height: 1.15;
    margin: 4px 0 0;
  }
}

/* ==========================================================================
   Navigation (Desktop + Burger-Menü)
   ========================================================================== */
.site-nav {
  background: var(--page-bg);
  /* vorher: var(--brand-nav) */
  min-height: 52px;
}

.site-nav .wrap {
  padding-top: 2px;
  padding-bottom: 2px;
  background: var(--brand-nav-outer);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 10px;
}

/* Menü-Liste (Basis) */
.site-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px 20px;
}

.site-nav .menu li {
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-family: "QuickSand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  font-size: 1.0em;
}

.site-nav a:hover {
  color: #e6f3ff;
}

/* Sprachumschaltung in der Menüzeile (Desktop-Flex) */
.site-nav .menu .lang-item {
  margin-left: auto; /* schiebt das Element nach ganz rechts (Desktop-Flex) */
  display: flex;
  align-items: center;
}

.site-nav .menu .lang-item a.flag {
  display: flex;
  align-items: center;
  padding: 5px 7px; /* passt zu den Desktop-Menü-Paddings */
  text-transform: none; /* nur zur Sicherheit */
}

.site-nav .menu .lang-item img {
  display: block;
  height: 18px; /* bei Bedarf anpassen */
  width: auto;
  border: 0;
}

/* Burger-Button */
.nav-toggle {
  display: none; /* Desktop: verstecken */
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 44px; /* gutes Touch-Ziel */
  gap: 10px;
}

.nav-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nav-toggle span {
  margin-right: 8px;
}

/* Burger-Icon (3 Linien) */
.nav-toggle .bars {
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: inline-block;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav-toggle .bars::before {
  top: -6px;
}

.nav-toggle .bars::after {
  top: 6px;
}

/* Desktop (>= 1200px) */
@media (min-width: 1200px) {
  .nav-toggle {
    display: none !important; /* erzwingt Ausblenden auf Desktop */
  }

  .site-nav .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0 6px;
  }

  .site-nav .menu a {
    display: flex;
    align-items: center;
    padding: 5px 12px 7px 12px;
    text-decoration: none;
    color: #ffffff;
  }

  .site-nav .menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.1);
  }

  /* Auf Desktop ausblenden */
  .site-nav .nav-current {
    display: none;
  }
}

/* Mobile (< 1200px) */
@media (max-width: 1199px) {
  .nav-toggle {
    display: inline-flex !important; /* erzwingt Anzeigen auf Mobil */
    align-items: center;

    /* Nav-Button kompakter (zusätzlich) */
    padding: 6px 8px; /* weniger horizontaler Rand */
    min-width: 36px; /* statt 44px */
    min-height: 36px; /* bleibt gut klickbar */
    gap: 0;
    border-width: 3px;
    margin: 4px;
  }

  .nav-toggle span {
    margin-right: 0; /* kein Extra-Abstand */
  }

  .nav-toggle .bars {
    width: 18px; /* schmaleres Icon */
  }

  .site-nav .menu {
    display: none; /* eingeklappt */
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 8px;
  }

  .site-nav .menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .site-nav .menu li:first-child {
    border-top: none;
  }

  .site-nav .menu a {
    display: block;
    padding: 10px 4px;
  }

  .site-nav[data-open="true"] .menu {
    display: flex; /* aufgeklappt */
  }

  /* Flagge im Mobile-Menü linksbündig */
  .site-nav .menu .lang-item {
    margin-left: 0; /* Desktop-Auto-Margin zurücksetzen */
    display: block; /* Flex vom Desktop zurücksetzen */
    align-items: initial; /* sicherheitshalber */
  }

  .site-nav .menu .lang-item a.flag {
    display: block; /* wie andere Menüpunkte */
    padding: 10px 4px; /* identisch zu .site-nav .menu a im Mobile */
    text-align: left;
  }

  .site-nav .menu .lang-item img {
    display: inline-block; /* damit es wie “Text” links startet */
    vertical-align: middle;
  }

  /* aktueller Menüeintrag (Mobile) */
  .site-nav .nav-current {
    display: inline-block;
    margin-left: 10px;
    margin-top: 5px;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-size: 1.5rem;
    vertical-align: middle;
  }

  /* Wenn Menü aufgeklappt ist, den Label-Text ausblenden */
  .site-nav[data-open="true"] .nav-current {
    display: none;
  }
}

/* Navi höher - Desktop */
@media (min-width: 761px) {
  .site-nav .nav-inner {
    padding: 14px 0; /* vorher 8px 0 10px etwas mehr Luft */
  }

  .site-nav .menu a {
    line-height: 2.1; /* etwas höhere Zeilenbox für mehr Höhe */
  }
}

/* Navi höher - Mobil */
@media (max-width: 760px) {
  .site-nav .menu a {
    padding: 14px 6px; /* vorher 10px 4px komfortabler tippen */
  }
}

/* Aktiver Menüeintrag: dunkelblau hinterlegt */
.site-nav .menu a[aria-current="page"],
.site-nav .menu a.is-active {
  background: #1857a6; /* dunkles Blau */
  color: #ffffff;
  border-radius: 4px;
}

/* Hover-Effekt: Links hellgrau hinterlegen */
.site-nav .menu a:hover {
  background: #355595; /* helles / mittleres Grau */
  color: #ffffff;
  border-radius: 4px; /* passend zum aktiven Link */
}

/* ==========================================================================
   News Bar (Startseite)
   ========================================================================== */
.news-bar{
  background: var(--brand-nav-outer); /* wie Menü */
  color: #fff;

  /* Full-bleed innerhalb von .content (wie .ken-div) */
  width: calc(100% + 40px);
  margin: -24px -20px 18px;   /* sitzt direkt über <h1> */
  padding: 6px 0;

  font-size: 0.95em;
  line-height: 1.3;
}

.news-bar .news-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;            /* entspricht .content horizontal padding */
  display: flex;
  align-items: center;
  justify-content: space-between;

  flex-wrap: nowrap;          /* verhindert 2+1 Umbruch */
  overflow-x: auto;           /* wenn zu eng: scroll statt Umbruch */
  -webkit-overflow-scrolling: touch;
}

.news-bar .news-item{
  flex: 1 1 0;                /* 3 gleich breite Spalten */
  min-width: 0;               /* wichtig, damit die Items schrumpfen dürfen */
  padding: 2px 12px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;    /* … statt Umbruch */
}

.news-bar .news-item + .news-item{
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.news-bar .news-date{
  font-weight: 600;
  margin-right: 8px;
}

.news-bar a{ color: inherit; text-decoration: none; }
.news-bar a:hover{ text-decoration: underline; }

/* Mobile: untereinander statt scroll/ellipsis */
@media (max-width: 756px){
  .news-bar{ margin: -24px -20px 14px; }

  .news-bar .news-inner{
    flex-direction: column;
    overflow-x: visible;
  }

  .news-bar .news-item{
    width: 100%;
    padding: 8px 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .news-bar .news-item + .news-item{
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
}



/* ==========================================================================
   Hauptbereich
   ========================================================================== */
.content {
  background: var(--bg);
  padding: 24px 20px;
  flex: 1 0 auto;
}

/* Responsive Images im Content (global) */
.content img {
  max-width: 100%;
  height: auto;
}

/* Bullets/Nummern im Content: sauberer Einzug und Abstand */
.content ul,
.content ol {
  margin: 0 0 1rem 1.25rem; /* Einzug links */
  padding-left: 0.75rem; /* zusätzlicher Platz für Marker */
}

.content li {
  margin: 0.3rem 0;
}

.content h2 + ul,
.content h2 + ol {
  /* Verhindert, dass Listen neben vorherigen Floats "kleben" */
  margin-top: 0.25rem;
}

/* Typografie-Abstände im Content explizit definieren */
.content h2 {
  margin: 0 0 0.45rem 0; /* kleiner Abstand nach unten */
}

.content h3 {
  margin: 1rem 0 0.35rem 0; /* Abstand vor/nach h3 */
}

/* Wichtig: p bekommt KEIN top-margin -> vermeidet Spalten-Uneinheitlichkeit */
.content p {
  margin: 0 0 0.9rem 0;
}

/* ==========================================================================
   Hinweise / Meldungen (z.B. .msg .msg--info)
   ========================================================================== */
.msg{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  line-height: 1.55;
}

.msg--info{
  border-left: 5px solid var(--brand);
  background: rgba(14, 128, 239, 0.08);
}

.msg--warn{
  border-left: 5px solid #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.msg--success{
  border-left: 5px solid #047857;
  background: rgba(16, 185, 129, 0.10);
}

/* ==========================================================================
   Media (Video)
   ========================================================================== */
.post__video{
  margin: 12px 0 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #000;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.post__video video{
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Footer (Sticky)
   ========================================================================== */
/* Desktop / Standard: bleibt wie bisher */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  margin-top: 0;
  background: #fff;
  border-top: 3px solid #e6e9ec;
  padding: 1rem 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--footer-h); /* Platz für fixen Footer */
  background: transparent;
}

.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  color: #333;
}

.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1rem;
  text-align: center;
}

.site-footer .footer-copy {
  opacity: .85;
}

.site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .75rem;
}

.site-footer .footer-links a {
  display: inline-block;
  padding: .4rem .55rem; /* besser tappbar */
  border-radius: .35rem;
}

/* Seite leicht „card“-artig */
.site-header,
.content,
.site-footer .wrap {
  /* box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); */
}

@media (max-width: 600px) {
  .page {
    padding-bottom: 0;
  }

  .site-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    margin-top: auto;
    padding: 0.75rem 0;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 0 12px;
  }

  .site-footer .footer-links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .site-footer .footer-links a {
    padding: 4px 8px;
  }
}


/* ==========================================================================
   Legacy / Helper-Klassen (bestehende Seite)
   ========================================================================== */
div.figure {
  float: right;
  clear: right;
  text-align: center;
  padding: 0;
  margin: 5px 5px 25px 5px;
  width: 300px;
  font-style: italic;
}

div.fine-print {
  font-size: 0.9em;
  color: #aaaaaa;
  clear: both;
}

p.screenshot {
  text-align: center;
  padding: 10px;
}

p.screenshot img {
  margin: 5px auto;
  display: block;
}

img.floater {
  clear: right;
  float: right;
  margin: 5px 5px 5px 15px;
}

img.floater-inverse {
  clear: left;
  float: left;
  margin: 5px 25px 5px 5px;
}

div.screenshot {
  float: left;
  clear: none;
  text-align: left;
  width: 250px;
  height: 240px;
  font-style: italic;
  padding: 0;
  margin: 5px 5px 25px 5px;
}

div.screenshot img {
  margin: 5px;
}

/* ==========================================================================
   Tabellen (Content)
   ========================================================================== */
.content table{
  width: 100%;
  border-collapse: separate;
  table-layout: auto;
  border-spacing: 0;
  margin: 14px 0 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  overflow: hidden;                 /* runde Ecken */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.content table thead th{
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
}

.content table tbody td{
  padding: 10px 12px;
  vertical-align: top;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  white-space: nowrap;
}

.content table tbody tr:nth-child(even) td{
  background: rgba(15, 23, 42, 0.02);
}

/* Erste Spalte (Zeilen-Label) */
.content table tbody td:first-child{
  font-weight: 600;
  color: var(--text);
  white-space: normal;
  min-width: 180px;
}

/* Letzte Zelle: etwas Luft rechts */
.content table td:last-child,
.content table th:last-child{
  padding-right: 16px;
}

/* Mobile: kompakter + Labels in erster Spalte schmaler */
@media (max-width: 760px){
  .content table{ margin: 12px 0 16px; border-radius: 12px; }
  .content table thead th{ padding: 9px 10px; }
  .content table tbody td{ padding: 9px 10px; }
  .content table tbody td:first-child{ min-width: 140px; }
}


/* ==========================================================================
   Fallbacks
   ========================================================================== */
/* Fallback, falls CSS Grid nicht unterstützt wird */
@supports not (display: grid) {
  @media (min-width: 620px) {
    .grid-2 > * {
      width: 50%;
    }
  }
}

/* ==========================================================================
   Screenshots: zwei explizite Spalten (DOM: links zuerst, dann rechts)
   ========================================================================== */
.screenshots-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.screenshots-columns .column h2 {
  text-align: center;
  margin: 0 0 8px 0;
}

.screenshots-columns .shot {
  text-align: center;
  margin: 0 0 12px 0;
}

.screenshots-columns figure {
  margin: 0;
}

.screenshots-columns figcaption {
  margin-top: 6px;
  font-style: italic;
}

@media (max-width: 760px) {
  .screenshots-columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Beispiele-Seite
   ========================================================================== */
.examples .list textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 20vh;
  box-sizing: border-box;
  padding: 12px;
  font: 14px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre; /* Zeilen wie in der Datei beibehalten */
  overflow: auto;
  resize: vertical;
}

/* Beispiele: gleich hohe Spalten je Beispielzeile */
.examples .example {
  display: grid;
  grid-template-columns: 1fr 1fr; /* links: Textblock, rechts: Textarea */
  gap: 12px 20px;
  align-items: stretch; /* beide Spalten auf gleiche Zeilenhöhe */
  margin-bottom: 16px;
}

/* Linke Spalte: Textblock soll die volle Zeilenhöhe ausfüllen */
.examples .example .details {
  display: flex;
  align-items: stretch;
}

.examples .example .details > * {
  margin: 0;
}

.examples .example .list {
  display: flex;
}

.examples .example .list form {
  display: flex;
  flex: 1 1 auto;
}

.examples .example .list textarea {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 14em;
  resize: vertical;
}

/* Mobil: untereinander stapeln + größere Textareas */
@media (max-width: 760px) {
  .examples .list textarea {
    min-height: 20vh;
  }

  .examples .example {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Form Styling: Checkliste
   ========================================================================== */
form.form-container {
  clear: both; /* verhindert Layout neben .floater */
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 16px;
  display: grid;
  gap: 16px;
}

form .section {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  padding: 14px 14px 10px;
  /* box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); */
}

form .section-title {
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

form .form-group {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 10px 14px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.10);
}

form .form-group:first-of-type {
  border-top: none;
}

form .form-group label {
  font-weight: 600;
  line-height: 1.3;
}

form .form-group input,
form .form-group select,
form .form-group textarea {
  width: 100%;
  font: inherit;
  line-height: 1.35;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  background: #f7f8fb;
}

form .form-group input[readonly],
form .form-group textarea[readonly] {
  opacity: 0.95;
  cursor: default;
}

form .form-group input[type="radio"],
form .form-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

form .choice-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

form .choice-row .choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  margin: 0;
}

@media (max-width: 760px) {
  form.form-container {
    padding: 10px;
  }

  form .form-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ==========================================================================
   Content card sections (Software-Seite)
   ========================================================================== */
.section-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  padding: 14px 24px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
  clear: both; /* verhindert Layout neben .floater */
}

.section-card h3 {
  font-weight: 500;
  color: var(--brand);
  margin: 16px 0 10px 0;
  letter-spacing: 0.02em;
  font-style: normal; /* überschreibt globales h3-italic */
}

.section-card > :last-child {
  margin-bottom: 0;
}

.section-card > h2:first-child,
.section-card > h3:first-child {
  margin-top: 0;
}

.software-sections {
  display: grid;
  gap: 16px;
  margin: 14px 0 42px;
}

.software-sections .section-card {
  margin: 0; /* Abstand kommt über gap */
}

.section-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); /* 60/40 */
  grid-template-areas: "text media";
  gap: 14px 20px;
  align-items: center;
}

.section-text {
  grid-area: text;
}

.section-media {
  grid-area: media;
}

/* Desktop: abwechselnd links/rechts, aber mit 40/60 wenn Bild links */
@media (min-width: 761px) {
  .software-sections .section-card:nth-child(even) .section-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); /* 40/60 */
    grid-template-areas: "media text";
  }
}

/* Mobil: untereinander */
@media (max-width: 760px) {
  .section-row {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "media";
  }
}

/* ==========================================================================
   Text: Spalten/Grids
   ========================================================================== */
/* Fließtext zweispaltig (Desktop), mobil einspaltig */
.text-columns-2 {
  column-count: 2;
  column-gap: 24px;
  column-rule: 1px solid rgba(15, 23, 42, 0.10); /* optional */
}

/* Optional: verhindert unschöne Umbrüche bei Überschriften */
.text-columns-2 h2,
.text-columns-2 h3 {
  break-inside: avoid;
}

/* Mobil: wieder einspaltig */
@media (max-width: 760px) {
  .text-columns-2 {
    column-count: 1;
    column-rule: none;
  }
}

.column-break {
  display: block;
  height: 1px;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  break-before: column;
  -webkit-column-break-before: always;
  column-break-before: always;
}

.column-break-after {
  break-after: column;
  -webkit-column-break-after: always;
  column-break-after: always;
}

.text-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
}

.text-grid-2 .col-right {
  border-left: 1px solid rgba(15, 23, 42, 0.10); /* entspricht Ihrer column-rule Optik */
  padding-left: 24px;
}

@media (max-width: 760px) {
  .text-grid-2 {
    grid-template-columns: 1fr;
  }

  .text-grid-2 .col-right {
    border-left: 0;
    padding-left: 0;
  }
}

/* ==========================================================================
   3D-Scanner: Image Grid (Stereo-Module)
   ========================================================================== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 16px;
  align-items: stretch;
}

.image-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4; /* gleichmäßige Kacheln */
  object-fit: cover; /* saubere Crops */
  border-radius: 12px; /* passt zu .section-card */
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Tablet: 2 Spalten */
@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 Spalte */
@media (max-width: 520px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* --- Image Grid: Figure & Caption (für Screenshots/Beispiele) --- */
.image-grid figure{
  margin: 0;
  padding: 0;
  overflow: visible;          /* Caption darf nicht abgeschnitten werden */
  display: flex;
  flex-direction: column;
}

/* Bilder im Grid sollen NICHT die gesamte Figure-Höhe einnehmen */
.image-grid figure > img{
  width: 100%;
  height: auto;              /* überschreibt height:100% */
  aspect-ratio: 4 / 3;       /* sorgt für identische Bildhöhe */
  object-fit: cover;
  flex: 0 0 auto;            /* Bild bleibt konstant, Caption nimmt Rest */
}

/* Optional: wenn Bilder in <figure> in einem <a> liegen */
.image-grid figure > a > img{
  width: 100%;
  height: auto;              /* überschreibt height:100% */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex: 0 0 auto;
}

.image-grid figcaption{
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.25;
  opacity: 0.85;
  text-align: center;
  display:block;
  min-height: calc(2 * 1.25em);  /* 2 Zeilen bei line-height:1.25 */
}

/* Bild-Interaktion (dezent) */
.image-grid img{
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.image-grid figure:hover img{
  transform: scale(1.02);
}

.image-grid figcaption{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Image Grid: Logos (kein Beschnitt, saubere Kacheln) --- */
.image-grid.logo-grid{
  /* optional: etwas mehr Luft bei vielen Logos */
  gap: 14px;
}

/* Bei Logos: Bild nicht croppen */
.image-grid.logo-grid img{
  height: auto;                /* falls irgendwo height:100% greift */
  aspect-ratio: 16 / 9;        /* einheitliche Logo-Kachel; ggf. 1/1 ausprobieren */
  object-fit: contain;         /* entscheidend: kein Beschnitt */
  padding: 10px;               /* Abstand zum Rand, wirkt hochwertiger */
  background: #fff;            /* Logo-Hintergrund sauber */
}

/* Captions bei Logos etwas kompakter */
.image-grid.logo-grid figcaption{
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==========================================================================
   Navigation: Untermenü (Dropdown Desktop + eingerückt Mobile)
   ========================================================================== */

/* Grundreset fürs Untermenü */
.site-nav .menu li.has-sub {
  position: relative; /* Anker für Dropdown */
}

/* Das Untermenü soll nicht wie Content-Listen aussehen */
.site-nav .menu ul.sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Desktop: Dropdown */
@media (min-width: 1200px) {
  .site-nav .menu li.has-sub > a {
    position: relative;
    padding-right: 12px;
  }
  
  .site-nav .menu li.has-sub > a:hover {
    transform: none;
  }  
  
  /* Kleiner Pfeil rechts am Hauptpunkt */
  .site-nav .menu li.has-sub > a::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.85);
    vertical-align: middle;
    transform: translateY(-1px);
  }

  /* Dropdown-Box */
  .site-nav .menu li.has-sub > ul.sub {
	  display: none;
	  position: absolute;
	  left: 0;
	  top: 100%;
	  margin-top: 0;
	  transform: none;

	  min-width: 240px;
	  padding: 6px;                 /* etwas kompakter, wirkt "aus einem Guss" */
	  background: #1857a6;
	  border-radius: 12px;          /* rundherum gleich */
	  border: 1px solid rgba(255, 255, 255, 0.18); /* subtiler Rahmen */
	  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
	  z-index: 2000;
	  overflow: hidden;	
  }

  /* Öffnen bei Hover + Tastatur-Fokus (Accessibility) */
  .site-nav .menu li.has-sub:hover > ul.sub,
  .site-nav .menu li.has-sub:focus-within > ul.sub {
    display: block;
  }

  /* Unterpunkte als volle Zeilen */
  .site-nav .menu li.has-sub > ul.sub > li {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .site-nav .menu li.has-sub > ul.sub > li:first-child {
    border-top: none;
  }

  .site-nav .menu li.has-sub > ul.sub a {
    display: block;
    padding: 10px 10px;
    text-transform: none;              /* Unterpunkte nicht in Uppercase */
    font-size: 0.95em;
    line-height: 1.25;
    border-radius: 8px;
    background: transparent;
    transform: none;                   /* verhindert Scale(1.1) vom Desktop-Hover */
  }

  .site-nav .menu li.has-sub > ul.sub a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
	transform: none;
  }

  /* Aktiver Unterpunkt */
  .site-nav .menu li.has-sub > ul.sub a[aria-current="page"],
  .site-nav .menu li.has-sub > ul.sub a.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
  }
}

/* Mobile: Unterpunkte eingerückt (kein Overlay-Dropdown) */
@media (max-width: 1199px) {
  .site-nav .menu li.has-sub > ul.sub {
    display: block;               /* sichtbar, sobald das Hauptmenü offen ist */
    padding: 2px 0 10px 0;
  }

  /* Unterpunkte optisch klar als Ebene 2 */
  .site-nav .menu li.has-sub > ul.sub a {
    padding: 10px 4px 10px 18px;  /* Einzug links */
    text-transform: none;
    font-size: 0.95em;
    line-height: 1.25;
    opacity: 0.95;
  }

  /* Kleine Markierung (Bullet-Ersatz) links */
  .site-nav .menu li.has-sub > ul.sub a::before {
    content: "–";
    display: inline-block;
    margin-right: 8px;
    opacity: 0.85;
  }
}

/* ==========================================================================
   Hero-Animation: Point Network (aus hero.html)
   ========================================================================== */
.hero-network{
  /* Full-bleed innerhalb von .content (wie .news-bar) */
  width: calc(100% + 40px);
  margin: -24px -20px 18px;
}

.point-network{
  position: relative;
  width: 100%;
  height: 240px; /* nach Bedarf anpassen */
  /*background: radial-gradient(circle at top, #151d2b 0, #050811 60%, #020309 100%);*/
  background: radial-gradient(circle at top, #103048 0, #101622 60%, #205090 100%);  
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.point-network canvas{
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.point-network::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.45) 70%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.point-network .headline{
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 2rem;
}

.point-network .main-title{
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem 0;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(40, 110, 255, 0.65);
}

.point-network .sub-title{
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
}

@media (max-width: 900px){
  .point-network{
    height: 48vw;
    min-height: 240px;
    border-radius: 0px;
  }
  .point-network .main-title{
    font-size: 2.0rem;
  }
  .point-network .sub-title{
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }
}


@media (max-width: 760px){
  body{ font-size: 16px; line-height: 1.55; }

  h1{ font-size: 1.7rem; }
  h2{ font-size: 1.3rem; }
  h3{ font-size: 1.1rem; }
  p { line-height: 1.55; }
}

/* Responsive tables (mobile) */
@media (max-width: 760px){
  .section-card{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .section-card table{
    min-width: 680px;               /* erzwingt horizontales Scrollen */
  }
  .section-card table th,
  .section-card table td{
    padding: 9px 10px;
    font-size: 14px;
  }
  .section-card table tbody td:first-child{
    min-width: 160px;
  }
}


/* ==========================================================================
   Beispielbilder / Samples
   ========================================================================== */
.samples-page .section-intro {
  margin-bottom: 1rem;
}

.sample-gallery {
  gap: 18px;
}

.sample-gallery figure {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.sample-gallery figure > img,
.sample-gallery figure > a > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.sample-gallery--screenshots figure > img,
.sample-gallery--screenshots figure > a > img {
  aspect-ratio: 1296 / 1146;
}

.sample-gallery figcaption {
  min-height: 3.2em;
}

@media (min-width: 901px) {
  .sample-gallery--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-gallery--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) and (min-width: 521px) {
  .sample-gallery--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-gallery--2,
  .sample-gallery--screenshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .sample-gallery,
  .sample-gallery--2,
  .sample-gallery--3,
  .sample-gallery--screenshots {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Publikationen / Literature list
   ========================================================================== */
.publications-page .pub-list {
  display: grid;
  gap: 14px;
  margin: 10px 0 20px;
}

.publications-page .pub-item {
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0.9), rgba(255, 255, 255, 1));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.publications-page .pub-item p {
  margin: 0;
}

.publications-page .pub-item p + p {
  margin-top: 0.35rem;
}

.publications-page .pub-authors {
  color: #233a73;
  font-size: 0.98rem;
}

.publications-page .pub-title {
  font-weight: 700;
  color: var(--brand);
  line-height: 1.45;
}

.publications-page .pub-source {
  font-size: 0.98rem;
  opacity: 0.96;
}

.publications-page .pub-source a {
  white-space: nowrap;
  margin-left: 0.35rem;
}

.publications-page .pub-bullets {
  margin: 0;
  padding-left: 1.2rem;
}

.publications-page .pub-bullets li {
  margin: 0 0 0.9rem 0;
  line-height: 1.5;
}

.publications-page h3 + .pub-list {
  margin-top: 0.6rem;
}

@media (max-width: 760px) {
  .publications-page .pub-item {
    padding: 12px 12px;
  }

  .publications-page .pub-authors,
  .publications-page .pub-source,
  .publications-page .pub-bullets li {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Herstellerliste / Systeme
   ========================================================================== */
.systems-page .system-row {
  align-items: start;
}

.systems-page .system-figure {
  margin: 0;
  text-align: center;
}

.systems-page .system-figure img {
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.systems-page .system-figure figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.systems-page .section-text > p:last-child,
.systems-page .section-text > ul:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .systems-page .system-figure img {
    max-width: 260px;
  }
}

/* ==========================================================================
   Studienanfrage
   ========================================================================== */
.study-request-page .study-request-list {
  margin-top: 0.75rem;
}

.study-request-page .study-request-list li {
  margin-bottom: 0.55rem;
}

.study-mail-template {
  margin-top: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0.95), rgba(255, 255, 255, 1));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  overflow: auto;
}

.study-mail-template pre {
  margin: 0;
  padding: 16px 18px;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .study-mail-template pre {
    padding: 14px 14px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Kontaktformular / CTA Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover {
  color: #fff;
  background: #174e98;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: rgba(15, 23, 42, 0.16);
}

.btn-secondary:hover {
  color: var(--brand);
  background: rgba(15, 23, 42, 0.04);
}

.contact-cta-box {
  margin: 22px 0 8px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0.96), rgba(255, 255, 255, 1));
}

.contact-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 0 16px 16px;
}

.contact-form textarea {
  resize: vertical;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.small-note {
  margin: 6px 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 760px) {
  .contact-form .form-actions {
    padding: 0 10px 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
