/* ==========================================================================
   PHYSTECH MB — Measurement & Benchmarking
   Gemeinsames Stylesheet für alle Seiten
   Farbwelt abgeleitet aus dem Banner: Graphit/Stahlblau, Kranbahn-Amber,
   Laser-Rot als sparsam gesetzter Akzent.
   ========================================================================== */

:root {
  /* --- Farben --- */
  --ink:        #06080a;   /* Rahmen-Schwarz des Banners */
  --graphite:   #0d1116;
  --steel:      #131920;
  --panel:      rgba(20, 26, 33, 0.72);
  --panel-2:    rgba(11, 15, 20, 0.82);
  --text:       #eef2f7;
  --muted:      #99a5b4;
  --muted-dim:  #6f7c8c;
  --amber:      #f2a83c;   /* Kranträger / Getriebekästen */
  --amber-soft: rgba(242, 168, 60, 0.16);
  --laser:      #e0402a;   /* Laserstrahl */
  --ember:      #b8722c;   /* warmer Schleier aus dem Bannerverlauf */
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.055);

  /* --- Typografie --- */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* --- Maße --- */
  --max: 1240px;
  --radius: 14px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.62;
  overflow-x: hidden;
  background-color: var(--ink);
  /* Dezenter Farbverlauf über die gesamte Seite */
  background-image:
    radial-gradient(1150px 640px at 14% -8%,  rgba(184, 114, 44, 0.20), transparent 64%),
    radial-gradient(900px 520px at 88% 6%,    rgba(242, 168, 60, 0.09), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(184, 114, 44, 0.10), transparent 62%),
    linear-gradient(180deg, #070605 0%, #100b07 32%, #0b0908 68%, #070605 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Feines Messraster, sehr zurückgenommen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 35%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black 30%, transparent 85%);
  opacity: 0.5;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------------- Typografie ---------------- */
h1, h2, h3, .brand, .step-num, .stat-num {
  font-family: var(--font-display);
  letter-spacing: 0.005em;
}
/* Lange deutsche Komposita dürfen umbrechen statt überzustehen */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

h3 {
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.lead { color: var(--muted); font-size: 1.06rem; }

/* ---------------- Header / Navigation ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 8, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 74px;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.brand {
  order: 1;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--muted-dim);
  letter-spacing: 0.14em;
  text-transform: none;
  margin-top: 0.1rem;
}

/* Vier-Panel-Marke: greift die Bildkomposition des Banners auf */
.mark { display: flex; gap: 3px; align-items: flex-end; flex-shrink: 0; }
.mark i { display: block; width: 5px; border-radius: 1px; background: var(--muted-dim); }
.mark i:nth-child(1) { height: 12px; }
.mark i:nth-child(2) { height: 18px; background: var(--amber); }
.mark i:nth-child(3) { height: 15px; }
.mark i:nth-child(4) { height: 20px; }

nav { order: 2; }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  color: var(--muted);
  font-size: 0.94rem;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--laser), var(--amber));
  transition: right 0.35s ease;
}
nav a:hover, nav a:focus-visible { color: var(--text); }
nav a:hover::after { right: 0; }
nav a.is-active { color: var(--text); }
nav a.is-active::after { right: 0; }

/* ---------------- Sprachumschalter (auf allen Seiten identisch platziert) --- */
.lang-switch {
  order: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s;
}
.lang-btn:hover { opacity: 1; transform: scale(1.08); }
.lang-btn.active {
  opacity: 1;
  border-color: rgba(242, 168, 60, 0.55);
  background: var(--amber-soft);
}

.nav-toggle {
  order: 2;
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

/* ---------------- Hero (Startseite) ---------------- */
.hero {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--line-soft);
}
/* Der Bildstreifen wird ungeschnitten gezeigt: gleiche Komposition wie das
   LinkedIn-Banner, dadurch hoher Wiedererkennungswert. */
