/* ===== 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 {
  position: fixed;
  top: 24px;
  right: 120px;
  width: 1046px;            /* Breite des Tab-Clusters → Text zentriert darüber */
  text-align: center;
  color: #b1b1b1;
  font-size: 24px;          /* größer */
  letter-spacing: 3px;
  font-weight: 300;
  z-index: 1050;
}

/* ===== 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); }

/* ===== MORPHING-CIRCLE-MENÜ (responsive) ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,53,60,0.90);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  pointer-events: none;
  /* Kreis wächst aus der Burger-Position; Ursprung pro Breakpoint einstellbar */
  --circle-origin: calc(100% - 38px) 40px;
  clip-path: circle(0% at var(--circle-origin));
  -webkit-clip-path: circle(0% at var(--circle-origin));
  transition: clip-path 0.5s cubic-bezier(0.65,0,0.35,1),
              -webkit-clip-path 0.5s cubic-bezier(0.65,0,0.35,1);
}
.nav-overlay.open {
  pointer-events: auto;
  clip-path: circle(145% at var(--circle-origin));
  -webkit-clip-path: circle(145% at var(--circle-origin));
  transition: clip-path 0.6s cubic-bezier(0.22,1,0.36,1),
              -webkit-clip-path 0.6s cubic-bezier(0.22,1,0.36,1);
}

/* Menüpunkte: gestaffelt einblenden, wenn der Kreis offen ist */
.nav-overlay > * {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.nav-overlay.open > * { opacity: 1; transform: none; }
.nav-overlay.open > *:nth-child(1) { transition-delay: 0.20s; }
.nav-overlay.open > *:nth-child(2) { transition-delay: 0.27s; }
.nav-overlay.open > *:nth-child(3) { transition-delay: 0.34s; }
.nav-overlay.open > *:nth-child(4) { transition-delay: 0.41s; }
.nav-overlay.open > *:nth-child(5) { transition-delay: 0.46s; }
.nav-overlay.open > *:nth-child(6) { transition-delay: 0.51s; }
.nav-overlay.open > *:nth-child(7) { transition-delay: 0.56s; }
@media (prefers-reduced-motion: reduce) {
  .nav-overlay, .nav-overlay.open { clip-path: none; -webkit-clip-path: none; transition: opacity 0.25s; opacity: 0; }
  .nav-overlay.open { opacity: 1; }
  .nav-overlay > *, .nav-overlay.open > * { transition: none; transform: none; transition-delay: 0s; }
}
.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;
}
/* Neustart-Schalter (per JS bei bfcache-Rückkehr / Tab-Sichtbarkeit gesetzt):
   deaktiviert kurz ALLE Film-Animationen, damit sie beim Entfernen der Klasse
   synchron bei 0 neu starten statt in einem eingefrorenen Zwischen-Frame zu bleiben. */
#imagefilm.film-restart,
#imagefilm.film-restart * {
  animation: none !important;
}

/* ===== IMAGE-FILM (Startseite): 6 Szenen als Endlos-Loop, reine CSS-Animation =====
   Zyklus 25s, jede Szene ~4,17s sichtbar (16,7 %) */
