/* Webseite imhausio.de. Farben wie die App im Dunkeln (src/app/globals.css,
   Block `dunkel`): fast schwarz, neutrales Grau, eine Markenfarbe (Bernstein).
   Schrift des Systems, nichts von fremden Servern. */

:root {
  --hintergrund: oklch(14.5% 0 none);
  --flaeche: oklch(18% 0 none);
  --flaeche-hover: oklch(21% 0 none);
  --text: oklch(98.5% 0 none);
  --text-leise: oklch(70.8% 0 none);
  --rand: oklch(27% 0 none);
  --rand-stark: oklch(37.1% 0 none);
  --marke: oklch(82.8% 0.189 84.429);
  --marke-hover: oklch(87.9% 0.169 91.605);
  --marke-text: oklch(20.5% 0 none);
  --breite: 72rem;
  --rundung: 14px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.springen {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--marke);
  color: var(--marke-text);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.springen:focus {
  top: 1rem;
}

main {
  padding-bottom: 6rem;
}

/* Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--hintergrund) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rand);
}

.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.kopf-logo {
  display: inline-flex;
  color: var(--text);
}

.logo {
  height: 1.6rem;
  width: auto;
}

.logo-punkt {
  fill: var(--marke);
}

.navi {
  display: flex;
  gap: 0.25rem;
  margin-right: auto;
}

.navi a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--text-leise);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s, background-color 0.15s;
}

.navi a:hover,
.navi a[aria-current="page"] {
  color: var(--text);
  background: var(--flaeche-hover);
}

.kopf-rechts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menue-knopf {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--rand-stark);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.menue-knopf span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: calc(50% - 0.75px);
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s;
}

.menue-knopf span:first-child {
  transform: translateY(-4px);
}

.menue-knopf span:last-child {
  transform: translateY(4px);
}

.menue-offen .menue-knopf span:first-child {
  transform: rotate(45deg);
}

.menue-offen .menue-knopf span:last-child {
  transform: rotate(-45deg);
}

/* Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.knopf-marke {
  background: var(--marke);
  color: var(--marke-text);
}

.knopf-marke:hover {
  background: var(--marke-hover);
}

.knopf-rand {
  border: 1px solid var(--rand-stark);
  color: var(--text);
}

.knopf-rand:hover {
  background: var(--flaeche-hover);
}

.knopf-hell {
  min-height: 2.5rem;
  background: var(--text);
  color: var(--marke-text);
}

.knopf-hell:hover {
  background: oklch(90% 0 none);
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Start: großer Kopf */

.held {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.25rem 0;
  border-bottom: 1px solid var(--rand);
}

.held-strasse {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  opacity: 0.13;
  -webkit-mask: url(/strasse.svg) center top / cover no-repeat;
  mask: url(/strasse.svg) center top / cover no-repeat;
}

@media (orientation: portrait) {
  .held-strasse {
    -webkit-mask-image: url(/strasse-hoch.svg);
    mask-image: url(/strasse-hoch.svg);
  }
}

.held::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    var(--hintergrund) 85%
  );
}

.held-innen {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.held-innen .knopfreihe {
  justify-content: center;
}

.vorzeile {
  color: var(--marke);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.leise {
  color: var(--text-leise);
}

.einleitung {
  margin: 1.5rem auto 0;
  max-width: 38rem;
  color: var(--text-leise);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.bildschirm {
  max-width: var(--breite);
  margin: 4.5rem auto 0;
  padding: 0.5rem 0.5rem 0;
  border: 1px solid var(--rand-stark);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--flaeche);
  box-shadow: 0 -30px 120px -40px color-mix(in oklch, var(--marke) 35%, transparent);
}

.bildschirm img {
  border-radius: 12px 12px 0 0;
}

/* Abschnitte */

.abschnitt,
.seitenkopf {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 6rem 1.25rem 0;
}

.seitenkopf {
  padding-top: 5rem;
  text-align: center;
}

.seitenkopf .knopfreihe {
  justify-content: center;
}

.abschnitt-kopf {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
}

.abschnitt-kopf p {
  margin-top: 0.75rem;
  color: var(--text-leise);
  font-size: 1.1rem;
}

.raster {
  display: grid;
  gap: 1rem;
}

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

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

.karte,
.kachel {
  display: block;
  padding: 1.75rem;
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
  background: var(--flaeche);
  text-decoration: none;
}

.kachel {
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.kachel:hover,
a.karte:hover {
  border-color: var(--rand-stark);
  background: var(--flaeche-hover);
}

.kachel:hover {
  transform: translateY(-2px);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.karte p,
.kachel p {
  margin-top: 0.5rem;
  color: var(--text-leise);
  font-size: 0.98rem;
}

.karte-gross {
  padding: 2.25rem;
}

.karte-gross h3 {
  font-size: 1.4rem;
}

.pfeil {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--marke);
  font-weight: 600;
  font-size: 0.95rem;
}

.weiter {
  margin-top: 1.75rem;
}

.weiter a {
  color: var(--marke);
  font-weight: 600;
  text-decoration: none;
}

.weiter a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.25rem;
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--marke) 10%, var(--flaeche)),
    var(--flaeche) 60%
  );
}

