/* ==========================================================================
   Fonts: Inter (local)
   ========================================================================== */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/inter/inter-v20-latin_latin-ext-300.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter/inter-v20-latin_latin-ext-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/inter/inter-v20-latin_latin-ext-italic.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/inter/inter-v20-latin_latin-ext-500.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/inter/inter-v20-latin_latin-ext-600.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  src: url("../fonts/inter/inter-v20-latin_latin-ext-800.woff2") format("woff2");
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --page-bg: #f7f8fb; /* Seitenhintergrund */
  --brand: #1e90ff;
  --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: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  background: var(--page-bg);
}

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

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

h2 {
  color: var(--brand);
  font-size: 1.1em;
  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: 0;
  color: #fff;
}

/* Titel mit leichtem Schatten */
.header-inner .site-title {
  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-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: "Inter", 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;
}

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

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

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

/* ==========================================================================
   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, falls irgendwo im Content verwendet */
table {
  border-collapse: collapse;
}

td,
th {
  vertical-align: top;
  padding: 2px;
}

/* ==========================================================================
   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: 12px;
  padding: 14px 14px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  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 22px;
}

.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;
  }
}