#imagefilm {
  position: relative;
  width: 100%;
  height: clamp(380px, 56vw, 860px);
  overflow: hidden;
  background: #2E353C;
}
.film-szene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 48px;
  opacity: 0;
  animation: film-fade 25s infinite;
}
.film-s1 { animation-delay: 0s; }
.film-s2 { animation-delay: 4.17s; }
.film-s3 { animation-delay: 8.33s; }
.film-s4 { animation-delay: 12.5s; }
.film-s5 { animation-delay: 16.67s; }
.film-s6 { animation-delay: 20.83s; }
@keyframes film-fade {
  0%    { opacity: 0; }
  2.8%  { opacity: 1; }
  13.9% { opacity: 1; }
  16.7% { opacity: 0; }
  100%  { opacity: 0; }
}
.film-szene img {
  max-width: min(84%, 1100px);
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: film-zoom 25s infinite;
  animation-delay: inherit;
}
/* Portfolio-Seiten als "Karten" auf dunklem Grund */
.film-page {
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
/* Ken-Burns: sehr langsamer Zoom, solange die Szene sichtbar ist */
@keyframes film-zoom {
  0%    { transform: scale(1); }
  16.7% { transform: scale(1.06); }
  100%  { transform: scale(1.06); }
}
/* Logo-Szene: Buchstaben fliegen aus allen Richtungen zusammen (Kino-Vorspann),
   danach oranger Glow-Puls; Unterzeile fliegt von rechts nach */
.film-titel {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: clamp(46px, 7vw, 108px);
  font-weight: 400;
  letter-spacing: .18em;
  color: #E8722A;
  line-height: 1;
  text-align: center;
  animation: film-glow 25s infinite;
}
/* Wort-Gruppen: Umbruch nur ZWISCHEN den Wörtern, nie mitten im Wort */
.film-titel .fl-wort {
  display: inline-flex;
  white-space: nowrap;
}
.film-titel .fl {
  display: inline-block;
  opacity: 0;
  animation: film-letter 25s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, filter;
}
@keyframes film-letter {
  0%    { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0deg)) scale(2.4); filter: blur(12px); }
  2.6%  { opacity: 1; transform: none; filter: blur(0); }
  100%  { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes film-glow {
  0%, 4.6% { text-shadow: none; }
  5.6%     { text-shadow: 0 0 46px rgba(232,114,42,0.9), 0 0 12px rgba(232,114,42,0.6); }
  7.2%     { text-shadow: 0 0 18px rgba(232,114,42,0.25); }
  100%     { text-shadow: 0 0 18px rgba(232,114,42,0.25); }
}
.film-sub {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: clamp(15px, 1.8vw, 26px);
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: lowercase;
  color: #C2BFB8;
  text-align: center;
  animation: film-flug-rechts 25s infinite;
}
@keyframes film-flug-rechts {
  0%    { transform: translateX(70vw); opacity: 0; }
  2.8%  { transform: translateX(70vw); opacity: 0; }
  5.6%  { transform: translateX(-1.2vw); opacity: 1; }
  6.4%  { transform: translateX(0); }
  100%  { transform: translateX(0); opacity: 1; }
}
/* Abspann-Claim: gleicher Schrifttyp wie die Caption darunter (Raleway, Versalien),
   nur größer — mit Schreibmaschineneffekt, der in jedem Film-Durchlauf neu tippt */
.film-claim {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: clamp(26px, 5vw, 100px);   /* max ≈ 75pt */
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #cfd3d8;
  line-height: 1.4;
  text-align: center;
  max-width: none;
}
.film-claim em { font-style: normal; color: #E8722A; font-weight: 500; }
.film-type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 0;
}
/* Tippen synchron zum 25s-Zyklus (Szene 6 beginnt bei 20.83s) */
.film-type1 { animation: film-type1 25s steps(26) infinite 20.83s; }
.film-type2 { animation: film-type2 25s steps(12) infinite 20.83s; }
@keyframes film-type1 {
  0%, 1%   { max-width: 0; }
  6%       { max-width: 30ch; }
  100%     { max-width: 30ch; }
}
@keyframes film-type2 {
  0%, 6%   { max-width: 0; }
  9%       { max-width: 14ch; }
  100%     { max-width: 14ch; }
}
.film-caption {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #cfd3d8;
  text-align: center;
}
.film-caption strong { color: #E8722A; font-weight: 500; }
/* Fortschritts-Punkte unten */
.film-dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.film-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  animation: film-dot 25s infinite;
}
.film-dots span:nth-child(1) { animation-delay: 0s; }
.film-dots span:nth-child(2) { animation-delay: 4.17s; }
.film-dots span:nth-child(3) { animation-delay: 8.33s; }
.film-dots span:nth-child(4) { animation-delay: 12.5s; }
.film-dots span:nth-child(5) { animation-delay: 16.67s; }
.film-dots span:nth-child(6) { animation-delay: 20.83s; }
@keyframes film-dot {
  0%, 16.7%   { background: #E8722A; }
  17%, 100%   { background: rgba(255,255,255,0.25); }
}
@media (prefers-reduced-motion: reduce) {
  .film-szene, .film-szene img, .film-dots span,
  .film-titel, .film-titel .fl, .film-sub, .film-type { animation: none; }
  .film-s1 { opacity: 1; }   /* nur die erste Szene, statisch */
  .film-titel, .film-titel .fl, .film-sub { opacity: 1; transform: none; }
  .film-type { max-width: none; }
}
/* Abspann-Claim: 3-zeilige Variante nur für Mobile (Desktop bleibt 2-zeilig) */
.film-claim-mobile { display: none; }
.film-type-m1 { animation: film-type-m1 25s steps(16) infinite 20.83s; }
.film-type-m2 { animation: film-type-m2 25s steps(13) infinite 20.83s; }
.film-type-m3 { animation: film-type-m3 25s steps(15) infinite 20.83s; }
/* Großzügige max-width (weit über dem tatsächlichen Textbedarf) — Versalien +
   Letter-Spacing machen "ch"-Schätzungen unzuverlässig; lieber zu breit als
   abgeschnitten. Der Text füllt die Box nur bis zu seiner echten Breite. */
@keyframes film-type-m1 {
  0%, 1%   { max-width: 0; }
  4%       { max-width: 32ch; }
  100%     { max-width: 32ch; }
}
@keyframes film-type-m2 {
  0%, 4%   { max-width: 0; }
  7%       { max-width: 28ch; }
  100%     { max-width: 28ch; }
}
@keyframes film-type-m3 {
  0%, 7%   { max-width: 0; }
  10%      { max-width: 30ch; }
  100%     { max-width: 30ch; }
}

@media (max-width: 600px) {
  .film-szene { padding: 24px 16px; gap: 16px; }
  .film-szene img { max-width: 90%; }
  .film-claim-desktop { display: none; }
  .film-claim-mobile { display: block; }
}

.hero-tagline {
  padding: 56px 40px 0;
  background: #404850;
  color: #b1b1b1;
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.8;
}
.hero-tagline strong { color: #E8722A; font-weight: 500; }
@media (max-width: 600px) {
  .hero-tagline { padding: 20px 18px 0; font-size: 16px; }
}
.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,
.seo-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #ccc;
  line-height: 1.2;
}
.leistungen-grid {
  column-count: 2;
  column-gap: 32px;
}
.leistungen-grid li { break-inside: avoid; }
@media (max-width: 700px) {
  .leistungen-grid { column-count: 1; }
}

/* Portfolio-Teaser (Startseite, direkt unter dem SWIPE-Balken) —
   eigene Container-Breite wie die Portfolio-Seite (nicht die schmalere .seo-content-Breite) */
.portfolio-teaser { padding-top: 14px; padding-bottom: 46px; }
.portfolio-teaser.seo-content .container { max-width: 1440px; }
.portfolio-teaser-grid { margin-bottom: 32px; }
.seo-content .portfolio-teaser-link {
  max-width: none;    /* überschreibt die 860px-Breite von .seo-content p */
  margin: 0 auto;      /* zentriert den Absatz selbst im breiten Container */
  text-align: center;
}
.portfolio-teaser-link .portfolio-teaser-btn {
  display: inline-block;
  background: #E8722A;
  color: #ffffff;               /* höhere Spezifität nötig, sonst gewinnt .seo-content a (orange) */
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 18px 48px;
  border-radius: 999px;
  transition: background 0.2s;
}
.portfolio-teaser-link .portfolio-teaser-btn:hover { background: #d0651f; text-decoration: none; }
@media (max-width: 600px) {
  .portfolio-teaser-btn { padding: 15px 32px; font-size: 15px; }
}

.seo-content h1 { font-size: 34px; margin: 0 0 24px; }
.seo-content h2 { font-size: 26px; margin: 40px 0 16px; }
.seo-content h3 { font-size: 21px; margin: 34px 0 12px; }
.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 0; line-height: 0; }
.porsche-img {
  display: inline-block;
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 1202 / 561;   /* Platz reservieren → kein vertikaler Sprung beim Laden (transparenter Bildrand entfernt) */
}

/* Magazine covers — Raster, 3 pro Reihe, vergrößert */
.covers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.cover {
  width: 100%;
  aspect-ratio: 244 / 205;    /* etwas höher */
  object-fit: cover;          /* füllt die Kachel (transparenter Rand der Bilder wird weggeschnitten) */
  object-position: center;
  transform: rotate(-3deg) scale(1.075);
  transition: transform 0.3s;
}
.cover:hover { transform: rotate(0deg) scale(1.12); }
.cover-caption {
  margin-top: 14px;
  color: #9aa3ab;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.5;
  text-align: center;
}

/* 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; }

/* ===== SPAMSCHUTZ: Honeypot (unsichtbar) + Mensch-Häkchen ===== */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.human-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #cfd3d8;
  cursor: pointer;
  user-select: none;
}
.human-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: #E8722A;
  cursor: pointer;
}
.human-check.error { color: #e06a4f; }
.human-check.error input[type="checkbox"] { outline: 2px solid #e06a4f; outline-offset: 2px; }

.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;
  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;
}
.seo-breadcrumb {
  font-size: 13px;
  color: #8a929a;
  letter-spacing: 0.3px;
  text-align: center;
  margin-bottom: 18px;
}
.seo-breadcrumb a { color: #8a929a; }
.seo-breadcrumb a:hover { color: #E8722A; }
.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-main .seo-related-links li {
  padding-left: 0;             /* kein Platz für den Listenpunkt reservieren */
}
.legal-main .seo-related-links li::before {
  content: none;               /* "Weitere Themen" nutzt Slash-Trennung statt Punkte */
}
.legal-kontaktbox {
  background: #505a64;
  border-left: 3px solid #E8722A;
  padding: 22px 28px;
  margin-bottom: 48px;
}
.legal-kontaktbox p { margin-bottom: 4px; }

/* FAQ-Block (SEO-Seiten) */
.faq-item { margin-bottom: 22px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 {
  color: #e0e0e0;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Themen-Verlinkung am Seitenende (SEO-Seiten) */
.seo-related {
  border-top: 1px solid #505a64;
  padding-top: 28px;
  margin-top: 8px;
}
.seo-related h2 {
  color: #E8722A;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.seo-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  list-style: none;
}
.seo-related-links li { font-size: 14px; }
.seo-related-links li:not(:last-child)::after {
  content: " /";
  margin: 0 10px;
  color: #6b7379;
}
.seo-related-links a { color: #b1b1b1; letter-spacing: 0.3px; }
.seo-related-links a:hover { color: #E8722A; text-decoration: none; }
#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; }
  #topbar { z-index: 1400; }   /* über dem Menü-Overlay (1200), damit Burger/X klickbar bleibt */
  /* Hamburger sitzt rechts im SWIPE-Balken */
  .nav-burger {
    display: flex;
    position: fixed;
    top: 118px;                /* vertikal im 44px-Balken zentriert */
    right: 16px;
    margin: 0;
    z-index: 1100;             /* (im Kopfzeilen-Kontext z-index:1400 → über dem Balken) */
  }
  .nav-burger span { background: #ffffff; }   /* weiß auf orangem Balken */
  .nav-overlay { --circle-origin: calc(100% - 34px) 138px; }
}

/* --- 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-item: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 — Höhe bleibt 116px (Hamburger sitzt im SWIPE-Balken) */
  #topbar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 116px;
    padding: 10px 18px;
    gap: 4px;
  }
  /* body padding-top / .swipe-bar top / .nav-burger top bleiben bei 116px (Basiswert) → kein Höhensprung am Übergang */
  .topbar-logo { align-items: center; text-align: center; }
  .topbar-logo-name { font-size: 3.1rem; }
  .topbar-logo-tag  { font-size: 1.08rem; text-align: center; }

  /* 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 */
  .nav-burger { top: 118px; }                   /* Balken bei 116px */
  .nav-overlay { --circle-origin: calc(100% - 34px) 138px; }

  .topbar-logo-name { font-size: 2.5rem; letter-spacing: .12em; }
  .topbar-logo-tag  { font-size: .92rem; 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;
  /* Kein dauerhaftes will-change/backface mehr: das hatte den Inhalt auf eine
     bleibende GPU-Ebene gehoben, die sich über den festen SWIPE-Balken legte.
     Die Wisch-Animation holt sich ihre Ebene während des Ablaufs ohnehin selbst. */
}
@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: 1050;             /* über dem Inhalt → Inhalt schiebt sich sauber dahinter */
  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; } }
