/* =======================================================================
   Entwurfs-Stylesheet für die überarbeiteten Seiten (index2, behaelter2).
   Liegt bewusst neben "Photogrammetrie Linearis3D.css", damit sich alte
   und neue Seiten nicht gegenseitig beeinflussen.
   Schriften und Farben stammen aus dem bestehenden Auftritt.
   ======================================================================= */

/* ---------- Schriften: lokal, keine externen Abrufe ---------- */
@font-face {
  font-family: 'Jaldi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jaldi_latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jaldi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jaldi_latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Strait';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/strait.woff2') format('woff2');
}

/* ---------- Farben aus dem bestehenden Auftritt ---------- */
:root {
  --blau: #005580;
  --blau-dunkel: #00405f;
  --akzent: #e4ff60;
  --text: #333;
  --text-leise: #63666b;
  --grund: #fff;
  --grund-leise: #f5f7f8;
  --linie: #dfe3e6;
  --breite: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: 'Jaldi', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Strait', Verdana, Helvetica, sans-serif;
  font-weight: normal;
  color: var(--blau);
  line-height: 1.2;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(25px, 3vw, 34px); }
h3 { font-size: 21px; }

p { margin: 0 0 1em; }
a { color: var(--blau); }
img { max-width: 100%; display: block; }

.bahn { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.bahn.schmal { max-width: 840px; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  /* Weichzeichner haelt die Leiste lesbar, waehrend Inhalt darunter durchscheint */
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--linie);
}

.kopf .bahn { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.kopf img { height: 31.5px; width: auto; }   /* 26px, zweimal um 10% erhoeht */

.navi { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }

.navi a {
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.navi a:hover { color: var(--blau); border-bottom-color: var(--akzent); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 17px;
  border: 1px solid var(--blau);
  background: var(--blau);
  color: #fff;
  white-space: nowrap;
}

.knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }
.knopf.leer { background: transparent; color: var(--blau); }
.knopf.leer:hover { background: var(--grund-leise); }
.knopf.hell { background: var(--akzent); border-color: var(--akzent); color: #1d2b12; }
.knopf.hell:hover { filter: brightness(.94); }

.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 20px; }

/* ---------- Marken-Label ---------- */
.marke {
  display: inline-block;
  font-size: 14px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blau);
  background: #e6eef3;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 18px;
}

/* ---------- Aufmacher ---------- */
.aufmacher { background: var(--grund-leise); border-bottom: 1px solid var(--linie); }

.aufmacher .bahn {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.vorspann { font-size: 20px; color: var(--text-leise); max-width: 33em; }

.beleg { font-size: 16px; color: var(--text-leise); }
.beleg strong { color: var(--text); }

.aufmacher-bild {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 40, 60, .16);
  position: relative;
}

.aufmacher-bild img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.plakette {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #fff;
  padding: 12px 18px;
  border-top-right-radius: 4px;
}

.plakette b {
  font-family: 'Strait', Verdana, sans-serif;
  font-size: 26px;
  color: var(--blau);
  display: block;
  line-height: 1;
}

.plakette span { font-size: 14px; color: var(--text-leise); }

/* ---------- Kennzahlen ---------- */
.kennzahlen { background: var(--blau); color: #fff; }

.kennzahlen .bahn {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}

.kennzahlen b {
  font-family: 'Strait', Verdana, sans-serif;
  font-size: 30px;
  color: var(--akzent);
  display: block;
  line-height: 1.1;
}

.kennzahlen span { font-size: 15px; opacity: .88; }

/* ---------- Abschnitte ---------- */
section { padding: 66px 0; }
section.leise { background: var(--grund-leise); }

.kopfzeile { max-width: 44em; margin-bottom: 38px; }
.kopfzeile p { color: var(--text-leise); margin: 0; }

/* ---------- Karten ---------- */
.gitter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.karte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s, transform .18s;
}

