/* SMP Holding GmbH – angelehnt an das Pölzl Corporate Design:
   Schwarz/Weiß trägt das Layout, genau ein gelber Akzent, kantig, linksbündig. */

:root {
  --marble-white: #ffffff;
  --onyx-black: #000000;
  --slate-grey: #323232;
  --gravel-grey: #adadad;
  --section-grey: #e4e4e4;
  --construction-yellow: #faec50;

  --surface: var(--marble-white);
  --ink: var(--onyx-black);
  --ink-secondary: var(--slate-grey);
  --ink-muted: var(--slate-grey);
  --line: var(--gravel-grey);
  --line-strong: var(--onyx-black);
  --focus: var(--onyx-black);

  --font: Arial, Helvetica, sans-serif;
  --gutter: 50px;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
}

[data-theme="dark"] {
  --surface: var(--onyx-black);
  --ink: var(--marble-white);
  --ink-secondary: var(--section-grey);
  --ink-muted: var(--gravel-grey);
  --line: var(--slate-grey);
  --line-strong: var(--marble-white);
  --focus: var(--marble-white);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--marble-white);
  color: var(--onyx-black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

[data-theme="dark"] {
  background: var(--surface);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Sprungmarke für Tastatur und Screenreader */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 9px 25px;
  border-radius: 45px;
  background: var(--marble-white);
  color: var(--onyx-black);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.skip-link:focus-visible {
  outline-color: var(--marble-white);
}

/* Typografie */
.display {
  font-size: clamp(2.6rem, 7.2vw, 6.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display .line {
  display: block;
}

.line-muted {
  color: var(--ink-muted);
}

.h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h3 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.h3:first-child {
  margin-top: 0;
}

.versal {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.note {
  max-width: 420px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Kontonummern zusammenhalten */
.nowrap {
  white-space: nowrap;
}

/* E-Mail-Adressen und Telefonnummern nicht umbrechen */
.text-link[href^="mailto:"],
.text-link[href^="tel:"] {
  white-space: nowrap;
}

/* Kopf und Startfläche (Onyx-Vollfläche, Kopfleiste und Startfläche lesen sich als ein Block) */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(calc(100vh - 80px), 860px);
}

@supports (min-height: 100svh) {
  .hero {
    min-height: min(calc(100svh - 80px), 860px);
  }
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.wordmark {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-strong {
  font-weight: 700;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
}

.nav a,
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-body {
  padding-top: 80px;
  padding-bottom: 96px;
}

.hero-label {
  margin-bottom: 24px;
}

.hero-body .display {
  max-width: 18ch;
  text-wrap: balance;
}

/* Der eine gelbe Akzent */
.button {
  display: inline-block;
  margin-top: 40px;
  padding: 9px 25px;
  border: 1px solid var(--construction-yellow);
  border-radius: 45px;
  background: var(--construction-yellow);
  color: var(--onyx-black);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover {
  border-color: var(--marble-white);
  background: var(--marble-white);
}

/* Sektionen */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-tint {
  background: var(--section-grey);
}

.grid {
  display: grid;
  gap: 40px;
}

.contact {
  display: grid;
  gap: 32px;
}

.contact-block p + p {
  margin-top: 4px;
}

.contact-block p + p.versal {
  margin-top: 24px;
}

.contact-block .versal {
  color: var(--ink-secondary);
}

/* Kennzahlen-Zeilen mit Haarlinien */
.facts {
  border-top: 1px solid var(--line-strong);
}

.fact {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom-color: var(--line-strong);
}

.fact dt {
  font-size: 14px;
  color: var(--ink-secondary);
}

.fact dd {
  color: var(--onyx-black);
}

.prose {
  max-width: 560px;
}

.prose p + p {
  margin-top: 16px;
}

/* Fuß */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer .versal {
  font-size: 12px;
  color: var(--ink-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

/* Einmalige Bewegung beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero-body > * {
    animation: rise 1.2s var(--ease) both;
  }

  .hero-body > :nth-child(2) {
    animation-delay: 0.12s;
  }

  .hero-body > :nth-child(3) {
    animation-delay: 0.24s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(32px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

@media (min-width: 1100px) {
  .fact {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: baseline;
    gap: 16px;
  }
}

@media (max-width: 1099px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 599px) {
  .bar {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .nav ul {
    gap: 8px 24px;
  }

  .nav a {
    font-size: 12px;
  }

  .hero-body {
    padding-bottom: 64px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media print {
  [data-theme="dark"] {
    --surface: var(--marble-white);
    --ink: var(--onyx-black);
    --ink-secondary: var(--slate-grey);
    --ink-muted: var(--slate-grey);
    --line: var(--gravel-grey);
    --line-strong: var(--onyx-black);
    background: none;
    color: var(--onyx-black);
  }

  .hero {
    min-height: 0;
  }

  .hero-body,
  .section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-body > * {
    animation: none !important;
  }

  .section-tint {
    background: none;
  }

  .fact {
    break-inside: avoid;
  }

  .skip-link,
  .nav,
  .button,
  .footer-links {
    display: none;
  }
}
