/* holgermueller.eu – Stylesheet (gestaltet wie MiG-21.de)
   Akzentfarbe #B30204, Schrift Montserrat (lokal), Raster 75 % Inhalt / 25 % Bücherspalte
   (Luftfahrtpublizistik), sonst Inhalt über die volle Breite */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/montserrat-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --rot: #B30204;
  --tinte: #1b1f22;
  --grau: #4f565c;
  --linie: #e2e5e8;
  --flaeche: #f4f5f6;
  --breite: 1400px;
  --rand: 2rem;
  --abstand: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: #fff; color: var(--tinte);
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem; line-height: 1.65;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--rot); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:not([href]) { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
b, strong { font-weight: 600; }
.sprunglink { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.sprunglink:focus { left: 1rem; }

/* ------------------------------------------------------------------ Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--linie); }
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); min-height: 84px;
  display: flex; align-items: center; gap: 1rem 1.5rem;
}
.marke { display: flex; align-items: center; gap: .65rem; color: var(--tinte); margin-right: auto; }
.marke:hover { text-decoration: none; color: var(--tinte); }
.marke span { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

.hauptmenue > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.hauptmenue > ul > li { position: relative; display: flex; align-items: center; }
.hauptmenue > ul > li + li { border-left: 1px solid var(--linie); }
.hauptmenue > ul > li > a, .menue-titel {
  display: block; padding: .3rem .8rem; color: var(--tinte);
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.hauptmenue > ul > li > a:hover, .hauptmenue li.aktiv > a, .hauptmenue li.aktiv > .menue-titel,
.menue-titel:hover { color: var(--rot); text-decoration: none; }
.hat-sub > a { padding-right: .2rem !important; }
.sub-schalter {
  display: flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.8rem;
  margin-right: .4rem; padding: 0; background: none; border: 0; cursor: pointer; color: var(--tinte);
  font: inherit;
}
.sub-schalter svg { width: 10px; height: 10px; flex: none; transition: transform .15s ease; }
.hat-sub:hover > .sub-schalter, .hat-sub.aktiv > .sub-schalter { color: var(--rot); }
/* Menüpunkt ohne eigene Seite: der ganze Eintrag öffnet das Untermenü */
.sub-schalter.menue-titel {
  width: auto; height: auto; margin: 0; gap: .45rem; padding: .3rem .8rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.hauptmenue .sub {
  display: none; position: absolute; top: calc(100% + 26px); left: 0; min-width: 16rem;
  list-style: none; margin: 0; padding: .5rem 0;
  background: #fff; border: 1px solid var(--linie); border-top: 3px solid var(--rot);
  box-shadow: 0 8px 24px rgba(20, 26, 32, .12);
}
.hauptmenue .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -29px; height: 26px; }
.hat-sub:hover > .sub, .hat-sub:focus-within > .sub, .hat-sub.offen > .sub { display: block; }
.hauptmenue .sub a, .hauptmenue .sub span { display: block; padding: .45rem 1.1rem; color: var(--tinte); font-size: .875rem; line-height: 1.4; }
.hauptmenue .sub a:hover { background: var(--flaeche); color: var(--rot); text-decoration: none; }
.hauptmenue .sub .ebene3 a { padding-left: 2.1rem; }
.hauptmenue .sub li.aktiv > a { color: var(--rot); font-weight: 600; }
.hauptmenue > ul > li:last-child > a { padding-right: 0; }
.hauptmenue .menue-suche a { display: flex; align-items: center; }
.hauptmenue .menue-suche svg { width: 17px; height: 17px; }
/* Untermenü des letzten Textpunkts rechtsbündig (ragt sonst über den Rand) */
@media (min-width: 761px) { .hauptmenue > ul > li.hat-sub:nth-last-child(3) .sub { left: auto; right: 0; } }

.menue-knopf {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--tinte); padding: 0;
}
.menue-knopf svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .menue-knopf { display: flex; }
  .hauptmenue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--linie); box-shadow: 0 12px 24px rgba(20, 26, 32, .1);
    max-height: calc(100vh - 64px); overflow-y: auto; padding: 0 var(--rand) 1rem; }
  .hauptmenue.offen { display: block; }
  .hauptmenue > ul { flex-direction: column; align-items: stretch; }
  .hauptmenue > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--linie); }
  .hauptmenue > ul > li + li { border-left: 0; }
  .hauptmenue > ul > li > a { flex: 1; padding: .85rem 0; font-size: .875rem; }
  .sub-schalter { width: 44px; height: 44px; margin: 0; }
  .sub-schalter.menue-titel { flex: 1; justify-content: space-between; height: auto; padding: .85rem 0; font-size: .875rem; }
  .hat-sub.offen > .sub-schalter svg { transform: rotate(180deg); }
  .hauptmenue .sub, .hat-sub:hover > .sub, .hat-sub:focus-within > .sub {
    display: none; position: static; width: 100%; min-width: 0; box-shadow: none; border: 0;
    border-left: 2px solid var(--linie); margin: 0 0 .6rem .2rem; padding: 0 0 0 .9rem; }
  .hauptmenue .sub::before { display: none; }
  .hat-sub.offen > .sub { display: block; }
  .hauptmenue .sub a, .hauptmenue .sub span { padding: .45rem 0; font-size: .9375rem; }
  .hauptmenue .sub .ebene3 a { padding-left: 1rem; }
  .hauptmenue .sub a:hover { background: none; }
}

