/* Biesterfeld SE – Wartungsseite
   Farben, Typografie und Flächenaufteilung aus www.biesterfeld.com übernommen:
   kantig, flächig, ohne Rundungen und Schatten. */

:root {
  --bf-accent: #cb3f1d;          /* Headline-/Akzentrot der Marke */
  --bf-blue-dark: #005262;
  --bf-blue: #1d76a0;
  --bf-blue-light: #528eb3;
  --bf-band: #dde8ed;            /* hellblaues Flächenband */
  --bf-band-soft: #eef4f7;
  --bf-grey: #58585a;

  --surface: #ffffff;
  --text: #3c3c3e;
  --text-muted: #6d7275;
  --border: #d4dfe4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bf-band: #16262d;
    --bf-band-soft: #112026;
    --surface: #0d1a1f;
    --text: #dde7eb;
    --text-muted: #9fb1b9;
    --border: #223a44;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
}

.wrap {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Kopfbereich ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
}

.logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 100%;
}

@media (prefers-color-scheme: dark) {
  .logo { filter: brightness(0) invert(1); }
}

.lang-switch { display: inline-flex; }

.lang-switch button {
  font: inherit;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .08em;
  padding: .45rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.lang-switch button + button { border-left: 0; }

.lang-switch button[aria-pressed="true"] {
  background: var(--bf-accent);
  border-color: var(--bf-accent);
  color: #fff;
}

.lang-switch button:focus-visible { outline: 2px solid var(--bf-blue); outline-offset: 2px; }

/* ---------- Inhalt ---------- */

.site-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.site-main > .wrap { width: min(1140px, 100% - 3rem); }

/* Legal-Seiten: Text beginnt oben statt mittig */
.site-main.grow { align-items: flex-start; }

.card { max-width: 980px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bf-accent);
  border-left: 4px solid var(--bf-accent);
  padding: .1rem 0 .1rem .75rem;
  margin-bottom: 1.4rem;
}

.kicker .dot {
  width: .5rem;
  height: .5rem;
  background: var(--bf-accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  .kicker .dot { animation: none; }
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.18;
  font-weight: 300;
  color: var(--bf-accent);
  letter-spacing: -.005em;
}

h1 strong { font-weight: 400; }

.lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 68ch;
  font-style: italic;
  color: var(--text);
}

.lead strong { font-style: normal; font-weight: 500; }

/* ---------- Kontaktband ---------- */

.contact-band {
  flex: 0 0 auto;
  background: var(--bf-band);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.contact-band h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 300;
  color: var(--bf-accent);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
}

.contact-item .icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: .3rem;
  color: var(--bf-accent);
}

.contact-item .icon svg { width: 100%; height: 100%; display: block; }

.contact-item .label {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .15rem;
}

.contact-item a,
.contact-item .value {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--bf-blue-dark);
  text-decoration: none;
  word-break: break-word;
}

@media (prefers-color-scheme: dark) {
  .contact-item a,
  .contact-item .value { color: #8fc4d6; }
}

.contact-item a:hover,
.contact-item a:focus-visible { color: var(--bf-accent); text-decoration: underline; }

/* ---------- Buttons ---------- */

.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--bf-accent);
  cursor: pointer;
  font: inherit;
  font-weight: 400;
  padding: .7rem 1.6rem;
  background: var(--bf-accent);
  color: #fff;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.btn::after { content: "›"; font-size: 1.15em; line-height: 1; }

.btn:hover { background: #a93317; border-color: #a93317; }
.btn:focus-visible { outline: 2px solid var(--bf-blue); outline-offset: 2px; }

.btn-ghost {
  background: transparent;
  color: var(--bf-accent);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bf-accent);
  border-color: var(--bf-accent);
  color: #fff;
}

/* ---------- Sprachsteuerung ---------- */

[data-lang="de"] [lang="en"],
[data-lang="en"] [lang="de"] { display: none !important; }

/* ---------- Legal-Seiten ---------- */

.legal { max-width: 860px; }

.legal h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }

.legal h2 {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--bf-accent);
  margin: 2.5rem 0 .5rem;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 1.75rem 0 .35rem;
}

.legal p { margin: 0 0 1rem; }
.legal p.small { font-size: .95rem; color: var(--text-muted); }

.legal address {
  font-style: normal;
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--bf-accent);
  line-height: 1.8;
}

.legal a { color: var(--bf-blue); }
.legal a:hover { color: var(--bf-accent); }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--bf-blue);
  text-decoration: none;
  font-size: .95rem;
}

.back-link:hover { color: var(--bf-accent); text-decoration: underline; }

/* ---------- Footer (Grautöne der Originalseite) ---------- */

.site-footer {
  flex: none;
  font-size: .9rem;
}

.footer-main {
  background: rgb(68, 68, 68);
  color: #d6d6d6;
  padding: 1.5rem 0;
}

.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
}

.footer-main a {
  color: #d6d6d6;
  text-decoration: none;
}

.footer-main a:hover,
.footer-main a:focus-visible { color: #fff; text-decoration: underline; }

.footer-bar {
  background: rgb(52, 52, 52);
  color: #9a9a9a;
  padding: .85rem 0;
  font-size: .85rem;
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .logo { height: 42px; }
}
