:root {
  color-scheme: light;
  --navy: #263746;
  --blue: #3f7898;
  --blue-dark: #2f607b;
  --steel: #dce5ea;
  --paper: #f5f7f8;
  --white: #ffffff;
  --text: #1d2a33;
  --muted: #5e6b73;
  --line: #cbd5db;
  --success: #246b4a;
  --warning: #8a5b00;
  --welding-soft: #e4f1f7;
  --welding-soft-strong: #cfe5ef;
  --welding-accent: #3f7898;
  --welding-accent-dark: #2f607b;
  --bolting-soft: #e7f2e9;
  --bolting-soft-strong: #d3e7d9;
  --bolting-accent: #4f8063;
  --bolting-accent-dark: #355c46;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(38, 55, 70, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; }

.test-banner {
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: .55rem 1rem;
  color: #fff;
  background: var(--warning);
  font-size: .9rem;
}
body[data-app-mode="production"] .test-banner { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 72px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  color: #fff;
  background: rgba(38, 55, 70, .97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.wordmark {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-decoration: none;
}
.site-header nav,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.language-switcher {
  gap: .25rem !important;
  margin-left: auto;
}
.language-switcher a {
  min-width: 2.35rem;
  padding: .35rem .5rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .06em;
}
.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  color: var(--navy);
  background: #fff;
  text-decoration: none;
}
.site-header nav a,
footer nav a {
  text-decoration: none;
  font-weight: 650;
}
.site-header nav a:hover,
footer nav a:hover,
.site-header nav a[aria-current="page"],
footer nav a[aria-current="page"] { text-decoration: underline; }

main { overflow: hidden; }
.hero,
.section,
.subpage-hero,
.subpage-content,
.legal-content,
footer {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 8vw, 8rem);
}
.hero {
  min-height: 68vh;
  display: grid;
  align-content: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18,37,51,.94) 0%, rgba(30,63,82,.82) 48%, rgba(30,63,82,.42) 100%),
    url('./assets/hero-connect-stahlhalle-20260805.webp') center 52% / cover no-repeat;
}
.hero h1 {
  max-width: 980px;
  margin: .4rem 0 1rem;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 3px 24px rgba(7, 19, 28, .52);
}
.lead {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 16px rgba(7, 19, 28, .58);
}
.kicker {
  margin: 0 0 .5rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero .kicker,
.subpage-hero .kicker { color: #b9d4e2; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}
.button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.1rem;
  border-radius: 9px;
  font-weight: 750;
  text-decoration: none;
}
.button.primary {
  color: var(--navy);
  background: #fff;
}
.button.secondary {
  color: inherit;
  border: 1px solid currentColor;
  background: transparent;
}

.section { background: var(--white); }
.section + .section { border-top: 1px solid var(--line); }
.welding-section { background: var(--welding-soft); }
.bolting-section { background: var(--bolting-soft); }
.section-heading { max-width: 760px; }
.section-heading h2 {
  margin: .2rem 0 .8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f7f9fa);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 1rem 0 .4rem;
  font-size: 1.65rem;
}
.card p { color: var(--muted); }
.feature-card { grid-column: 1 / -1; min-height: 260px; }
.card-link {
  align-self: flex-start;
  margin-top: auto;
  color: #fff;
  background: var(--navy);
}
.status {
  align-self: flex-start;
  display: inline-flex;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.status.public { color: var(--success); background: #e5f3eb; }
.status.protected { color: var(--warning); background: #f7ecd1; }

.muted-section { background: #edf2f4; }

.subpage { overflow: visible; }
.subpage-hero {
  color: #fff;
  background:
    linear-gradient(118deg, rgba(38,55,70,.99), rgba(47,96,123,.92)),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.16), transparent 35%);
}
.subpage-hero h1 {
  max-width: 900px;
  margin: .35rem 0 1rem;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.subpage-content,
.legal-content,
.article-content { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.content-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.subtle-card { background: #edf2f4; box-shadow: none; }
.content-card h2 {
  margin: .2rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}
.contact-button {
  margin-top: .6rem;
  color: #fff;
  background: var(--navy);
}
.contact-address { margin-bottom: 0; }
.text-link { color: var(--blue-dark); font-weight: 750; }
.privacy-note {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--blue);
  background: #edf2f4;
  color: var(--muted);
}
.legal-content {
  max-width: 1100px;
  margin: 0 auto;
}
.legal-content section {
  max-width: 860px;
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.legal-content h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
}
.legal-content p,
.legal-content address { max-width: 820px; }
.legal-content address { font-style: normal; }
.legal-content code {
  padding: .12rem .32rem;
  border-radius: 4px;
  background: #edf2f4;
  font-size: .92em;
}
.page-updated { color: var(--muted); font-size: .92rem; }

.article-hero .lead { max-width: 920px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 1.5rem 0 0;
  color: rgba(255,255,255,.76);
  font-size: .95rem;
}

body:has(.back-link a[href="./#schweisstechnik"]) {
  --article-soft: var(--welding-soft);
  --article-soft-strong: var(--welding-soft-strong);
  --article-accent: var(--welding-accent);
  --article-accent-dark: var(--welding-accent-dark);
}
body:has(.back-link a[href="./#schraubtechnik"]) {
  --article-soft: var(--bolting-soft);
  --article-soft-strong: var(--bolting-soft-strong);
  --article-accent: var(--bolting-accent);
  --article-accent-dark: var(--bolting-accent-dark);
}
body:has(.back-link a[href^="./#"]) .article-hero {
  color: var(--navy);
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.72), transparent 36%),
    linear-gradient(118deg, var(--article-soft-strong), var(--article-soft));
  border-bottom: 1px solid var(--article-accent);
}
body:has(.back-link a[href^="./#"]) .article-hero .kicker {
  color: var(--article-accent-dark);
}
body:has(.back-link a[href^="./#"]) .article-hero .lead {
  color: #344650;
  text-shadow: none;
}
body:has(.back-link a[href^="./#"]) .article-meta {
  color: #52626c;
}

.article-content {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 8vw, 8rem);
  font-size: 1.05rem;
}
.article-content h2 {
  margin: 2.7rem 0 .8rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.article-content p,
.article-content li { max-width: 780px; }
.article-intro {
  margin: 0 0 2.2rem;
  padding: 1.25rem 1.4rem;
  border-left: 5px solid var(--blue);
  background: #edf2f4;
  font-size: 1.13rem;
}
body:has(.back-link a[href^="./#"]) .article-intro {
  border-left-color: var(--article-accent);
  background: var(--article-soft);
}
.article-chain {
  max-width: none;
  padding: 1.25rem 1.4rem;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  overflow-wrap: anywhere;
}
body:has(.back-link a[href^="./#"]) .article-chain {
  background: var(--article-accent-dark);
}
.article-content ol,
.article-content ul { max-width: 780px; padding-left: 1.4rem; }
.article-content li + li { margin-top: .55rem; }
.article-sources {
  margin-top: 3rem;
  padding-top: .25rem;
  border-top: 1px solid var(--line);
}
.article-sources li { color: var(--muted); }
.back-link { margin-top: 2.5rem; }
body:has(.back-link a[href^="./#"]) .back-link .text-link {
  color: var(--article-accent-dark);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  color: #fff;
  background: #17232d;
}
footer > div:first-child {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }
  .cards,
  .contact-grid,
  footer { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .feature-card { grid-column: auto; }
}

@media (max-width: 520px) {
  .test-banner { align-items: flex-start; flex-direction: column; gap: .1rem; }
  .site-header nav { gap: .65rem 1rem; }
  .language-switcher { margin-left: 0; }
  .hero { background-position: center, 62% center; }
  .hero,
  .section,
  .subpage-hero,
  .subpage-content,
  .legal-content,
  .article-content,
  footer { padding-inline: 1rem; }
}