/* ------------------------------------------------------------ Titelbild */
/* Zwei Titelbilder: Automatisierung (Foto) und Luftfahrtpublizistik (Buchtitel).
   Seitenverhältnis und Grundfarbe trägt tools/headerbild.py ein (Zeilen mit "titelbild:"). */
.titelbild {
  background-position: center top; background-size: 100% auto; background-repeat: no-repeat;
  display: flex; align-items: flex-start;
}
.titelbild.automatisierung { background-image: url(../img/titelbild-automatisierung.jpg); }
.titelbild.luftfahrt { background-image: url(../img/titelbild-luftfahrt.jpg); }
.titelbild.automatisierung { aspect-ratio: 1920 / 512; background-color: #8b4f4e; } /* titelbild:automatisierung */
.titelbild.luftfahrt { aspect-ratio: 1920 / 512; background-color: #965f65; } /* titelbild:luftfahrt */
.titelbild-text { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 2.5rem var(--rand) 0; color: #fff; }
.titelbild .pfad { margin: 0 0 .4rem; font-size: .9375rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.titelbild .pfad:empty { display: none; }
.titelbild .pfad a { color: #fff; }
.titelbild h1 {
  margin: 0; max-width: 34ch; font-size: clamp(1.8rem, 3.6vw, 3.25rem); font-weight: 400; line-height: 1.12;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45); overflow-wrap: break-word;
}
/* schmale Bildschirme: Überschrift bleibt auf dem Titelbild */
@media (max-width: 760px) {
  .titelbild[class] { aspect-ratio: auto; min-height: max(190px, 52vw); align-items: flex-end;
    background-position: 0 0, 70% center; background-size: auto, cover; }
  .titelbild.automatisierung {
    background-image: linear-gradient(to top, rgba(40, 0, 0, .5), rgba(40, 0, 0, 0) 70%), url(../img/titelbild-automatisierung.jpg); }
  .titelbild.luftfahrt {
    background-image: linear-gradient(to top, rgba(40, 0, 0, .5), rgba(40, 0, 0, 0) 70%), url(../img/titelbild-luftfahrt.jpg); }
  .titelbild-text { padding: 1rem var(--rand) 1.1rem; }
  .titelbild h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}

/* ------------------------------------------------------ Seite und Raster */
.seite {
  flex: 1 0 auto; width: 100%; max-width: var(--breite); margin: 0 auto;
  padding: 3rem var(--rand) 4rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--abstand); align-items: start;
}
.inhalt {
  grid-column: span 3; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--abstand); align-content: start;
}
.inhalt > * { grid-column: 1 / -1; min-width: 0; }
.inhalt > p, .inhalt > ul, .inhalt > ol, .inhalt > h2, .inhalt > h3 { max-width: 48rem; }
.inhalt > :first-child { margin-top: 0; }
/* ohne Bücherspalte: Inhalt über die volle Breite */
.seite:not(:has(> .randspalte)) > .inhalt { grid-column: 1 / -1; }
.seite:not(:has(> .randspalte)) > .inhalt > .projekt { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seite:not(:has(> .randspalte)) > .inhalt > .projekt > .projekt-text { grid-column: span 3; }
.inhalt p { margin: 0 0 1em; }
.inhalt ul, .inhalt ol { margin: 0 0 1.4em; padding-left: 1.2rem; }
.inhalt li { margin-bottom: .3rem; }
.inhalt h2 {
  margin: 2.2rem 0 .6rem; color: var(--rot);
  font-size: 1.375rem; font-weight: 500; letter-spacing: .01em; line-height: 1.35;
}
.inhalt h3 { margin: 1.6rem 0 .5rem; color: var(--rot); font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.inhalt .einleitung { font-size: 1.1875rem; font-weight: 500; line-height: 1.55; margin-bottom: 1.5rem; }
.inhalt .klein { font-size: .8125rem; color: var(--grau); margin-top: 2rem; }

/* Bild + Bildtext: 2/3 der Inhaltsbreite = 50 % der Seite, Text daneben = 25 % */
.bild {
  margin: 0 0 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--abstand); align-items: start;
}
.bild > .bild-medien { grid-column: span 2; }
.bild img { display: block; width: auto; height: auto; max-width: min(100%, 800px); max-height: 533px; }
.bild figcaption {
  font-size: .9375rem; line-height: 1.6; color: #3d4349;
  padding-top: .45rem; border-top: 3px solid var(--rot);
}
.bild figcaption:empty { display: none; }

/* Applikationen (Referenzen): Bild 1/3, Text 2/3 der Inhaltsbreite */
.projekt {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--abstand);
  padding: 1.75rem 0; border-top: 1px solid var(--linie); align-items: start;
}
.projekt:last-of-type { border-bottom: 1px solid var(--linie); }
.projekt-bild img { display: block; width: auto; max-width: 100%; height: auto; }
.projekt-bild .ueberlagert { display: inline-block; max-width: 100%; background-size: 100% 100%; background-repeat: no-repeat; }
.projekt-text { grid-column: span 2; min-width: 0; }
.projekt-text h3 { margin: 0 0 .5rem; }
.projekt-text .untertitel { color: var(--grau); font-weight: 500; margin-bottom: .75rem; }
.projekt-text ul { margin-bottom: .5rem; }
.projekt-text li { font-size: .9375rem; }
.projekt + p, .projekt + h2 { margin-top: 1.75rem; }

/* Tabellen */
.tabelle { margin: 0 0 2rem; overflow-x: auto; }
.tabelle table { border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.tabelle td, .tabelle th { padding: .55rem .75rem .55rem 0; vertical-align: top; text-align: left; }
.tabelle th { font-weight: 600; }
/* Titel | Medium (Publikationen) */
.tabelle.liste table { width: 100%; }
.tabelle.liste th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau);
  border-bottom: 3px solid var(--rot); }
.tabelle.liste td { border-bottom: 1px solid var(--linie); }
.tabelle.liste td:last-child, .tabelle.liste th:last-child { width: 30%; padding-right: 0; color: var(--grau); }
/* Lebenslauf: Bezeichnung | Angabe */
.tabelle.lebenslauf td:first-child { font-weight: 600; white-space: nowrap; padding-right: 1.5rem; }
.tabelle.lebenslauf td { padding-bottom: .9rem; }

/* ---------------------------------------- Hinweis müller+krahmer (unten) */
.hinweis-unten { grid-column: 1 / -1; border-top: 3px solid var(--rot); padding-top: 1.5rem; margin-top: 1rem; }
.hinweis-unten .muk { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; max-width: none; }
.hinweis-unten .muk img { flex: none; width: 300px; max-width: 100%; }
.hinweis-unten .muk span { flex: 1 1 22rem; }
.hinweis-unten .muk em { white-space: nowrap; }

/* ------------------------------------------------------ rechte Spalte */
.randspalte { grid-column: span 1; min-width: 0; display: flex; flex-direction: column; gap: 2.25rem; }
.randspalte h2 {
  margin: 0; padding-bottom: .5rem; border-bottom: 3px solid var(--rot);
  font-size: .9375rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--tinte);
}
.muk { display: flex; color: var(--tinte); font-size: .9375rem; line-height: 1.55; }
.muk:hover { text-decoration: none; }
.muk:hover em { text-decoration: underline; }
.muk em { font-style: normal; font-weight: 600; color: var(--rot); }
.buch { display: flex; flex-direction: column; gap: .7rem; color: var(--tinte); }
.buch:hover { text-decoration: none; opacity: .85; }
.buch img { display: block; width: 100%; max-width: 280px; height: auto; box-shadow: 0 3px 14px rgba(20, 26, 32, .2); }
.buch span { font-size: .9375rem; line-height: 1.45; }
.buch strong { display: block; }
.buch em { font-style: normal; color: var(--grau); }