.karte:hover { box-shadow: 0 10px 28px rgba(0, 40, 60, .13); transform: translateY(-3px); }
.karte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.karte-text { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.karte h3 { margin-bottom: .35em; }
.karte p { font-size: 16.5px; color: var(--text-leise); margin-bottom: 1em; }

.weiter { margin-top: auto; color: var(--blau); font-size: 16.5px; }
.weiter::after { content: " \2192"; }

/* ---------- Hervorgehobener Block ---------- */
.spot {
  background: var(--blau);
  color: #fff;
  border-radius: 5px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.spot h2 { color: #fff; }
.spot p { color: rgba(255, 255, 255, .9); }
.spot .marke { background: rgba(228, 255, 96, .18); color: var(--akzent); }
.spot ul { margin: 0 0 24px; padding-left: 20px; color: rgba(255, 255, 255, .9); }
.spot li { margin-bottom: 6px; }

.spot-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spot-bilder img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }

/* ---------- Nummerierte Gründe / Schritte ---------- */
.gruende { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.gruende.drei { grid-template-columns: repeat(3, 1fr); }

.nr {
  font-family: 'Strait', Verdana, sans-serif;
  color: var(--blau);
  background: #e6eef3;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 17px;
}

.gruende h3 { font-size: 19px; margin-bottom: .3em; }
.gruende p { font-size: 16.5px; color: var(--text-leise); margin: 0; }

/* ---------- Systemliste ---------- */
.systeme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 26px; }

.systeme a {
  display: block;
  padding: 15px 18px;
  border: 1px solid var(--linie);
  border-left: 3px solid var(--blau);
  border-radius: 3px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
}

.systeme a:hover { border-left-color: var(--akzent); color: var(--blau); }

/* ---------- Abschluss ---------- */
.abschluss .bahn {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.abschluss h2 { margin-bottom: .2em; }
.abschluss p { color: var(--text-leise); margin: 0; }

/* ---------- Fuß ---------- */
.fuss { background: #2f3036; color: #c9ccd1; padding: 50px 0 24px; font-size: 16px; }
.fuss .bahn { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }

.fuss h4 {
  font-family: 'Strait', Verdana, sans-serif;
  font-weight: normal;
  color: #fff;
  font-size: 14px;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.fuss a { color: #c9ccd1; text-decoration: none; display: block; margin-bottom: 7px; }
.fuss a:hover { color: var(--akzent); }

.fuss-unten {
  border-top: 1px solid #43454c;
  margin-top: 34px;
  padding-top: 18px;
  font-size: 14.5px;
  color: #8c9096;
}

/* =======================================================================
   Zusätze für Anwendungsseiten (Fallstudien)
   ======================================================================= */

/* ---------- Brotkrumen ---------- */
.krumen { font-size: 16px; color: var(--text-leise); padding: 18px 0 0; }
.krumen a { color: var(--text-leise); text-decoration: none; }
.krumen a:hover { color: var(--blau); text-decoration: underline; }
.krumen span { margin: 0 8px; opacity: .6; }

/* ---------- Fließtext einer Fallstudie ---------- */
.fliess { font-size: 18.5px; }
.fliess p { max-width: 40em; }
.fliess ul { max-width: 40em; padding-left: 22px; }
.fliess li { margin-bottom: 8px; }

/* ---------- Faktenkasten neben dem Text ---------- */
.mit-kasten { display: grid; grid-template-columns: 1.6fr .9fr; gap: 48px; align-items: start; }

.kasten {
  background: var(--grund-leise);
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 26px 28px;
}

.kasten h3 { font-size: 18px; margin-bottom: .8em; }
.kasten dl { margin: 0; }
.kasten dt { font-size: 14.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-leise); }

.kasten dd {
  margin: 2px 0 16px;
  font-family: 'Strait', Verdana, sans-serif;
  font-size: 20px;
  color: var(--blau);
}

.kasten dd:last-child { margin-bottom: 0; }

/* ---------- Abbildungen ---------- */
.abbildungen { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.abbildung {
  border: 1px solid var(--linie);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
}

.abbildung:hover { box-shadow: 0 10px 28px rgba(0, 40, 60, .13); }

.abbildung img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }

.abbildung figcaption {
  padding: 14px 18px 16px;
  font-size: 16.5px;
  color: var(--text-leise);
  border-top: 1px solid var(--linie);
}

.abbildung figcaption b { color: var(--text); font-weight: normal; }

/* ---------- Messgrößen-Liste ---------- */
.messgroessen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }

.messgroessen div {
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--linie);
  border-left: 3px solid var(--akzent);
  border-radius: 3px;
  font-size: 17px;
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 950px) {
  .aufmacher .bahn { grid-template-columns: 1fr; gap: 32px; }
  .gitter, .gruende, .gruende.drei, .systeme { grid-template-columns: repeat(2, 1fr); }
  .kennzahlen .bahn { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .spot { grid-template-columns: 1fr; padding: 32px; }
  .fuss .bahn { grid-template-columns: 1fr 1fr; }
  .navi { display: none; }
  .mit-kasten { grid-template-columns: 1fr; gap: 32px; }
  .abbildungen { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .gitter, .gruende, .gruende.drei, .systeme, .messgroessen { grid-template-columns: 1fr; }
  section { padding: 46px 0; }
}

/* =======================================================================
   Bühne mit Slideshow (index3) — responsiveSlides braucht diese Regeln.
   Alle acht Slides haben 1013x415 bzw. 850x348, also exakt 2,44:1.
   ======================================================================= */

.buehne { background: var(--grund-leise); }

/* Bühne folgt der Inhaltsbreite (--breite) und der Polsterung von .bahn,
   damit ihre Kanten mit Logo und Menü fluchten. */

.buehne-rahmen {
  overflow: hidden;
  aspect-ratio: 1013 / 415;
  /* unten abgerundet wie im bisherigen Auftritt (.rslides) */
  border-radius: 0 0 6px 6px;
}

.rslides {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.rslides li {
  -webkit-backface-visibility: hidden;
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 0;
}

.rslides li:first-child { position: relative; display: block; float: left; }

.rslides img {
  display: block;
  height: auto;
  float: left;
  width: 100%;
  border: 0;
}

/* Textblock unter der Bühne */
.einstieg { background: var(--grund-leise); border-bottom: 1px solid var(--linie); }

.einstieg .bahn {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 48px;
  align-items: end;
  padding-top: 44px;
  padding-bottom: 44px;
}

.einstieg h1 { margin-bottom: .35em; }

@media (max-width: 950px) {
  .einstieg .bahn { grid-template-columns: 1fr; gap: 26px; align-items: start; }
}

/* =======================================================================
   Navigation mit Klappmenüs (vorlage2) — ersetzt die 32-fach duplizierte
   Navigation der Altseiten. Steht nur noch in der Vorlage.
   ======================================================================= */

.kopf .bahn { position: relative; }
.kopf-logo { flex: none; }

.navi { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.navi-gruppe { position: relative; }

.navi-schalter {
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  cursor: pointer;
}

.navi-schalter::after { content: " \25BE"; font-size: 11px; opacity: .55; }
.navi-schalter:hover { color: var(--blau); border-bottom-color: var(--akzent); }
.navi-gruppe.offen > .navi-schalter { color: var(--blau); border-bottom-color: var(--akzent); }

.navi-klapp {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(0, 40, 60, .15);
  list-style: none;
  margin: 6px 0 0;
  padding: 8px 0;
  z-index: 60;
}

.navi-gruppe.offen .navi-klapp { display: block; }

.navi-klapp a {
  display: block;
  padding: 8px 18px;
  font-size: 16.5px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.navi-klapp a:hover { background: var(--grund-leise); color: var(--blau); border-left-color: var(--akzent); }

/* aktive Seite: wird vom Generator gesetzt */
.navi-klapp a.aktiv { color: var(--blau); border-left-color: var(--blau); background: var(--grund-leise); }
.navi-gruppe.aktiv > .navi-schalter { color: var(--blau); border-bottom-color: var(--blau); }

.kopf-knopf { flex: none; margin-left: 14px; }

/* Burger nur schmal sichtbar */
.navi-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.navi-burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

@media (max-width: 1100px) {
  .navi-schalter { padding: 8px 8px; font-size: 16px; }
  .navi-klapp { min-width: 240px; }
}

@media (max-width: 950px) {
  .navi-burger { display: block; }
  .kopf-knopf { margin-left: 0; }

  .navi {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--linie);
    box-shadow: 0 14px 30px rgba(0, 40, 60, .14);
    padding: 8px 0 14px;
    max-height: 78vh;
    overflow-y: auto;
  }

  .navi.offen { display: flex; }
  .navi-schalter { width: 100%; text-align: left; padding: 12px 24px; border-bottom: 0; }

  .navi-klapp {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0 0 8px;
    min-width: 0;
  }

  .navi-klapp a { padding-left: 40px; }
}

/* ---------- Tabellen (Datenblätter der Systemseiten) ---------- */
.fliess table {
  border-collapse: collapse;
  width: 100%;
  max-width: 40em;
  margin: 0 0 1.4em;
  font-size: 17px;
}

.fliess table td, .fliess table th {
  border-bottom: 1px solid var(--linie);
  padding: 9px 14px 9px 0;
  text-align: left;
  vertical-align: top;
}

.fliess table td:first-child, .fliess table th:first-child {
  color: var(--text-leise);
  width: 42%;
  font-weight: normal;
}

.fliess table tr:hover td { background: var(--grund-leise); }

/* Bildunterschriften-Verweise im Fliesstext */
.fliess sup { font-size: .7em; }

/* ---------- Sprachumschalter im Kopf ---------- */
.kopf-sprache {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  text-decoration: none;
  color: var(--text-leise);
  font-size: 16.5px;
  white-space: nowrap;
  margin-left: 14px;
}

.kopf-sprache img { height: 18px; width: auto; opacity: .75; }
.kopf-sprache:hover { color: var(--blau); }
.kopf-sprache:hover img { opacity: 1; }

@media (max-width: 950px) {
  .kopf-sprache { margin-left: auto; }
}

/* =======================================================================
   Referenz-Logos auf der Startseite — jedes Logo verlinkt das zugehoerige
   Anwendungsbeispiel. Logos bleiben farbig, die Kachel traegt die Wirkung.
   ======================================================================= */

.referenzen { border-bottom: 1px solid var(--linie); }

.logoreihe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.logokachel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px 22px;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 4px;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}

.logokachel:hover {
  border-color: #c9d2d8;
  box-shadow: 0 10px 28px rgba(0, 40, 60, .13);
  transform: translateY(-3px);
}

.logofeld {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.logofeld img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .88;
  transition: opacity .18s;
}

.logokachel:hover .logofeld img { opacity: 1; }

/* Optischer Ausgleich: eine flaechige Wort-Bild-Marke wirkt bei gleicher
   Hoehe deutlich schwerer als ein feiner Schriftzug. */
.logofeld img.logo-flaeche { max-height: 58px; }
.logofeld img.logo-marke   { max-height: 64px; }
.logofeld img.logo-schrift { max-width: 200px; }

.logotext {
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--text-leise);
  text-align: center;
  margin-top: auto;
}

.logokachel:hover .logotext { color: var(--blau); }

.markenhinweis {
  margin: 26px 0 0;
  font-size: 14.5px;
  color: var(--text-leise);
  max-width: 44em;
}

@media (max-width: 950px) {
  .logoreihe { grid-template-columns: repeat(2, 1fr); }
}

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