
:root {
  --ink: #17202a;
  --muted: #5c6874;
  --line: #d8dee6;
  --soft: #f4f6f8;
  --brand: #a82424;
  --brand-dark: #7f1717;
  --steel: #68737e;
  --green: #176f67;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  transition: box-shadow .2s ease, background-color .2s ease;
}

.site-header.is-compact {
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 28px rgba(23, 32, 42, .09);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  transition: padding .2s ease;
}

.site-header.is-compact .header-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
}

.skip-link:focus {
  top: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
  transition: width .2s ease;
}

.site-header.is-compact .brand img {
  width: 118px;
}

.brand span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: opacity .2s ease;
}

.site-header.is-compact .brand span {
  opacity: .72;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav-home,
.nav-group > summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.nav-home:hover,
.nav-home:focus-visible,
.nav-group > summary:hover,
.nav-group[open] > summary {
  color: var(--brand);
  background: var(--soft);
}

.nav-group {
  position: relative;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-group > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 32, 42, .14);
}

.nav-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

.nav-group:not([open]) .nav-panel {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111820;
  color: rgba(255,255,255,.78);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.footer-column h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
}

.footer-column p {
  margin: 0;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 7px;
}

.footer-column a,
.footer-bottom a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 14px;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

.hero {
  margin: 34px -24px 0;
  padding: 76px 24px 72px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(10,15,20,.92), rgba(10,15,20,.72) 48%, rgba(10,15,20,.28)),
    url("/assets/hero/formstahl-anwendungsbeispiel-hero.jpg") center / cover no-repeat,
    url("hero/formstahl-anwendungsbeispiel-hero.png") center / cover no-repeat,
    #2e3740;
  background-position: center;
}

.home-hero { padding-bottom: 86px; }

.hero > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  margin: 20px 0 0;
  max-width: 850px;
  color: rgba(255,255,255,.9);
  font-size: 20px;
}

section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.facts {
  display: grid;
  gap: 10px;
}

.fact {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.fact strong {
  display: block;
  margin-bottom: 4px;
}

.fact span {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.card:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.card span {
  color: var(--muted);
  font-size: 14px;
}

.text-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.text-link-card {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}

.text-link-card:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--ink);
  background: var(--soft);
  font-weight: 800;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.info-box {
  margin: 18px 0;
  padding: 18px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff8f6;
}

.info-box strong {
  display: block;
  margin-bottom: 6px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.image-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.image-card:hover,
.image-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 18px 35px rgba(23, 32, 42, .13);
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--soft);
  object-fit: cover;
}

.image-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #fff;
  background: rgba(23, 32, 42, .82);
  backdrop-filter: blur(6px);
  font-weight: 800;
  line-height: 1.2;
  font-size: 14px;
}

.visual-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 36px;
  align-items: center;
}

.profile-visual {
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profile-visual:hover,
.profile-visual:focus {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 18px 35px rgba(23, 32, 42, .13);
  outline: none;
}

.profile-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  background: var(--soft);
  object-fit: cover;
}

.profile-visual figcaption {
  margin: 0;
  padding: 11px 12px 12px;
  color: var(--muted);
  font-size: 14px;
}

.shop-cta {
  margin: 38px 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #e5b8b8;
  border-radius: 8px;
  background: #fff8f6;
}

.shop-cta strong,
.shop-cta span {
  display: block;
}

.shop-cta span {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.button:hover {
  color: #fff;
  background: var(--brand-dark);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.calculator label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.calculator input,
.calculator select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.calculator output {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 8px;
  color: var(--green);
  background: #eaf5f3;
  font-size: 20px;
  font-weight: 800;
}

.impressum {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.impressum address {
  font-style: normal;
  line-height: 1.7;
}

footer:not(.site-footer) {
  padding: 30px 24px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
}

footer:not(.site-footer) p {
  max-width: 1180px;
  margin: 0 auto 8px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 20px 45px rgba(23, 32, 42, .18);
}

.cookie-banner__text {
  max-width: 720px;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.cookie-banner button {
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-banner button:hover {
  background: var(--brand-dark);
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-group {
    position: static;
  }

  .nav-panel {
    right: auto;
    left: 24px;
    max-width: calc(100vw - 48px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .calculator {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-gallery,
  .visual-section,
  .text-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-visual {
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  main { padding-inline: 18px; }

  .hero {
    margin-inline: -18px;
    padding: 54px 18px;
  }

  .lead { font-size: 17px; }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .image-gallery,
  .visual-section,
  .text-link-grid {
    grid-template-columns: 1fr;
  }

  .shop-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .button { width: 100%; }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions {
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
