/* =============================================
   MICON KG — style.css
   Industrielles Redesign: Stahl-Dunkeltöne, Signalrot,
   Barlow Condensed für Headlines, JetBrains Mono für Maße.
   ============================================= */

/* --- ROOT VARIABLES --- */
:root {
  --bg:        #0d0e10;   /* Seitenhintergrund — kühler Stahlton */
  --bg-2:      #121316;
  --bg-3:      #17181c;
  --bg-4:      #1d1f24;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --red:       #d22618;
  --red-deep:  #a81c10;
  --white:     #f4f4f2;
  --text:      rgba(244, 244, 242, 0.66);
  --text-dim:  rgba(244, 244, 242, 0.42);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:     1240px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); background: var(--bg); color: var(--white); line-height: 1.65; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button, input, textarea, select { font-family: var(--font); }
button { cursor: pointer; border: none; background: none; }

::selection { background: var(--red); color: var(--white); }

/* --- CONTAINER --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- UTILITIES --- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--red);
}

/* Passmarken-Ecken (technische Zeichnung) */
.corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--red);
  z-index: 3;
  pointer-events: none;
}
.corner--tl { top: -1px; left: -1px;  border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -1px; left: -1px;  border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease),
              border-color 0.2s var(--ease),
              color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.22s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.btn--full { width: 100%; }

/* =============================================
   SECTION COMMONS
   ============================================= */
.section { padding: 110px 0; }

.section__header {
  max-width: 680px;
  margin-bottom: 72px;
}

.section__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.section__label .mono { font-size: 0.75rem; }
.section__label::after {
  content: '';
  flex: 0 0 36px;
  height: 1px;
  background: var(--line);
  align-self: center;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.section__subtitle {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 560px;
}

/* --- SCROLL FADE-IN --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  background: #08090a;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.75rem;
  position: relative;
  z-index: 1001;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 38px;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.18s;
}
.topbar__item svg { width: 12px; height: 12px; color: var(--red); flex-shrink: 0; }
a.topbar__item:hover { color: var(--white); }
.topbar__item--muted { color: rgba(244,244,242,0.3); }

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 14, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease);
}
.header.scrolled {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
  display: flex;
  flex-direction: column;
}
.logo-text > .logo-accent { display: inline; }
.logo-accent { color: var(--red); }

.logo-sub {
  font-family: var(--font);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Inline-Variante: MICON + KG in einer Zeile */
.logo-text { display: block; }
.logo-sub  { display: block; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  position: relative;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.18s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__link--cta {
  background: var(--red);
  color: var(--white) !important;
  margin-left: 14px;
  padding: 11px 24px;
  transition: background 0.2s;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--red-deep); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.28s var(--ease), opacity 0.18s;
  transform-origin: center;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav__overlay.open { opacity: 1; pointer-events: all; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

/* Großflächiges Hintergrundbild rechts, läuft weich ins Dunkle aus */
.hero__media {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 88%: holt den Funkenflug in den sichtbaren Bereich */
  object-position: center 88%;
  /* Das Motiv ist von sich aus dunkel — 0.6 wuerde die Funken absaufen lassen.
     0.88 ist die Obergrenze, bevor das Bild sich vom dunklen Seitenlook loest. */
  filter: brightness(0.88) saturate(0.9);
}

/* Verlauf: Bild links in den Seitenhintergrund einblenden */
.hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    rgba(13, 14, 16, 0.86) 16%,
    rgba(13, 14, 16, 0.38) 46%,
    transparent 72%
  );
  z-index: 1;
}

/* Vignette unten */
.hero__media::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 1;
}

/* Feines Konstruktionsraster */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}
.hero__grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 20% 40%,
    rgba(210, 38, 24, 0.07) 0%, transparent 65%);
}

.hero__layout {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 110px;
}

.hero__content { max-width: 680px; }

.hero__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.hero__label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.25rem, 6.4vw, 5.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 30px;
}
.hero__title em {
  font-style: normal;
  color: var(--red);
}

.hero__subtitle {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  color: var(--text);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   LEISTUNGEN
   ============================================= */
.leistungen { background: var(--bg-2); }

.leistungen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  border-color: rgba(210, 38, 24, 0.5);
  transform: translateY(-5px);
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 2px solid var(--red);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px 28px 32px;
}

.card__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 13px;
}

