/*!
 * Landingpage für geparkte Domains – designundcode.at
 * Author: Michael Marlovics, Marlovics Uhl Medien GmbH
 * Gestaltung nach der Design Library v3 (Inter, Schwarz/Weiß, Icon-Rot sparsam)
 */

@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-tint: #f2f2f2;
  --ink: #000000;
  --ink-muted: #6e6e6e;
  --rule: #e4e4e4;
  --rule-strong: #8a8a8a;
  --signal: #e01f26;
  --focus: #1d3fd8;
  --btn-hover: #333333;

  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --page-x: var(--space-12);
  --gutter: var(--space-6);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0f0e;
    --paper-tint: #1c1c1a;
    --ink: #f2f0ea;
    --ink-muted: #a4a39c;
    --rule: #33332f;
    --rule-strong: #77776f;
    --signal: #ff5640;
    --focus: #7c93ff;
    --btn-hover: #d6d4ce;
  }
}

@media (max-width: 767px) {
  :root {
    --page-x: var(--space-4);
    --gutter: var(--space-4);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: calc(1280px + 2 * var(--page-x));
  padding-inline: var(--page-x);
}

/* Navigation ---------------------------------------------------------- */

.nav {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-weight: 500;
}

.brand img {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

/* Typografie ---------------------------------------------------------- */

.label {
  margin: 0;
  color: var(--ink-muted);
}

.display {
  margin: 0;
  font-weight: 400;
  white-space: nowrap;
}

.display--xxl {
  font-size: 120px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.display--xl {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.display--l {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.headline {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.body-l {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  max-width: 60ch;
}

.small {
  font-size: 13px;
  line-height: 18px;
}

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

/* Inhalt -------------------------------------------------------------- */

main {
  flex: 1 0 auto;
}

.hero {
  padding-top: var(--space-16);
}

.hero .display {
  margin-top: var(--space-4);
}

.hero .body-l {
  margin-top: var(--space-8);
}

.section {
  margin-top: var(--space-24);
}

.section-inner {
  border-top: 1px solid var(--ink);
  padding-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-6);
}

.section-inner > .headline {
  grid-column: 1 / span 4;
}

.section-inner > .section-body {
  grid-column: 5 / span 7;
}

@media (max-width: 1023px) {
  .section-inner > .headline,
  .section-inner > .section-body {
    grid-column: 1 / -1;
  }
}

.actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--ink-muted);
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 500 15px/22px var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--paper-tint);
}

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

/* Fußzeile ------------------------------------------------------------ */

.footer {
  margin-top: var(--space-32);
  padding-bottom: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer a,
.link-button {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer a:hover,
.link-button:hover {
  color: var(--ink);
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Consent: Leiste (Rechtstexte) und Softwall (Landingpage) --------- */

.consent--bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.consent-inner {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}

.consent p {
  margin: 0;
  max-width: 75ch;
}

.consent-actions {
  display: flex;
  gap: var(--space-3);
}

.consent--wall {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
}

.consent--wall[hidden] {
  display: none !important;
}

html.consent-pending .consent--wall[hidden] {
  display: flex !important;
}

html.consent-pending,
html.consent-pending body {
  overflow: hidden;
}

.consent-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2 * var(--space-4));
  overflow-y: auto;
  padding: var(--space-8);
  background: var(--paper);
  color: var(--ink);
}

.consent-title {
  margin: 0 0 var(--space-4);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.consent-card .consent-actions {
  margin-top: var(--space-8);
}

.consent-card .consent-actions .btn {
  flex: 1 1 0;
}

html.consent-lock,
html.consent-lock body {
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .consent--wall {
    background: rgba(0, 0, 0, 0.6);
  }

  .consent-card {
    border: 1px solid var(--rule);
  }
}

@media (max-width: 767px) {
  .consent--bar .consent-actions {
    width: 100%;
  }

  .consent--bar .consent-actions .btn {
    flex: 1 1 0;
  }

  .consent-card {
    padding: var(--space-6);
  }

  .consent-title {
    font-size: 24px;
  }
}

/* Rechtstexte --------------------------------------------------------- */

.legal {
  padding-top: var(--space-16);
}

.legal .display {
  margin-top: var(--space-4);
  white-space: normal;
}

.legal-section {
  margin-top: var(--space-16);
  border-top: 1px solid var(--ink);
  padding-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-4);
}

.legal-section > h2 {
  grid-column: 1 / span 4;
}

.legal-section > .legal-body {
  grid-column: 5 / span 7;
}

@media (max-width: 1023px) {
  .legal-section > h2,
  .legal-section > .legal-body {
    grid-column: 1 / -1;
  }
}

.legal-body h3 {
  margin: var(--space-8) 0 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

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

.legal-body p,
.legal-body ul {
  margin: var(--space-3) 0 0;
  max-width: 70ch;
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li + li {
  margin-top: var(--space-1);
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 14em) minmax(0, 1fr);
  gap: var(--space-2) var(--space-6);
}

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

.facts dd {
  margin: 0;
}

@media (max-width: 767px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts dd + dt {
    margin-top: var(--space-3);
  }
}

.link-button.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.link-button.text-link:hover {
  color: var(--ink-muted);
}
