/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 116px; overflow-x: hidden; }  /* Scroll-Animation übernimmt main.js (sanfter); overflow-x verhindert Scrollbar beim Seiten-Wisch */
body {
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 300;
  background: #404850;
  color: #b1b1b1;
  overflow-x: hidden;
  padding-top: 116px;
  padding-bottom: 40px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== FIXED TOP BAR (Logo-Schrift 1:1 aus agb.html, höhere Kopfzeile) ===== */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 116px;
  background: #2E353C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 120px;
  z-index: 1000;
}
.topbar-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  text-decoration: none;
}
.topbar-logo-name {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 2.74rem;          /* +25 % */
  font-weight: 400;            /* weniger fett */
  color: #E8722A;              /* komplett orange */
  letter-spacing: .18em;
  line-height: 1;
}
.topbar-logo-name span { color: #E8722A; font-weight: 400; }
.topbar-logo-tag {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 0.975rem;         /* 2 pt kleiner */
  font-weight: 300;
  color: #C2BFB8;
  letter-spacing: .22em;
  text-transform: lowercase;
  line-height: 1;
}
#topbar-phone {
  color: #b1b1b1;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 300;
}

/* ===== HAMBURGER (nur mobil sichtbar) ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1300;
}
.nav-burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #E8722A;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: #2E353C;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay a {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #f5f2ec;
  text-decoration: none;
}
.nav-overlay a:hover { color: #E8722A; }
.nav-ov-divider { width: 40px; height: 1px; background: #707e8c; margin: 8px 0; }
.nav-overlay .nav-ov-legal { font-size: 15px; letter-spacing: 2px; color: #9aa3ab; }
.nav-overlay .nav-ov-legal:hover { color: #E8722A; }

/* ===== HERO (Höhe wächst mit der Breite: flach auf schmalen Schirmen, hoch am Desktop) ===== */
#hero {
  position: relative;
  width: 100%;
  height: clamp(240px, 48vw, 900px);
  overflow: hidden;
  background: #222;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.hero-arrow {
  display: block;
  width: 35px;
  margin: 50px auto 55px;
}
.hero-arrow:hover { opacity: 1; }