.card__text {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 24px;
  flex: 1;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.card__list li {
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding: 9px 0 9px 16px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.card__list li:last-child { border-bottom: none; }
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 2px;
  background: var(--red);
}

/* =============================================
   MASCHINENPARK
   ============================================= */
.maschinenpark { background: var(--bg); }

.maschinenpark__layout {
  display: flex;
  flex-direction: column;
}

.masch-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
  border-top: 1px solid var(--line-soft);
}
.masch-row:first-child { border-top: none; padding-top: 0; }
.masch-row:last-child  { padding-bottom: 0; }

.masch-row__img {
  position: relative;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--bg-2);
}
.masch-row__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85);
  display: block;
}

.masch-gruppe__title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.masch-gruppe__icon {
  width: 17px; height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.masch-gruppe__icon svg { width: 100%; height: 100%; }

/* Tabelle */
.masch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.masch-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.masch-table th {
  padding: 10px 12px 10px 0;
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  white-space: nowrap;
}
.masch-table th:not(:first-child) { text-align: right; }

.masch-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.masch-table tbody tr:last-child { border-bottom: none; }
.masch-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.masch-table td {
  padding: 14px 12px 14px 0;
  vertical-align: middle;
  color: var(--text);
}

.masch-table td.masch-name {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.masch-table td.num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: right;
  color: var(--text);
  white-space: nowrap;
  padding-right: 20px;
  font-variant-numeric: tabular-nums;
}

.masch-table td.note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: right;
}

.masch-hinweis {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding: 10px 0 10px 14px;
  border-left: 2px solid var(--red);
  line-height: 1.65;
}

/* =============================================
   ÜBER UNS
   ============================================= */
.ueber-uns { background: var(--bg-2); }

.ueber-uns__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.ueber-uns__visual {
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--bg-3);
}
.ueber-uns__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}
.ueber-uns__content .section__label { margin-bottom: 16px; }
.ueber-uns__content .section__title { margin-bottom: 24px; }

.ueber-uns__text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 18px;
}
.ueber-uns__text strong {
  color: var(--white);
  font-weight: 600;
}

.werte-liste {
  display: flex;
  flex-direction: column;
  margin: 30px 0 38px;
  border-top: 1px solid var(--line-soft);
}

.wert {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  color: rgba(244, 244, 242, 0.8);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.wert__check {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border: 1.5px solid var(--red);
  position: relative;
}
.wert__check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-46%, -60%) rotate(45deg);
  width: 4px; height: 8px;
  border-right: 1.5px solid var(--red);
  border-bottom: 1.5px solid var(--red);
}

/* =============================================
   KONTAKT
   ============================================= */