.band h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marken li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rand-stark);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-leise);
}

.schluss {
  text-align: center;
}

.schluss p {
  margin: 0.75rem 0 2rem;
  color: var(--text-leise);
  font-size: 1.1rem;
}

.hinweis-zeile {
  margin-top: 1.5rem;
  color: var(--text-leise);
  font-size: 0.95rem;
}

/* Funktionen */

.funktionen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 4rem;
}

.funktion {
  padding: 2rem;
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
  background: var(--flaeche);
  scroll-margin-top: 5.5rem;
}

.funktion h2 {
  font-size: 1.4rem;
}

.funktion ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.funktion li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: 1px solid var(--rand);
  color: var(--text-leise);
}

.funktion li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--marke);
}

/* Portal & App */

.geteilt {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  padding-top: 4rem;
}

.telefon {
  margin: 0;
  padding: 0.6rem;
  border: 1px solid var(--rand-stark);
  border-radius: 2.6rem;
  background: var(--flaeche);
  box-shadow: 0 40px 120px -50px color-mix(in oklch, var(--marke) 40%, transparent);
}

.telefon img {
  border-radius: 2rem;
}

.liste-gross {
  display: grid;
  gap: 2rem;
}

.liste-gross p {
  margin-top: 0.35rem;
  color: var(--text-leise);
}

/* Fließtext (Impressum, Datenschutz) */

.text {
  max-width: 44rem;
  text-align: left;
}

.text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

.text h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

.text p {
  color: var(--text-leise);
}

.text a {
  color: var(--text);
  text-underline-offset: 3px;
}

/* Fuß */

.fuss {
  border-top: 1px solid var(--rand);
  color: var(--text-leise);
  font-size: 0.95rem;
}

.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.fuss-marke p {
  margin-top: 1rem;
  max-width: 18rem;
}

.fuss-spalte {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fuss-spalte a {
  text-decoration: none;
}

.fuss-spalte a:hover {
  color: var(--text);
}

.fuss-zeile {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--rand);
  font-size: 0.85rem;
}

/* Tablet und Handy */

@media (max-width: 900px) {
  .raster-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funktionen,
  .geteilt {
    grid-template-columns: minmax(0, 1fr);
  }

  .telefon {
    max-width: 18rem;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .menue-knopf {
    display: inline-block;
  }

  .navi {
    display: none;
    position: fixed;
    inset: 4rem 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--hintergrund);
    border-bottom: 1px solid var(--rand);
  }

  .menue-offen .navi {
    display: flex;
  }

  .navi a {
    padding: 0.9rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--rand);
    font-size: 1.05rem;
    color: var(--text);
  }

  .navi a:hover,
  .navi a[aria-current="page"] {
    background: transparent;
    color: var(--marke);
  }

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

  .held {
    padding-top: 4rem;
  }

  .abschnitt {
    padding-top: 4.5rem;
  }

  .bildschirm {
    margin-top: 3rem;
  }

  .band {
    padding: 1.75rem;
  }

  .fuss-innen {
    grid-template-columns: 1fr 1fr;
  }

  .fuss-marke {
    grid-column: 1 / -1;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