/* ------------------------------------------------------------------ Fuß */
.fuss { border-top: 1px solid var(--linie); font-size: .75rem; }
.fuss-innen {
  max-width: var(--breite); margin: 0 auto; padding: 1.25rem var(--rand);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
}
.fuss p { margin: 0; color: var(--grau); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.fuss li + li { border-left: 1px solid var(--linie); }
.fuss li a { display: block; padding: 0 .75rem; text-transform: uppercase; }
.fuss li:first-child a { padding-left: 0; }
.fuss li:last-child a { padding-right: 0; }

/* ------------------------------------------------------ kleinere Bildschirme */
@media (max-width: 960px) {
  .seite { grid-template-columns: minmax(0, 1fr); }
  .inhalt, .randspalte { grid-column: 1 / -1; }
  .buecher { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem; }
  .buecher h2 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .seite:not(:has(> .randspalte)) > .inhalt > .projekt { grid-template-columns: minmax(0, 1fr); }
  .seite:not(:has(> .randspalte)) > .inhalt > .projekt > .projekt-text { grid-column: 1 / -1; }
  :root { --rand: 1.1rem; --abstand: 1.25rem; }
  body { font-size: 1rem; }
  .kopf-innen { min-height: 64px; }
  .marke span { font-size: 1.2rem; }
  .seite { padding-top: 2rem; }
  .bild, .inhalt, .projekt { grid-template-columns: minmax(0, 1fr); }
  .bild > .bild-medien, .projekt-text { grid-column: 1 / -1; }
  .bild figcaption { margin-top: .6rem; }
  .projekt-bild { margin-bottom: 1rem; }
  .tabelle.liste td:last-child, .tabelle.liste th:last-child { width: auto; }
  .tabelle.lebenslauf td:first-child { white-space: normal; }
}

/* ------------------------------------------------------------------ Druck */
@media print {
  .kopf, .fuss, .randspalte, .hinweis-unten { display: none; }
  .titelbild[class] { background: none; aspect-ratio: auto; }
  .titelbild-text, .titelbild .pfad a { color: #000; text-shadow: none; padding: 0; }
  .seite { display: block; padding: 0; }
}

/* Suche */
.suchformular { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2rem; max-width: 48rem; }
.suchformular input[type="search"] {
  flex: 1 1 16rem; font: inherit; padding: .65rem .9rem; border: 1px solid #b9bfc5; border-radius: 0; min-width: 0;
}
.suchformular button {
  font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .875rem;
  padding: .65rem 1.5rem; border: 2px solid var(--rot); background: var(--rot); color: #fff; cursor: pointer;
}
.suchformular button:hover { background: #fff; color: var(--rot); }
.suchinfo { color: var(--grau); }
.treffer { padding: 1rem 0; border-top: 1px solid var(--linie); max-width: 48rem; }
.treffer h2 { margin: 0 0 .3rem !important; font-size: 1.0625rem !important; }
.treffer p { margin: 0; font-size: .9375rem; color: #3d4349; }
.treffer mark { background: #f6d9d9; color: inherit; padding: 0 .1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* lange Namenslisten (Kunden) zweispaltig */
.inhalt ul.spalten { columns: 2; column-gap: var(--abstand); max-width: none; }
.inhalt ul.spalten li { break-inside: avoid; }
@media (max-width: 640px) { .inhalt ul.spalten { columns: 1; } }