.kontakt {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.kontakt__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

/* Formular */
.kontakt__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form__group input,
.form__group textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 13px 15px;
  color: var(--white);
  font-size: 0.9rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  resize: vertical;
  border-radius: 0;
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(244, 244, 242, 0.2);
}
.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(210, 38, 24, 0.14);
}
.form__group input.error,
.form__group textarea.error { border-color: #e53e3e; }

.form__group--check label {
  text-transform: none;
  letter-spacing: 0;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.check-label a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__success {
  display: none;
  padding: 14px 18px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Fehlermeldung, wenn der Versand nicht geklappt hat */
.form__error {
  display: none;
  margin-top: 12px;
  padding: 14px 18px;
  background: rgba(210, 38, 24, 0.08);
  border: 1px solid rgba(210, 38, 24, 0.35);
  color: #f0887c;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Honigtopf gegen Spam-Bots: aus dem Blickfeld, aber nicht display:none,
   damit einfache Bots das Feld trotzdem finden und ausfuellen. */
.hp-feld {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Kontakt-Sidebar */
.kontakt__info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-left: 1px solid var(--line-soft);
  padding-left: 40px;
}

/* Team */
.team-liste h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.team-person {
  display: flex;
  flex-direction: column;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.team-person:last-child { border-bottom: none; }

.team-person__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.team-person__role {
  font-size: 0.7813rem;
  color: var(--text-dim);
}

.team-person__mail {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.team-person__mail:hover,
.team-person__mail:focus-visible { color: var(--red); }

/* Kontaktdetails */
.kontakt__details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.kontakt__detail {
  display: flex;
  gap: 14px;
}

.kontakt__detail-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--red);
  margin-top: 2px;
}
.kontakt__detail-icon svg { width: 100%; height: 100%; }

.kontakt__detail strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.kontakt__detail p,
.kontakt__detail a {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.7;
}
.kontakt__detail a:hover { color: var(--white); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #08090a;
  border-top: 1px solid var(--line-soft);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-soft);
}

.footer__brand .nav__logo { margin-bottom: 18px; }
.footer__brand .logo-text { font-size: 1.375rem; }
.footer__brand p {
  font-size: 0.8438rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer__col ul li {
  margin-bottom: 10px;
  font-size: 0.8438rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer__col ul a {
  font-size: 0.8438rem;
  color: var(--text);
  transition: color 0.18s;
}
.footer__col ul a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.footer__bottom p {
  font-size: 0.7813rem;
  color: rgba(244, 244, 242, 0.25);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: border-color 0.18s, color 0.18s;
}
.footer__top svg { width: 15px; height: 15px; }
.footer__top:hover { border-color: var(--red); color: var(--white); }

/* =============================================
   RESPONSIVE — TABLET ≤ 1080px
   ============================================= */
@media (max-width: 1080px) {
  .hero__media { width: 70%; }

  .masch-row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 0;
  }
  .masch-row__img img { aspect-ratio: 16 / 7; }

  .ueber-uns__grid { gap: 56px; }
  .kontakt__grid   { grid-template-columns: 1fr; gap: 56px; }
  .kontakt__info   { border-left: none; padding-left: 0; max-width: 560px; }
}

@media (max-width: 960px) {
  .leistungen__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .topbar__item--muted { display: none; }
}

/* =============================================
   RESPONSIVE — MOBILE ≤ 768px
   ============================================= */
@media (max-width: 768px) {
  .section { padding: 76px 0; }

  .topbar { display: none; }

  /* Nav */
  .nav { height: 66px; }
  .nav__toggle { display: flex; }
  .logo-sub { display: none; }

  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: 290px;
    height: 100vh;
    background: var(--bg-2);
    border-left: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 30px 40px;
    gap: 0;
    z-index: 999;
    transition: right 0.32s var(--ease);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
  }
  .nav__menu.open { right: 0; }
  .nav__menu li { width: 100%; }

  .nav__link {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
  }
  .nav__link::after { display: none; }
  .nav__link--cta {
    width: auto;
    display: inline-block;
    margin: 24px 0 0;
    padding: 12px 26px;
    border-bottom: none;
  }

  /* Hero */
  .hero { min-height: auto; }
  .hero__layout { padding-top: 80px; padding-bottom: 80px; }
  .hero__media { width: 100%; opacity: 0.25; }
  .hero__media::before {
    background: linear-gradient(to bottom,
      var(--bg) 0%,
      rgba(13, 14, 16, 0.4) 40%,
      var(--bg) 100%
    );
  }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* Sektionen */
  .ueber-uns__grid { grid-template-columns: 1fr; gap: 44px; }
  .form__row { grid-template-columns: 1fr; }

  .masch-table td.note { display: none; }
  .masch-table th:last-child { display: none; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 14px; }
}

/* =============================================
   RESPONSIVE — SMALL ≤ 480px
   ============================================= */
@media (max-width: 480px) {
  .container { padding: 0 22px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* =============================================
   RECHTSTEXTE — Impressum & Datenschutz
   ============================================= */

.rechts-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  z-index: 50;
}
.rechts-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* nur oben/unten setzen, damit die 32px Seitenrand aus .container bleiben */
  padding-top: 18px;
  padding-bottom: 18px;
}
.rechts-zurueck {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 16px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.rechts-zurueck:hover { color: var(--white); border-color: var(--red); }

.rechtstext {
  max-width: 820px;
  /* nur oben/unten setzen, damit die 32px Seitenrand aus .container bleiben */
  padding-top: 72px;
  padding-bottom: 96px;
}
.rechtstext h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 14px;
}
.rechtstext__stand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.rechtstext h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
}
.rechtstext h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 28px 0 10px;
}
.rechtstext p,
.rechtstext li {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.75;
}
.rechtstext p { margin-bottom: 14px; }
.rechtstext ul { margin: 0 0 18px 20px; }
.rechtstext li { margin-bottom: 7px; }
.rechtstext a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.rechtstext a:hover { color: var(--red); }
.rechtstext strong { color: var(--white); font-weight: 600; }

.rechts-block {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 24px 28px;
  margin-bottom: 18px;
}
.rechts-block p:last-child { margin-bottom: 0; }

/* Noch einzutragende Angaben — faellt absichtlich ins Auge */
.platzhalter {
  display: inline-block;
  background: rgba(210, 38, 24, 0.16);
  border: 1px dashed var(--red);
  color: #f0887c;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 1px 8px;
}

@media (max-width: 640px) {
  .rechtstext { padding-top: 48px; padding-bottom: 64px; }
  .rechts-block { padding: 20px; }
}