.hero-strip { position: relative; overflow: hidden; }
.hero-strip img { width: 100%; height: auto; display: block; }
.hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,6,5,0.22) 0%, rgba(7,6,5,0) 14%, rgba(7,6,5,0) 84%, rgba(7,6,5,0.78) 100%);
}
/* Signatur: Laserlinie an der Unterkante des Banners */
.hero-strip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--laser) 20%, var(--amber) 55%, transparent 92%);
  opacity: 0.9;
}
.hero-inner {
  padding: 3.4rem 0 4.6rem;
  display: flex;
  align-items: center;
  gap: 2.6rem;
  flex-wrap: wrap;
}
.hero-box { flex: 1 1 32rem; }
.hero-seal { flex: 0 0 auto; }
.hero-seal img { width: clamp(150px, 15vw, 230px); height: auto; }
.hero-box { max-width: 52rem; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.03; }
.hero-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  color: var(--amber);
  margin-top: 0.6rem;
  letter-spacing: 0.01em;
}
.hero-name {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.4rem 0 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.hero p { color: #b9c3d0; font-size: 1.05rem; max-width: 44rem; margin-bottom: 1.8rem; }
.hero-meta { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------------- Banner-Band (Unterseiten) ---------------- */
.band {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  min-height: clamp(170px, 17vw, 250px);
}
.band-bg {
  position: absolute;
  inset: 0;
  background-image: url('band-strip.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
}
.band-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.92) 0%, rgba(7, 6, 5, 0.72) 42%, rgba(7, 6, 5, 0.5) 100%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.55) 0%, rgba(7, 6, 5, 0.2) 40%, rgba(7, 6, 5, 0.9) 100%);
}
.band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--laser) 20%, var(--amber) 52%, transparent 90%);
  opacity: 0.8;
  z-index: 2;
}
.band-inner { padding: 5.5rem 0 2.2rem; position: relative; z-index: 1; }
.band h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.band .lead { max-width: 44rem; margin-top: 0.6rem; }

/* ---------------- Sections ---------------- */
section { padding: 5rem 0; border-bottom: 1px solid var(--line-soft); position: relative; z-index: 1; }
section:last-of-type { border-bottom: none; }
.section-heading { margin-bottom: 2.2rem; max-width: 54rem; }
.section-heading p { color: var(--muted); margin-top: 0.6rem; }

/* ---------------- Karten ---------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
/* Signatur: der Laserstrahl fährt beim Hover über die Kartenkante */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--laser), var(--amber));
  transition: right 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover::before { right: 0; }
.card:hover { border-color: rgba(255, 255, 255, 0.17); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card ul { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.card li {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 1rem;
  position: relative;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--amber);
  opacity: 0.75;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 0.55rem;
}

/* Kennzahlen: absolute Werte sichtbar und maschinenlesbar */
.card.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-num {
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.stat-num.small { font-size: 1.42rem; letter-spacing: 0; }
.card.stat p { font-size: 0.92rem; }

.prose-note {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62rem;
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(242, 168, 60, 0.5);
}

/* Ablauf-Schritte (echte Reihenfolge, daher nummeriert) */
.steps { counter-reset: step; }
.step-num {
  font-size: 2rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  display: block;
  margin-bottom: 0.7rem;
}

/* Projektkarten mit Bild */
.project-card { display: flex; flex-direction: column; padding: 0; }
.project-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.project-photo.wide { aspect-ratio: 16 / 9; }
.project-body { padding: 1.4rem; }
.project-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.45rem;
}
.project-card h3 { margin-bottom: 0.9rem; }
.project-block { margin-top: 0.9rem; }
.project-card .project-block:first-of-type { margin-top: 0; }
.project-label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 0.25rem;
}
.project-block p { color: var(--muted); font-size: 0.95rem; }
.project-block.result p { color: #d3dae3; }
.project-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px),
    rgba(255, 255, 255, 0.015);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

/* Konkrete Anlagenbezeichnungen in den Anwendungsfeldern */
.machines {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}
.machines-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.85;
  margin-bottom: 0.4rem;
}
.machines p { font-size: 0.88rem; color: var(--muted-dim); line-height: 1.55; }

/* Referenz-Einträge */
.ref-body { display: grid; grid-template-columns: 1fr 260px; gap: 1.4rem; align-items: start; }
.ref-figure { margin: 0; }
.ref-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.ref-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-top: 0.5rem;
  line-height: 1.4;
}
@media (max-width: 900px) { .ref-body { grid-template-columns: 1fr; } .ref-figure { max-width: 320px; } }

.ref { display: grid; grid-template-columns: 190px 1fr; gap: 1.4rem; align-items: start; }
.ref-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  text-transform: uppercase;
  padding-top: 0.25rem;
}
.ref-meta strong { display: block; color: var(--amber); font-weight: 500; margin-bottom: 0.3rem; }
.note {
  color: var(--muted-dim);
  font-size: 0.88rem;
  border-left: 2px solid var(--amber);
  padding-left: 0.9rem;
  margin-top: 1.6rem;
}

