/* ==========================================================================
   Beckendorf GmbH — Stylesheet
   ========================================================================== */

:root {
  --orange-700: #b8631e;
  --orange-600: #d97527;
  --orange-500: #e3823b;
  --orange-400: #ec9b5c;
  --orange-100: #fbe6d3;
  --orange-50: #fdf3e9;
  --ink: #1a1a1a;
  --ink-soft: #514f4a;
  --ink-faint: #85817a;
  --white: #ffffff;
  --paper: #faf8f5;
  --border: #e8e2d8;
  --shadow-sm: 0 2px 10px rgba(26, 26, 26, .08);
  --shadow-md: 0 16px 40px rgba(26, 26, 26, .16);
  --shadow-orange: 0 18px 40px rgba(227, 130, 59, .35);
  --radius: 14px;
  --radius-sm: 9px;
  --font-head: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange-600);
  color: var(--white);
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange-600); color: var(--white); }
.btn-primary:hover { background: var(--orange-700); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.65); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.site-header {
  width: 100%;
  max-width: 1200px;
  background: rgba(26, 26, 26, .92);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
  padding: 0 14px 0 22px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { height: 48px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--white); letter-spacing: -.01em; }
.brand-text small { display: block; font-weight: 500; font-size: .62rem; color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.78); transition: color .15s ease; position: relative; white-space: nowrap; }
.main-nav a:hover { color: var(--orange-400); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--white); font-size: .95rem; }
.header-phone svg { color: var(--orange-400); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--white); margin: 0 auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 0 24px 24px; }
.hero-inner {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--ink); border-radius: 28px;
  max-width: 1400px; margin: 108px auto 0;
  display: flex; align-items: stretch; min-height: 560px;
}
.hero-content { position: relative; z-index: 1; flex: 1 1 52%; padding: 56px 50px; display: flex; flex-direction: column; justify-content: center; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.3) 10%, rgba(0,0,0,.65) 30%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.3) 10%, rgba(0,0,0,.65) 30%, #000 55%);
}
.hero-media-fade { display: none; }
.hero-eyebrow {
  display: block; color: var(--orange-400); font-weight: 800; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .4em; max-width: 560px; }
.hero-lead { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem; }
.hero-trust svg { color: var(--orange-500); flex-shrink: 0; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-eyebrow { color: var(--orange-600); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 700px; }
.section-lead { font-size: 1.08rem; max-width: 640px; margin-bottom: 20px; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-title { margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.section-dark p, .section-dark .section-lead { color: rgba(255,255,255,.78); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* ===== Service cards (overview) ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  display: block; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-orange); }
.service-card-media { aspect-ratio: 4/3; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-body { padding: 24px 24px 26px; }
.service-card-body h3 { font-size: 1.2rem; margin-bottom: .4em; }
.service-card-body p { margin-bottom: 14px; font-size: .95rem; }
.service-card-link { color: var(--orange-600); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ===== Detail blocks ===== */
.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 46px 0; border-top: 1px solid var(--border); }
.detail-block:first-of-type { border-top: none; padding-top: 0; }
.detail-block:nth-of-type(even) .detail-media { order: 2; }
.detail-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.detail-body .tag { display: inline-block; background: var(--orange-100); color: var(--orange-700); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px; }
.detail-body h3 { font-size: 1.55rem; }
.detail-list { display: grid; gap: 10px; margin-top: 18px; }
.detail-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .96rem; color: var(--ink-soft); font-weight: 500; }
.detail-list svg { color: var(--orange-600); flex-shrink: 0; margin-top: 3px; }

/* ===== Trust / USP strip ===== */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.usp-card { text-align: center; padding: 8px; }
.usp-icon {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(227,130,59,.14);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--orange-500);
}
.usp-card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: .35em; }
.usp-card p { font-size: .9rem; margin-bottom: 0; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 3/4; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--white);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 16px 22px; text-align: center;
}
.about-badge strong { display: block; font-size: 1.7rem; color: var(--orange-600); font-family: var(--font-head); font-weight: 800; }
.about-badge span { font-size: .78rem; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.about-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink-soft); }
.about-list svg { color: var(--orange-600); flex-shrink: 0; margin-top: 3px; }
.about-signature { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.about-signature strong { display: block; font-size: 1rem; }
.about-signature span { font-size: .86rem; color: var(--ink-faint); }

/* ===== Coverage / area ===== */
.coverage-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.coverage-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.coverage-card p { margin: 16px 4px 4px; font-size: .92rem; }
.map-embed { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--paper); }
.map-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px; background: var(--paper);
}
.map-placeholder p { font-size: .85rem; max-width: 320px; margin: 0; }

