/* =========================================================
   pils.mobi / Reifen Müller GmbH
   Drop-in CSS – funktioniert ohne HTML-Änderungen
   Datei z.B. als style.css oder pils-style.css hochladen
   ========================================================= */

:root {
  --bg: #080b10;
  --bg-soft: #111722;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --muted: #b8c2d1;
  --accent: #ffcc00;
  --accent-2: #ff6b00;
  --danger: #ff3b30;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 204, 0, 0.26), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(255, 107, 0, 0.22), transparent 30%),
    linear-gradient(135deg, #07090d 0%, #111827 54%, #07090d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  background-image:
    linear-gradient(45deg, #fff 1px, transparent 1px),
    linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 0.85rem;
}

h1 {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: clamp(3rem, 10vw, 6.8rem);
  font-weight: 950;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 48%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
}

h1::after {
  content: "";
  display: block;
  width: min(230px, 58vw);
  height: 8px;
  margin-top: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

h2 {
  margin-top: 2.3rem;
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3.1rem);
}

p,
ul,
ol {
  color: var(--muted);
  margin-top: 0;
}

p:has(+ img),
p:has(+ picture) {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 10px;
}

/* Erste Link-Zeile als Navigation aufwerten */
body > a:nth-of-type(1),
body > a:nth-of-type(2),
body > a:nth-of-type(3) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.35rem 0.25rem 1.4rem 0;
  padding: 0.65rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

body > a:nth-of-type(1):hover,
body > a:nth-of-type(2):hover,
body > a:nth-of-type(3):hover {
  color: #111;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Pipe-Zeichen optisch zurücknehmen, falls sie im HTML als Text bleiben */
body {
  word-spacing: 0.02em;
}

img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 1.5rem 0 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  object-fit: cover;
}

ul,
ol {
  padding: 1.25rem 1.4rem 1.25rem 2.3rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

li {
  margin: 0.45rem 0;
  padding-left: 0.25rem;
}

li::marker {
  color: var(--accent);
}

/* Content-Abschnitte subtil als moderne Cards */
h2 + p,
h2 + ul,
h2 + ol {
  position: relative;
}

h2 + p {
  max-width: 760px;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

/* Rabatt-Satz extra knackig */
h2 + p:first-letter {
  color: var(--accent);
  font-weight: 900;
}

/* Kontaktblock: wirkt auch ohne eigene Klasse */
body > p:nth-last-of-type(-n + 3),
body > a[href*="orf.at"] {
  font-size: 1rem;
}

body > p:nth-last-of-type(3) {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: #111;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

footer,
body > p:last-child {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--card-border);
  color: rgba(244, 247, 251, 0.58);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  body {
    padding: 18px;
    font-size: 16px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }

  body > a:nth-of-type(1),
  body > a:nth-of-type(2),
  body > a:nth-of-type(3) {
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }

  h2 + p,
  ul,
  ol {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