/* Aufzählung mit Messmarke */
.point-list { list-style: none; display: grid; gap: 0.5rem; margin-top: 1.4rem; }
.point-list li { color: var(--muted); padding-left: 1rem; position: relative; font-size: 0.97rem; }
.point-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--amber);
  opacity: 0.75;
}

/* Profil */
.profile-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.profile-photo {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(0.95);
}

/* Kontaktbilder (E-Mail / Telefon bewusst nur als Grafik) */
.contact-image-wrap { margin: 0.7rem 0 0.8rem; width: 100%; }
.contact-image { width: min(100%, 520px); height: auto; border-radius: 10px; }
.contact-label {
  font-family: var(--font-mono);
  color: var(--muted-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}
.contact-value { font-size: 1.02rem; font-weight: 500; word-break: break-word; }
.contact-value a { border-bottom: 1px solid rgba(242, 168, 60, 0.45); }
.contact-value a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.phone-note { color: var(--muted-dim); font-size: 0.86rem; margin-top: 0.5rem; }
.phone-text { margin: 0.55rem 0 0.2rem; font-size: 1.18rem; letter-spacing: 0.01em; }
.phone-text a { border-bottom: 1px solid rgba(242, 168, 60, 0.45); }
.phone-text a:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* Zertifikats- und Verbandslogos */
.cert-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 1.6rem;
}
.cert-tile {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.9rem 1.2rem;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-tile img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 520px) {
  .cert-tile { height: 96px; flex: 1 1 auto; }
}

/* Buttons */
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.button.primary {
  background: linear-gradient(180deg, #f7b95a 0%, var(--amber) 100%);
  color: #171104;
  border-color: transparent;
}
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(242, 168, 60, 0.22); }
.button.secondary { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.button.secondary:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }

/* Abschluss-CTA */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(242, 168, 60, 0.10), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.5rem; max-width: 42rem; }

/* Fließtext-Blöcke */
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }

/* Footer */
footer { padding: 2.5rem 0 3.5rem; position: relative; z-index: 1; border-top: 1px solid var(--line-soft); }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted-dim);
  font-size: 0.9rem;
}
.small-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.small-links a:hover { color: var(--amber); }

/* Sanftes Einblenden beim Scrollen.
   Wichtig: Inhalte sind grundsätzlich sichtbar. Der Effekt wird nur zusätzlich
   abgespielt, wenn das Skript läuft — fehlt oder scheitert es, bleibt die Seite
   trotzdem vollständig lesbar. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.js-reveal .reveal { opacity: 0; }
.js-reveal .reveal.in { opacity: 1; animation: reveal-in 0.6s ease both; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { gap: 0.6rem; }
  .nav-toggle { display: inline-flex; order: 3; }
  /* Das Klappmenü öffnet direkt unter seiner Schaltfläche am rechten Rand */
  nav {
    display: none;
    position: absolute;
    top: calc(100% - 0.35rem);
    right: 0;
    z-index: 70;
    width: min(300px, 86vw);
    background: rgba(11, 14, 18, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.35rem 1.1rem;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 0; }
  nav li + li { border-top: 1px solid var(--line-soft); }
  nav a { display: block; padding: 0.7rem 0; width: 100%; }
  .brand { margin-right: auto; min-width: 0; }
  .lang-switch { order: 2; padding-left: 0.6rem; }
  .lang-btn { font-size: 1.02rem; padding: 3px 5px; }
}
@media (max-width: 760px) {
  /* Auf schmalen Displays den bildlichen Teil des Banners zeigen; der Slogan
     steht direkt darunter als Text und würde sonst angeschnitten. */
  .hero-strip img { height: 180px; object-fit: cover; object-position: left center; }
}
@media (max-width: 820px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .ref { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-inner { padding: 2.4rem 0 3.4rem; }
  section { padding: 3.8rem 0; }
  .cta-band { padding: 1.7rem; }
}
@media (max-width: 560px) {
  /* Kopfzeile kompakt halten, damit Marke, Sprachumschalter und Menütaste
     in einer Zeile bleiben */
  .brand { font-size: 0.92rem; letter-spacing: 0.1em; }
  .brand-text span { display: none; }
  .mark i { width: 4px; }
  .lang-switch { gap: 3px; padding-left: 0.5rem; }
  .lang-btn { font-size: 0.95rem; padding: 3px 4px; }
  .nav-toggle { padding: 0.4rem 0.55rem; }
}
@media (max-width: 520px) {
  .button { width: 100%; }
  .contact-image { width: 100%; }
  .profile-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  header, footer, .hero-bg, .band-bg, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