/* ===== Cookie-Hinweis ===== */
/* ===== Datenschutz Einstellungen (Consent Fenster) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.consent { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.consent[hidden] { display: none; }
.consent-overlay { position: absolute; inset: 0; background: rgba(15, 15, 15, .62); backdrop-filter: blur(2px); }
.consent-dialog {
  position: relative; width: 100%; max-width: 780px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ink); color: rgba(255,255,255,.85); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08);
}
.consent-dialog:focus { outline: none; }
.consent-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.consent-logo { height: 40px; width: auto; }
.consent-head-label { color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.consent-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,.1); }
.consent-tab {
  background: none; border: 0; border-bottom: 3px solid transparent; color: rgba(255,255,255,.65);
  font: 700 .95rem var(--font-head); padding: 14px 10px 12px; cursor: pointer; transition: color .2s, border-color .2s;
}
.consent-tab:hover { color: var(--white); }
.consent-tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--orange-500); }
.consent-tab:focus-visible { outline: 3px solid var(--orange-400); outline-offset: -3px; }
.consent-body { flex: 1 1 auto; overflow-y: auto; padding: 22px 28px; overscroll-behavior: contain; }
.consent-body::-webkit-scrollbar { width: 8px; }
.consent-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 8px; }
.consent-title { color: var(--white); font-size: 1.2rem; margin: 0 0 10px; }
.consent-text { max-height: 140px; overflow-y: auto; padding-right: 8px; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); padding-bottom: 14px; }
.consent-text p, .consent-note, .consent-group-desc { font-size: .9rem; line-height: 1.6; margin: 0 0 8px; color: rgba(255,255,255,.78); }
.consent-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 18px; }
.consent-links a, .consent-more, .consent-service a {
  color: var(--orange-400); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.consent-links a:hover, .consent-more:hover, .consent-service a:hover { color: var(--white); }
.consent-cats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.consent-cats .consent-cat { flex-direction: column; justify-content: center; padding: 16px 10px 4px; text-align: center; color: var(--white); font-weight: 700; font-size: .92rem; }
.consent-cats .consent-cat + .consent-cat { border-left: 1px solid rgba(255,255,255,.1); }
.consent-cat { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.consent-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-toggle { position: relative; display: inline-block; width: 48px; height: 26px; border-radius: 999px; background: #3a3a3a; border: 1px solid rgba(255,255,255,.25); transition: background .2s; flex-shrink: 0; }
.consent-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.consent-cat input:checked + .consent-toggle { background: var(--orange-600); border-color: var(--orange-600); }
.consent-cat input:checked + .consent-toggle::after { transform: translateX(22px); }
.consent-cat input:disabled + .consent-toggle { background: #8a8a8a; border-color: #8a8a8a; cursor: not-allowed; }
.consent-cat input:focus-visible + .consent-toggle { outline: 3px solid var(--orange-400); outline-offset: 2px; }
.consent-group { border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
.consent-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.consent-expand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; color: var(--white); font: 700 1rem var(--font-head); cursor: pointer; text-align: left; }
.consent-expand:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 3px; border-radius: 4px; }
.consent-chevron { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; flex-shrink: 0; }
.consent-expand[aria-expanded="true"] .consent-chevron { transform: translateY(2px) rotate(225deg); }
.consent-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .75rem; }
.consent-group-desc { margin: 6px 0 0 19px; }
.consent-services { margin: 12px 0 0 19px; display: grid; gap: 10px; }
.consent-service { margin: 0; padding: 14px 16px; background: rgba(255,255,255,.06); border-radius: 10px; }
.consent-service dt { color: var(--white); font-weight: 800; margin-bottom: 6px; }
.consent-service dd { margin: 0 0 4px; font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.75); }
.consent-service dd b { color: rgba(255,255,255,.92); }
.consent-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 28px 22px; border-top: 1px solid rgba(255,255,255,.1); background: var(--ink); }
.consent-btn { justify-content: center; text-align: center; background: var(--white); color: var(--ink); border-color: var(--white); padding-left: 12px; padding-right: 12px; }
.consent-btn:hover { background: var(--orange-600); border-color: var(--orange-600); color: var(--white); }
.consent-btn:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; }
body.consent-open { overflow: hidden; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; transition: box-shadow .2s ease; }
.gallery-item:hover { box-shadow: var(--shadow-orange); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.07); }
/* Bildausschnitte, damit die Maschinen vollständig zu sehen sind */
.gallery-item img.focus-top, .detail-media img.focus-top { object-position: center 12%; }
.gallery-item img.focus-machines, .detail-media img.focus-machines { object-position: center 28%; }
.gallery-item img.focus-low, .detail-media img.focus-low { object-position: center 80%; }
.gallery-item-caption {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  color: var(--white); font-size: .85rem; font-weight: 600; opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(10,9,7,.94); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; border-radius: 6px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===== CTA band ===== */
.cta-band { background: var(--orange-600); color: var(--white); border-radius: var(--radius); padding: 54px 46px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: 1.7rem; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 0; max-width: 480px; }
.cta-band .btn-dark { background: var(--ink); }
.cta-band .btn-dark:hover { background: #000; }

/* ===== Kontakt ===== */
.kontakt-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.kontakt-list { display: grid; gap: 18px; margin: 26px 0; }
.kontakt-list li { display: flex; align-items: flex-start; gap: 14px; }
.kontakt-list svg { color: var(--orange-600); flex-shrink: 0; margin-top: 2px; }
.kontakt-list a, .kontakt-list span { font-weight: 600; color: var(--ink); }
.kontakt-list .kontakt-sub { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-faint); margin-top: 2px; }
.kontakt-note { font-size: .88rem; color: var(--ink-faint); background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }

.kontakt-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 18px; }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-weight: 700; font-size: .87rem; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .96rem; color: var(--ink); background: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--orange-500); background: var(--white); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .8rem; color: var(--ink-faint); margin: 10px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .92rem; min-height: 1.4em; }
.form-status.success { color: #2f7a3a; }
.form-status.error { color: #b3401f; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Footer ===== */
.site-footer { background: var(--white); padding: 0 24px 24px; }
.site-footer-compact { padding-top: 24px; }
.footer-card { max-width: 1400px; margin: 0 auto; background: var(--ink); color: rgba(255,255,255,.7); border-radius: 28px; padding-top: 64px; overflow: hidden; }
.site-footer-compact .footer-card { padding-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand span { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-grid p { color: rgba(255,255,255,.62); font-size: .92rem; }
.footer-h { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-grid ul { display: grid; gap: 11px; }
.footer-grid a { color: rgba(255,255,255,.68); font-size: .92rem; transition: color .15s ease; }
.footer-address { line-height: 1.5; }
.footer-grid a:hover { color: var(--orange-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
.site-footer-compact .footer-bottom { border-top: none; padding: 26px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom-inner nav { display: flex; align-items: center; gap: 12px; }
.footer-bottom-inner nav span { color: rgba(255,255,255,.3); }
.footer-bottom-inner a { color: rgba(255,255,255,.55); }
.footer-bottom-inner a:hover { color: var(--white); }

/* ===== Legal pages ===== */
.legal { padding: 150px 0 100px; max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 2rem; margin-bottom: .3em; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .todo { background: var(--orange-50); border: 1px dashed var(--orange-500); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .88rem; color: var(--orange-700); margin: 1.6em 0; }
.legal .todo strong { display: block; margin-bottom: 4px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal ul li { margin-bottom: .4em; }
.link-inline { color: var(--orange-600); font-weight: 700; }

/* ===== 404 ===== */
.errorpage { padding: 170px 0 100px; text-align: center; }
.errorpage .big { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--orange-100); line-height: 1; margin: 0; }
.errorpage h1 { font-size: 1.8rem; margin-top: -.4em; }
.errorpage p { max-width: 480px; margin-left: auto; margin-right: auto; }
.errorpage .btn-row { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ===== Responsive ===== */
/* Hamburger Menü, sobald die volle Navigation nicht mehr in eine Zeile passt */
@media (max-width: 1100px) {
  .main-nav { position: fixed; inset: 96px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 4px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; color: var(--ink); }
  .main-nav a:hover { color: var(--orange-600); }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  /* backdrop-filter würde das fixierte Menü in der Kopfzeile einsperren */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(26, 26, 26, .97); }
  .main-nav { box-shadow: var(--shadow-md); }
}

@media (max-width: 980px) {
  .hero-inner { flex-direction: column; min-height: 0; }
  .hero-content { flex: none; padding: 40px 32px 34px; }
  .hero-media { position: relative; width: auto; flex: none; height: 320px; }
  .hero-media img {
    object-position: center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 10%, rgba(0,0,0,.65) 30%, #000 55%);
            mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 10%, rgba(0,0,0,.65) 30%, #000 55%);
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .coverage-grid, .kontakt-inner { grid-template-columns: 1fr; }
  .detail-block, .detail-block:nth-of-type(even) .detail-media { grid-template-columns: 1fr; order: initial; }
  .detail-block { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .consent { padding: 10px; align-items: flex-end; }
  .consent-dialog { max-height: calc(100vh - 20px); border-radius: 16px; }
  .consent-head, .consent-body { padding-left: 18px; padding-right: 18px; }
  .consent-actions { grid-template-columns: 1fr; gap: 8px; padding: 14px 18px 18px; }
  .consent-text { max-height: 120px; }
  .header-phone span { display: none; }
  .header-actions .btn { display: none; }
  .hero-inner { margin-top: 96px; border-radius: 22px; }
  .hero-content { padding: 32px 24px 28px; }
  .hero-media { height: 240px; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .form-row-half { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-band .btn-row { display: flex; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .about-badge { position: static; margin-top: -40px; margin-left: 20px; display: inline-block; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
}
