/* Steinplex: Stylesheet der Website. Werte kommen aus tokens.css. */

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-heading); }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); line-height: var(--leading-snug); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }
[x-cloak] { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-s);
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background: var(--color-surface);
  color: var(--color-text);
}
.skip-link:focus { left: var(--space-s); }

.container {
  width: 100%;
  max-width: calc(var(--width-wide) + 2 * var(--space-m));
  margin: 0 auto;
  padding: 0 var(--space-m);
}
.container--narrow { max-width: calc(var(--width-content) + 2 * var(--space-m)); }
.section { padding: var(--space-section) 0; }
.section--white { background: var(--color-surface); }
.section--dark { background: var(--color-dark); color: var(--color-light); }
.section--dark h2 { color: var(--color-light); }
.text-center { text-align: center; }

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: calc(1em + 2px) calc(1.5em + 2px);
  border: 2px solid var(--color-text);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--transition), color .2s var(--transition), border-color .2s var(--transition);
}
.btn:hover, .btn:focus-visible { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-light); }
.btn--arrow::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("/wp-content/themes/ona/assets/img/arrow-right-line.svg") center / cover no-repeat;
  mask: url("/wp-content/themes/ona/assets/img/arrow-right-line.svg") center / cover no-repeat;
  transition: transform .2s var(--transition);
}
.btn--arrow:hover::after { transform: translateX(6px); }
.btn--ghost {
  padding: var(--space-xs) var(--space-s);
  border-color: currentColor;
  background: transparent;
  color: var(--color-light);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--color-light); border-color: var(--color-light); color: var(--color-dark); }

/* Kopfbereich */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid var(--color-line-light);
  padding: 24px var(--gutter);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--width-wide);
  margin: 0 auto;
}
.brand { display: inline-block; line-height: 0; }
.brand img { width: 190px; filter: brightness(0) invert(1); }
.site-header__actions { display: flex; align-items: center; gap: 2rem; }
.nav__list {
  display: flex;
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
  text-transform: uppercase;
}
.nav__list a { color: var(--color-light); text-decoration: none; }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--color-sand); }
.nav__toggle, .nav__close {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-light);
  cursor: pointer;
}
.nav__toggle svg, .nav__close svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 1000px) {
  .nav__toggle { display: block; }
  .nav__panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 24px var(--gutter);
    background: var(--color-surface);
  }
  .nav__panel:not(.is-open) { display: none; }
  .nav__close { display: block; align-self: flex-end; color: var(--color-dark); }
  .nav__list { flex-direction: column; gap: var(--space-m); margin-top: var(--space-xl); font-size: var(--text-medium); }
  .nav__list a { color: var(--color-dark); }
}
@media (max-width: 600px) {
  .brand img { width: 150px; }
  .site-header__actions { gap: var(--space-s); }
  .site-header .btn--ghost { display: none; }
}

/* Großes Titelbild */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 8rem var(--space-m) var(--space-2xl);
  overflow: hidden;
  clip-path: inset(0);
  color: var(--color-light);
  text-align: center;
}
.hero--short { min-height: 60vh; }
.hero__media {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-overlay);
}
.hero__content { max-width: var(--width-content); }
.eyebrow {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 6px;
  text-transform: uppercase;
}
.hero__title {
  margin: var(--space-m) 0;
  color: var(--color-light);
  font-size: var(--text-x-large);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.hero__lead { margin: 0; font-size: var(--text-medium); line-height: 1.4; }
.hero__lead a { color: var(--color-light); }
.hero__actions { margin-top: var(--space-l); }
@media (max-width: 781px), (prefers-reduced-motion: reduce) {
  .hero__media { position: absolute; }
}

/* Drei Vorteile */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-surface);
  padding: 0 var(--space-2xl);
}
.feature { padding: 92px 2%; }
.feature__icon { width: 56px; margin-bottom: var(--space-l); }
.feature h2 { margin-bottom: var(--space-s); font-size: 1.25rem; }
@media (max-width: 1000px) {
  .features { grid-template-columns: 1fr; padding: var(--space-xl) var(--space-m); }
  .feature { padding: var(--space-l) 0; }
}

/* Bild und Text nebeneinander */
.split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: 0 7rem;
}
.split__title { font-size: var(--text-medium-large); font-weight: 400; text-transform: uppercase; }
.split__body { padding-top: var(--space-m); }
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* Bereiche als Knöpfe */
.section-title { margin-bottom: var(--space-xl); font-size: var(--text-large); }
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-grid a {
  display: block;
  padding: calc(1em + 2px) var(--space-s);
  border: 2px solid var(--color-surface);
  border-radius: var(--radius);
  color: var(--color-surface);
  font-size: var(--text-small);
  letter-spacing: 2px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s var(--transition), color .2s var(--transition);
}
.link-grid a:hover, .link-grid a:focus-visible { background: var(--color-surface); color: var(--color-dark); }
@media (max-width: 781px) { .link-grid { grid-template-columns: 1fr 1fr; gap: var(--space-s); } }

/* Kontakt-Aufruf */
.cta {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 0 var(--space-2xl);
  align-items: start;
}
.cta__text { position: sticky; top: var(--space-l); }
.cta__title { font-size: var(--text-medium-large); }
.cta__body { padding-top: var(--space-m); }
.checklist { display: grid; gap: var(--space-2xs); margin: var(--space-m) 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: var(--space-2xs); }
.checklist img { width: 20px; flex-shrink: 0; }
.cta__actions { margin-top: var(--space-l); }
.image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.image-grid img { width: 100%; height: 100%; object-fit: cover; }
.image-grid__wide { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .cta { grid-template-columns: 1fr; gap: var(--space-xl); }
  .cta__text { position: static; }
}

/* Kontakt */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  margin-top: var(--space-l);
}
.contact-lines { margin-top: var(--space-xl); }
@media (max-width: 600px) { .address-grid { grid-template-columns: 1fr; } }

/* Rechtstexte */
.prose { overflow-wrap: break-word; }
.prose h2 { margin: 2.5em 0 0.75em; font-size: var(--h4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5em 0 0.5em; font-size: 1.125rem; }
.prose ul { margin: 0 0 1.5em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }

/* 404 */
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-s); margin-top: var(--space-l); }

/* Fußbereich */
.site-footer { background: var(--color-dark); color: var(--color-muted); padding: 120px 0 64px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: var(--space-l);
}
.site-footer__logo { width: 300px; margin-bottom: var(--space-l); filter: brightness(0) invert(1); }
.site-footer a { color: var(--color-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-light); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-s) var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--color-light); }
@media (max-width: 781px) {
  .site-footer { padding: var(--space-2xl) 0 var(--space-xl); }
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer__logo { margin-left: auto; margin-right: auto; width: 220px; }
  .footer-nav { justify-content: center; }
}