/* Maus-Icon: Inline-SVG — weiß, beim Drüberfahren orange (alle Browser) */
.maus-icon {
  display: block;
  width: 35px;
  height: 93px;
  color: #ffffff;
  transition: color 0.25s;
}
.maus-icon path,
.maus-icon rect {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a:hover > .maus-icon { color: #E8722A; }

/* ===== SECTION BASE ===== */
.page-section {
  position: relative;
  width: 100%;
}
.bg-mid    { background: #505a64; }
.bg-dark   { background: #404850; }
.bg-darker { background: #404850; }
.bg-mid2   { background: #707e8c; }

.section-stripe { display: none; }   /* farbige Trennstreifen entfernt */
.stripe-service  { background: #ff9595; }
.stripe-magazine { background: #ad9ab2; }
.stripe-diverse  { background: #78909e; }
.stripe-web      { background: #91bebd; }
.stripe-kunden   { background: #ebd8ab; }
.stripe-kontakt  { background: #e3b592; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

/* ===== SEO-Inhaltsbereich — im Seitenstil (Playfair-Headlines, Raleway-Text) ===== */
.seo-content { background: #404850; }
.seo-content .container { max-width: 980px; padding-top: 60px; padding-bottom: 80px; }
.seo-content h1,
.seo-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #ccc;
  line-height: 1.2;
}
.seo-content h1 { font-size: 34px; margin: 0 0 24px; }
.seo-content h2 { font-size: 26px; margin: 40px 0 16px; }
.seo-content p,
.seo-content ul {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.3px;
  color: #b1b1b1;
  max-width: 860px;
  margin: 0 0 16px;
}
.seo-content ul { padding-left: 22px; }
.seo-content li { margin-bottom: 6px; }
.seo-content strong { color: #e0e0e0; font-weight: 600; }
.seo-content a { color: #E8722A; }
@media (max-width: 760px) {
  .seo-content .container { padding-top: 44px; padding-bottom: 60px; }
  .seo-content h1 { font-size: 27px; }
  .seo-content h2 { font-size: 22px; }
  .seo-content p, .seo-content ul { font-size: 16px; }
}

/* ===== PAGE 1: KOMPETENZEN (Stil Neue Website 4) ===== */
.komp-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  text-align: center;
  margin: 90px 0 50px;
}
.komp-intro { max-width: 760px; }
.komp-eyebrow {
  color: #fcca21;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.komp-title {
  color: #ccc;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.komp-title em { font-style: italic; color: #E8722A; }

/* Schreibmaschine — Cursor (generisch) */
.tw-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: #E8722A;
  vertical-align: text-bottom;
  animation: type-caret-bg 0.75s step-end infinite;
}
@keyframes type-caret-bg {
  0%, 100% { background: #E8722A; }
  50%      { background: transparent; }
}
.komp-intro {
  color: #b1b1b1;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.8;
}
.komp-intro strong { color: #e0e0e0; font-weight: 400; }

.komp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* breitere Kästen */
  gap: 14px;
}
.komp-card {
  background: #505a64;
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  transition: background 0.4s ease, transform 0.4s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.4s ease;
}
.komp-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: #E8722A;
  transition: width 0.45s ease;
}
.komp-card:hover {
  background: #5b6772;
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.35);
}
.komp-card:hover::after { width: 100%; }
.komp-num {
  font-size: 46px;
  font-weight: 300;
  color: #707e8c;
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.4s ease, transform 0.4s ease;
}
.komp-card:hover .komp-num { color: #E8722A; transform: scale(1.12); transform-origin: left center; }
.komp-name {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.komp-desc {
  color: #b1b1b1;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
}
.arrow-nach-komp { margin: 50px auto 0; }

@media (max-width: 900px) {
  .komp-header { grid-template-columns: 1fr; gap: 24px; }
  .komp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .komp-grid { grid-template-columns: 1fr; }
}

.headline {
  color: #ccc;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.headline-sub {
  color: #ccc;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 5px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.headline-accent {
  color: #ccc;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 5px;
  line-height: 1.6;
}
.headline-accent.large { font-size: 22px; }
.body-text {
  color: #b1b1b1;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 27px;
}
.body-text.center { text-align: center; }
.subtitle {
  color: #ccc;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 5px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.scroll-arrow-down {
  display: block;
  margin: 70px auto 0;
  width: 35px;
}
.scroll-arrow-down:hover { opacity: 1; }

/* ===== PAGE 2: MAGAZINE ===== */
.section-title {
  color: #ccc;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 5px;
  text-align: center;
  line-height: 54px;
  margin-bottom: 20px;
}
.section-title.white {
  color: #fff;
  font-size: 22px;
  letter-spacing: 4px;
}
.section-subtitle {
  color: #ccc;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 30px;
}
.subtitle-small {
  font-size: 18px;
  letter-spacing: 2px;
  color: #8a8a8a;
}
.referenzen-titel { text-align: center; margin-top: 40px; }
.referenzen-btn {
  display: inline-block;
  text-align: center;
  padding: 16px 46px;
  border: 2px solid #E8722A;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.25s ease;
}
.referenzen-btn .referenzen-haupt,
.referenzen-btn .referenzen-sub { display: block; line-height: 1.35; }
.referenzen-btn:hover { background: #E8722A; }
#page2 .referenzen-btn:hover .referenzen-haupt,
#page2 .referenzen-btn:hover .referenzen-sub { color: #ffffff; }
.referenzen-haupt {
  color: #fcca21;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 54px;
}
.referenzen-sub {
  color: #ccc;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
}

/* ===== PAGE 2 (REFERENZEN): weißer Bereich, dunkle Schrift/Maus ===== */
#page2 { background: #505a64; }   /* unser Grau (wie Kompetenzen-Sektion) */
/* Titel "BEISPIELE MEINES SCHAFFENS" im Stil von "Was ich wirklich kann." */
.ref-titel { color: #ccc; margin: 24px 0 40px; text-align: center; font-size: 57px; }
#page2 .section-title       { color: #E8722A; }
#page2 .progress-value     { color: #E8722A; font-weight: 400; font-size: 30px; }
#page2 .progress-label     { color: #6b6b6b; }
#page2 .ring-track         { stroke: rgba(0,0,0,0.08); stroke-width: 4; }
#page2 .ring-fill          { stroke: #E8722A; stroke-width: 5; filter: drop-shadow(0 0 5px rgba(232,114,42,0.45)); }
#page2 .referenzen-haupt   { color: #ccc; }
#page2 .referenzen-sub     { color: #ccc; }
#page2 .maus-icon          { color: #2E353C; }
#page2 a:hover > .maus-icon { color: #E8722A; }

/* Progress circles — weiche Scheiben (progress_back.png), 3+2 versetzt, 1:1 Muse */
.progress-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0 50px;
}
.progress-row {
  display: flex;
  justify-content: center;
}
.progress-row-2 {
  margin-top: -34px;   /* hexagonale Schachtelung wie Original */
}
.progress-item {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url(../images/progress_back.png) center center / 280px 210px no-repeat;
  /* Einschwing-Effekt */
  opacity: 0;
  transform: translateY(28px) scale(0.9);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.progress-item.an {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.progress-item:nth-child(1) { transition-delay: 0.00s; }
.progress-item:nth-child(2) { transition-delay: 0.12s; }
.progress-item:nth-child(3) { transition-delay: 0.24s; }
.progress-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  top: calc(50% - 90px);
  left: calc(50% - 90px);
  transform: rotate(-90deg);   /* Ring startet oben */
}
.ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 3;
}
.ring-fill {
  fill: none;
  stroke: rgba(255,255,255,0.65);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 515.2;     /* 2π × r82 */
  stroke-dashoffset: 515.2;
  transition: stroke-dashoffset 1.6s ease;
}
.progress-item.an .ring-fill { stroke-dashoffset: 0; }
.progress-value {
  font-size: 40px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.progress-label {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  color: #999;
  font-size: 18px;
  letter-spacing: 6px;
  text-align: center;
}

/* Porsche-Bild zentriert über den Covern */
.porsche-wrap { text-align: center; margin: 10px 0 40px; }
.porsche-img {
  display: inline-block;
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 1417 / 790;   /* Platz reservieren → kein vertikaler Sprung beim Laden */
}

/* Magazine covers — Raster, 3 pro Reihe, vergrößert */
.covers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.cover {
  width: 100%;
  aspect-ratio: 244 / 185;    /* Magazin-Cover ~4:3 → Platz reservieren, kein Sprung */
  object-fit: contain;
  transform: rotate(-3deg) scale(1.075);
  transition: transform 0.3s;
}
.cover:hover { transform: rotate(0deg) scale(1.12); }

/* unimedica-Bild unter den Covern, volle Breite wie die 3er-Reihe */
.unimedica-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1178 / 576;   /* Platz reservieren → kein vertikaler Sprung beim Laden */
  margin: 0 0 40px;
}

/* ===== PAGE 3: VIELFALT (absolute Collage, 1:1 Muse) ===== */
.collage {
  position: relative;
  width: 1024px;
  left: 50%;
  transform: translateX(-50%);   /* zentriert auch wenn breiter als Viewport */
  transform-origin: top center;
}
.collage img {
  position: absolute;
  display: block;
}
.collage-p3 { height: 1240px; }
.scroll-arrow-collage {
  display: block;
  text-align: center;
  margin: 130px auto 0;
  padding-bottom: 40px;
}

/* ===== PAGE 4: WEB (absolute Monitor-Collage, 1:1 Muse) ===== */
.collage-p4 { height: 1660px; }

/* ===== PAGE 5: KUNDEN ===== */
.kunden-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: center;
}
.kunden-name {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0px;
  line-height: 24px;
  margin-bottom: 0;
  margin-top: 24px;
}
.kunden-name:first-child { margin-top: 0; }
.kunden-desc {
  color: #b1b1b1;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}
.kunden-desc em { font-style: italic; }

/* ===== PAGE 6: KONTAKT (einspaltig, Formular oben, 1:1 Muse) ===== */
.kontakt-wrap {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 70px 20px 90px;
}
.kontakt-col {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;        /* mittig statt nach rechts versetzt */
}

/* Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-field {
  position: relative;
  margin-bottom: 0;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: #707E8C;
  border: none;
  color: #ffffff;
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 28px 6px 6px 18px;
  outline: none;
  display: block;
}
#field-name input  { height: 61px; }
#field-email input { background: #ffffff; color: #404850; height: 66px; }
#field-email label { color: #404850; }
#field-message textarea {
  background: #707E8C;
  height: 263px;        /* um 50 % verkleinert */
  resize: none;
}
.form-field label {
  position: absolute;
  top: 9px;
  left: 18px;
  color: #e2e2e2;
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 1px;
  pointer-events: none;
  transition: opacity 0.2s;
}
.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field.has-value label {
  opacity: 0;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: transparent; }

.form-field input:focus,
.form-field textarea:focus {
  border: 1px solid #6b6b6b;
  background-color: #1b1b1b;
}
#field-email input:focus { background-color: #ffffff; color: #404850; }

#btn-senden {
  width: 100%;
  height: 101px;
  background: #e3b592;
  border: none;
  border-radius: 2px;
  color: #404850;
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 7px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0;
}
#btn-senden:hover { background: #686868; color: #a8a8a8; }

.form-status {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 3px;
  color: #999;
  text-align: center;
}
.form-status.form-error  { color: #dc4b38; }
.form-status.form-success { color: #fff; }
.form-status.visible { display: block; }

/* Contact info */
.info-block { margin-top: 34px; }
.info-block:first-of-type { margin-top: 48px; }
.info-label {
  color: #b1b1b1;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1.6;
}
.info-value {
  color: #e0e0e0;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1.5px;
  line-height: 1.7;
}
.info-value a { color: #e0e0e0; }
.info-value a:hover { color: #91bebd; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* ===== FIXED BOTTOM NAV (image tabs, 1:1 Muse) ===== */
#bottom-nav {
  position: fixed;
  bottom: 40px;
  right: 120px;              /* rechtsbündig (statt zentriert) */
  display: flex;
  align-items: flex-end;
  z-index: 1000;
}
.nav-btn {
  position: relative;
  width: 196px;
  height: 36px;
  margin-right: -26px;       /* Überlappung proportional zur Breite */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;   /* nur ein-/ausblenden, kein vertikales Wippen */
}
.nav-btn.dropped {
  opacity: 1;
  pointer-events: auto;
}
.nav-btn:last-child { margin-right: 0; }
.nav-btn img {
  position: absolute;
  inset: 0;
  width: 196px;
  height: 36px;
  z-index: 0;
}
.nav-btn span {
  position: relative;
  z-index: 1;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 13px;
  color: #ffffff;
}
.nav-btn { filter: brightness(0.8); }   /* nach unten gedockt → 80 % Helligkeit */
.nav-btn:hover { opacity: 0.85; }

/* Tab-Farben kommen aus den umgefärbten Bildern (tab-orange.png / tab-orange50.png),
   Originalform mit runden Ecken — funktioniert in allen Browsern. */
/* helle 50%-Tabs (REFERENZEN, KONTAKT) → dunkelgraue Schrift für Kontrast */
.nav-btn:nth-child(even) span,
.top-tab:nth-child(even) span { color: #3a3a3a; }

/* ===== ANGEDOCKTE KOPFZEILEN-TABS (pinnen beim Scrollen) ===== */
#top-nav {
  position: fixed;
  top: 80px;                 /* Tab-Unterkante bündig mit 116px-Kopfzeile */
  right: 120px;              /* rechtsbündig (statt zentriert) — kollidiert nicht mit dem Logo */
  display: flex;
  align-items: flex-start;
  z-index: 1100;
  pointer-events: none;
}
.top-tab {
  position: relative;
  width: 196px;
  height: 36px;
  margin-right: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;   /* nur ein-/ausblenden, kein vertikales Wippen */
  pointer-events: auto;
}
.top-tab:last-child { margin-right: 0; }
.top-tab.dropped {
  opacity: 0;
  pointer-events: none;
}
.top-tab img {
  position: absolute;
  inset: 0;
  width: 196px;
  height: 36px;
  z-index: 0;
}
.top-tab span {
  position: relative;
  z-index: 1;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 13px;
  color: #ffffff;
}
.top-tab:hover { opacity: 0.85; }

/* ===== FIXED FOOTER BAR ===== */
#footerbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 40px;                 /* Original: Tabs sitzen bündig auf der 40px-Fußleiste */
  background: #2E353C;
  border-top: 1px solid #707e8c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 120px;
  z-index: 1000;
}
#footer-copy {
  color: #b1b1b1;
  font-size: 17px;
  font-weight: 300;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.footer-right a {
  color: #b1b1b1;
  font-size: 17px;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-right a:hover { color: #e3b592; }

/* ===== RECHTSSEITEN (AGB / Datenschutz) ===== */
.topbar-back {
  color: #b1b1b1;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.topbar-back:hover { color: #E8722A; }
.stripe-legal { background: #E8722A; }
.legal-main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 60px 40px 120px;
}
.legal-title {
  color: #ccc;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 70px;
}
.legal-section { margin-bottom: 48px; }
.legal-section h2 {
  color: #E8722A;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.legal-main p {
  color: #b1b1b1;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-main p:last-child { margin-bottom: 0; }
.legal-main strong { color: #e0e0e0; font-weight: 400; }
.legal-main a { color: #E8722A; }
.legal-main a:hover { text-decoration: underline; }
.legal-main ul { list-style: none; margin: 8px 0 12px; }
.legal-main ul li {
  color: #b1b1b1;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
}
.legal-main ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 5px;
  height: 5px;
  background: #E8722A;
  border-radius: 50%;
}
.legal-kontaktbox {
  background: #505a64;
  border-left: 3px solid #E8722A;
  padding: 22px 28px;
  margin-bottom: 48px;
}
.legal-kontaktbox p { margin-bottom: 4px; }
#mail-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
#mail-icon img { width: 50px; height: 27px; object-fit: contain; }

/* ===== MAIL POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 40px;
  padding-right: 0;
}
.popup-overlay[hidden] { display: none; }
.popup-box {
  background: #404850;
  width: 313px;
  padding: 20px 0 0 0;
  position: relative;
  box-shadow: -4px 0 20px rgba(0,0,0,0.4);
}
.popup-close {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.popup-close img { width: 26px; height: 27px; }
.popup-box form {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
}
.popup-field input,
.popup-field textarea {
  width: 100%;
  background: #f67708;
  border: none;
  color: #fff;
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 6px 6px 10px;
  outline: none;
}
.popup-field:nth-child(2) input { background: #91bebd; }
.popup-field textarea {
  background: #78909e;
  height: 160px;
  resize: none;
}
.popup-field label {
  position: absolute;
  top: 8px;
  left: 10px;
  color: #fff;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  pointer-events: none;
}
.popup-field input:focus + label,
.popup-field textarea:focus + label,
.popup-field.has-value label { opacity: 0; }
.popup-field input::placeholder,
.popup-field textarea::placeholder { color: transparent; }
.popup-submit {
  width: 100%;
  background: #e3b592;
  border: none;
  color: #404850;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 7px;
  padding: 14px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.popup-submit:hover { background: #494949; color: #a8a8a8; }

/* ===== FIELD VALIDATION ===== */
.form-field.error input,
.form-field.error textarea {
  border: 1px solid #d7244c;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- bis 1100px: Seitenränder schmaler --- */
@media (max-width: 1100px) {
  #topbar, #footerbar { padding: 0 30px; }
  .container { padding: 50px 24px 70px; }
}

/* --- Tab-Navigation auf Hamburger umstellen: Grenze 1700px.
   16" (≈1728px) zeigt noch die vollen Tabs, ab 1700px abwärts Hamburger. --- */
@media (max-width: 1700px) {
  #top-nav, #bottom-nav { display: none; }
  #topbar-phone { display: none; }
  .nav-burger { display: flex; }
}

/* --- Tablet bis 820px --- */
@media (max-width: 820px) {
  .komp-header { grid-template-columns: 1fr; gap: 22px; margin: 60px 0 40px; }
  .komp-grid   { grid-template-columns: repeat(2, 1fr); }
  .kunden-grid { grid-template-columns: 1fr 1fr; }
  .covers-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  /* letztes Cover allein in einer Reihe → zentrieren */
  .covers-grid .cover:last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 4px);
  }
  .unimedica-img { max-width: 600px; margin: 0 auto 40px; }
  .info-grid   { grid-template-columns: 1fr; gap: 28px; }

  /* Referenzen-Titel höher, weniger Luft am Seitenanfang */
  #page2 .container { padding-top: 26px; }
  #page2 .ref-titel { margin-top: 10px; }

  /* Kontaktdaten 3 px kleiner */
  .info-label { font-size: 15px; }
  .info-value { font-size: 15px; }

  /* Kundenliste kompakt: nur Firmennamen, ohne Beschreibung & Ortsnamen */
  .kunden-desc { display: none; }
  .kunden-name .ort { display: none; }
  .kunden-name { margin-top: 14px; }

  /* Kopfzeile: Logo zentriert & größer, Hamburger zentriert darunter */
  #topbar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 132px;
    padding: 14px 18px;
    gap: 8px;
  }
  body { padding-top: 132px; }
  .swipe-bar { top: 132px; }   /* an 132px-Kopfzeile andocken */
  .topbar-logo { align-items: center; text-align: center; }
  .topbar-logo-name { font-size: 2.5rem; }
  .topbar-logo-tag  { font-size: .95rem; text-align: center; }
  .nav-burger { margin: 0; }

  /* Progress-Kreise kleiner */
  .progress-item {
    width: 210px; height: 250px; margin: 0 6px;
    background-size: 210px 158px;
  }
  .progress-ring  { width: 138px; height: 138px; top: calc(50% - 69px); left: calc(50% - 69px); }
  #page2 .progress-value { font-size: 24px; }
  .progress-label { font-size: 13px; letter-spacing: 3px; bottom: 18px; }

  #field-message textarea { height: 200px; }
}

/* --- Mobil bis 600px --- */
@media (max-width: 600px) {
  #topbar    { height: 116px; padding: 12px 18px; }
  #footerbar { padding: 0 18px; }
  body       { padding-top: 116px; }
  .swipe-bar { top: 116px; }   /* an 116px-Kopfzeile andocken */

  .topbar-logo-name { font-size: 2rem; letter-spacing: .12em; }
  .topbar-logo-tag  { font-size: .78rem; letter-spacing: .14em; }
  #topbar-phone     { font-size: 13px; }

  .container { padding: 40px 16px 56px; }

  .komp-grid   { grid-template-columns: 1fr; }
  .kunden-grid { grid-template-columns: 1fr; gap: 26px; }
  .covers-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .komp-title, .headline, .headline-accent, .subtitle { font-size: 26px; letter-spacing: 3px; }
  .headline-sub { font-size: 18px; letter-spacing: 3px; }
  .komp-intro, .body-text { font-size: 16px; }
  .section-title, .referenzen-haupt { font-size: 15px; letter-spacing: 3px; }
  .section-subtitle, .referenzen-sub { font-size: 18px; letter-spacing: 2px; }

  /* Referenzen-Titel: höher (weniger Luft oben) + Schrift +10 % */
  #page2 .container { padding-top: 18px; }
  #page2 .ref-titel { margin: 6px 0 28px; font-size: 29px; }

  /* Progress-Kreise: umbrechen statt verschachteln */
  .progress-grid { margin: 20px 0 36px; }
  .progress-row  { flex-wrap: wrap; gap: 10px; }
  .progress-row-2 { margin-top: 10px; }
  .progress-item {
    width: 150px; height: 195px; margin: 0;
    background-size: 150px 113px;
  }
  .progress-ring  { width: 100px; height: 100px; top: calc(50% - 50px); left: calc(50% - 50px); }
  #page2 .progress-value { font-size: 18px; }
  .progress-label { font-size: 11px; letter-spacing: 2px; bottom: 12px; }

  /* Hero: Höhe regelt das clamp (breitenabhängig flach) */
  .hero-arrow { margin: 16px auto 30px; }

  /* Footer kompakter */
  #footer-copy { font-size: 13px; }
  .footer-right { gap: 14px; }
  .footer-right a { font-size: 13px; }
  #mail-icon img { width: 38px; }

  /* Rechtsseiten */
  .legal-main  { padding: 40px 18px 90px; }
  .legal-title { font-size: 26px; letter-spacing: 3px; margin-bottom: 44px; }
  .topbar-back { font-size: 12px; }
}

/* --- sehr schmal bis 380px --- */
@media (max-width: 380px) {
  .covers-grid { grid-template-columns: 1fr; }
}

/* ===== SEITENÜBERGANG: nur der Inhaltsbereich wischt beim Laden horizontal herein —
   Kopf- und Fußzeile (position:fixed, außerhalb von .seiten-inhalt) bleiben am festen Ort ===== */
.seiten-inhalt {
  animation: seite-wisch-rein 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
  will-change: transform;            /* eigener GPU-Layer → flüssig, kein Ruckeln */
  backface-visibility: hidden;
}
@keyframes seite-wisch-rein {
  /* Gleichmäßiges, sichtbares Hereinwischen von rechts — gleitet durch und bremst sanft ab.
     KEIN front-geladenes ease-out-expo (das wirkt wie ein Sprung), KEIN Abprall. */
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(0); }
}
/* Rückwärts-Navigation: neue Seite wischt von LINKS herein (gleiche Kurve/Dauer) */
.seiten-inhalt.wisch-rein-links { animation-name: seite-wisch-rein-links; }
@keyframes seite-wisch-rein-links {
  0%   { transform: translateX(-100vw); }
  100% { transform: translateX(0); }
}
/* AUSGANG vor dem Navigieren — beschleunigt hinaus (kurz, damit der Wechsel flüssig wirkt) */
.seiten-inhalt.wisch-raus-links {
  animation: seite-wisch-raus-links 0.34s cubic-bezier(0.5, 0, 0.85, 0.35) forwards;
}
@keyframes seite-wisch-raus-links {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100vw); }
}
.seiten-inhalt.wisch-raus-rechts {
  animation: seite-wisch-raus-rechts 0.34s cubic-bezier(0.5, 0, 0.85, 0.35) forwards;
}
@keyframes seite-wisch-raus-rechts {
  0%   { transform: translateX(0); }
  100% { transform: translateX(100vw); }
}
@media (prefers-reduced-motion: reduce) {
  .seiten-inhalt,
  .seiten-inhalt.wisch-rein-links,
  .seiten-inhalt.wisch-raus-links,
  .seiten-inhalt.wisch-raus-rechts { animation: none; }
}

/* ===== SWIPE-HINWEIS (ersetzt die Maus-Icons) ===== */
.hero-arrow,
.scroll-arrow-down { width: auto; text-align: center; }
.swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.25s;
}
.swipe-pfeil {
  font-size: 1.6em;
  line-height: 1;
  letter-spacing: 0;
  animation: swipe-wink 1.4s ease-in-out infinite;
}
@keyframes swipe-wink {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(7px); }
}
a:hover .swipe-hint { color: #E8722A; }
/* auf der weißen Referenzen-Sektion dunkel */
#page2 .swipe-hint { color: #2E353C; }
#page2 a:hover .swipe-hint { color: #E8722A; }

/* ===== SWIPE-BAR oben unter der Kopfzeile (← SWIPE →) ===== */
.swipe-bar {
  position: fixed;            /* fest wie die Kopfzeile — außerhalb des wischenden Inhalts */
  top: 116px;                 /* direkt unter der 116px-Kopfzeile */
  left: 0; right: 0;
  z-index: 950;
  height: 44px;
  box-sizing: border-box;
  background: #E8722A;        /* SWIPE-Balken in Orange */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0 16px;
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #ffffff;
}
/* Inhalt um die feste SWIPE-Leiste nach unten versetzen */
.seiten-inhalt { padding-top: 44px; }
.swipe-bar a {
  font-size: 1.55em;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.swipe-bar a:hover { opacity: 0.7; }
.swipe-bar .swipe-nxt { animation: swipe-wink-r 1.6s ease-in-out infinite; }
.swipe-bar .swipe-pre { animation: swipe-wink-l 1.6s ease-in-out infinite; }
@keyframes swipe-wink-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes swipe-wink-l { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .swipe-pfeil { animation: none; }
  .swipe-bar a { animation: none; }
}

/* ===== PORTFOLIO-GALERIE ===== */
.portfolio-intro {
  color: #b1b1b1;
  text-align: center;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 4px auto 40px;
  max-width: 640px;
  line-height: 1.6;
}
.portfolio-cat {
  color: #E8722A; font-family: 'Raleway', system-ui, sans-serif; font-weight: 600;
  font-size: 15px; letter-spacing: 3px; text-transform: uppercase;
  text-align: center; margin: 50px 0 22px;
}
.mag-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin: 0 0 6px; }
.mag-card {
  width: 280px; background: #fff; border: 0; padding: 22px 20px 18px;
  cursor: pointer; border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mag-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(0,0,0,0.6); }
.mag-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 190px; }
.mag-thumb img { max-width: 100%; max-height: 190px; width: auto; height: auto; }
.mag-label {
  margin-top: 18px; font-family: 'Raleway', system-ui, sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #2E353C; line-height: 1.3;
}
.mag-label small {
  display: block; margin-top: 5px; font-weight: 400; font-size: 12px;
  letter-spacing: 1px; text-transform: none; color: #8a9099;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,23,27,0.94);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.lb-img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lb-cap { color: #cfd3d8; font-family: 'Raleway', system-ui, sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-top: 16px; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; z-index: 2010; background: none; border: 0; color: #fff; cursor: pointer;
  font-weight: 300; line-height: 1; opacity: 0.85; transition: opacity 0.2s, color 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; color: #E8722A; }
.lb-close { top: 20px; right: 28px; font-size: 46px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 70px; padding: 0 16px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
@media (max-width: 560px) { .lb-prev, .lb-next { font-size: 46px; } .lb-close { font-size: 38px; } }
