/* Seitenrahmen: Kopf, Navigation, Abschnitte, Fuß
 *
 * Maße am publishten Webflow-Stand vom 01.09.2026 gemessen (1280 px und
 * 375 px), nicht geschätzt. Abweichungen vom Original sind kommentiert.
 */

/* ---------------------------------------------------- Container
 * Das Original hat KEINE Maximalbreite (max-width: none) — der Inhalt läuft
 * bis 1920 px voll, mit seitlichem Abstand je Stufe. Der Textblock darunter
 * begrenzt sich selbst auf 1120 px.
 */
.bahn {
  max-width: none;
  margin-inline: auto;
  padding-inline: 40px;
}
@media screen and (max-width: 991px) { .bahn { padding-inline: 30px; } }
@media screen and (max-width: 767px) { .bahn { padding-inline: 20px; } }
@media screen and (max-width: 479px) { .bahn { padding-inline: 15px; } }
@media screen and (min-width: 1440px) { .bahn { padding-inline: 50px; } }
@media screen and (min-width: 1920px) { .bahn { max-width: 1920px; } }

/* Schmaler Lesetext — im Original .portfolio-details-content-block */
.bahn-eng { max-width: 1120px; margin-inline: auto; }

/* ---------------------------------------------------- Kopf
 * Liegt absolut über dem Seitenanfang; der erste Abschnitt schafft mit
 * 140 px Innenabstand oben den Platz dafür.
 */
.kopf {
  position: absolute; top: 30px; left: 0; right: 0; z-index: 40;
  padding-block: 20px;
}
@media screen and (max-width: 767px) { .kopf { top: 0; } }

.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  height: 59px;
}
.marke { display: block; height: 59px; flex: none; }
.marke img { height: 59px; width: auto; display: block; }
@media screen and (max-width: 479px) { .marke img { width: 253px; height: auto; } }

.hauptmenue { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.hauptmenue a {
  font-family: var(--schrift-text);
  font-size: 20px; font-weight: 700; line-height: 1.2;
  letter-spacing: .25px; text-transform: uppercase;
  color: var(--dunkel-text); text-decoration: none;
  transition: color .2s ease;
}
.hauptmenue a:hover, .hauptmenue a[aria-current="page"] { color: var(--akzent); }
.hauptmenue a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; }

/* Menüknopf — im Original 29 × 12 px, drei Striche */
.menueknopf {
  display: none; flex-direction: column; justify-content: space-between;
  width: 44px; height: 44px; padding: 16px 7px;   /* Trefffläche 44 px, Zeichnung 30 × 12 */
  background: none; border: 0; cursor: pointer; margin-right: -7px; margin-left: auto;
}
.menueknopf span { display: block; height: 2px; background: var(--dunkel-text); transition: transform .2s ease, opacity .2s ease; }
.menueknopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menueknopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menueknopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menueknopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

@media screen and (max-width: 991px) {
  .menueknopf { display: flex; }
  .kopf-innen nav { display: contents; }   /* darf keinen Flex-Platz belegen */
  .hauptmenue {
    position: fixed; inset: 0; z-index: 50;
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 28px; background: var(--dunkel-grund);
  }
  .hauptmenue.offen { display: flex; }
  .hauptmenue a { font-size: 28px; }
  .menue-offen { overflow: hidden; }
  /* Der Knopf muss über dem geöffneten Menü bleiben */
  .menueknopf { position: relative; z-index: 60; }
}

/* ---------------------------------------------------- Abschnitte */
.abschnitt { padding-block: 100px; }
.abschnitt-erst { padding-top: 140px; }          /* Platz für den absoluten Kopf */
@media screen and (max-width: 767px) { .abschnitt { padding-block: 80px; } .abschnitt-erst { padding-top: 140px; } }

/* ---------------------------------------------------- Fuß
 * Original: 40 px Innenabstand, zwei Links à 20 px, weiß.
 * Erweitert um eine Zeile mit Name und Ort — das Original hat nur die Links.
 */
.fuss { padding-block: 40px; }
.fuss-innen {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
}
.fuss-name { margin: 0; font-size: 16px; line-height: 1.3; color: var(--dunkel-text-leise); }
.fussmenue { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.fussmenue li { display: flex; }
.fussmenue a { display: inline-block; font-size: 20px; font-weight: 400; line-height: 26px; padding-block: 9px; margin-block: -9px; color: var(--dunkel-text); text-decoration: none; }
.fussmenue a:hover { color: var(--akzent); }
.fussmenue a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; }
@media screen and (max-width: 767px) {
  .fuss-innen { flex-direction: column; text-align: center; gap: 20px; }
  .fussmenue { flex-direction: column; gap: 20px; align-items: center; }
}

/* ---------------------------------------------------- Bedienelemente
 * Original: 56 px hoch, 20 px Schrift, rahmenartige Linien.
 */
.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  font-family: var(--schrift-text); font-size: 20px; font-weight: 500; line-height: 1;
  color: var(--dunkel-text); text-decoration: none;
  border: 1px solid var(--dunkel-rand);
  transition: border-color .2s ease, color .2s ease;
}
.knopf:hover { border-color: var(--akzent); color: var(--akzent); }
.knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.knopf-zurueck::before { content: "←"; }

/* Sprunglink für Tastaturnutzer */
.sprung {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 16px; background: var(--akzent); color: var(--dunkel-grund);
}
.sprung:focus { left: 8px; }
