/* ============================================================
   Reifen Peter GmbH — Feldkirch
   Farbwelt: Anthrazit / Signalrot / Weiß (abgeleitet vom Logo)
   ============================================================ */

:root {
  --ink: #17191e;
  --ink-2: #21242b;
  --ink-3: #2c3038;
  --red: #d2232a;
  --red-dark: #ab1a20;
  --paper: #f6f6f7;
  --white: #ffffff;
  --grey: #6b6f78;
  --line: #e4e5e8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 25, 30, 0.10);
  --shadow-lg: 0 18px 50px rgba(23, 25, 30, 0.18);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head p { color: var(--grey); margin-top: 0.8rem; font-size: 1.05rem; }

section { padding: 5.5rem 0; }

/* Reifenprofil-Akzentlinie (Anlehnung ans Logo) */
.tread {
  height: 10px;
  background:
    repeating-linear-gradient(
      -55deg,
      var(--red) 0 14px,
      var(--red-dark) 14px 18px
    );
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }

.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a { color: var(--white); font-weight: 600; }
.topbar .hours { display: flex; align-items: center; gap: 0.45rem; }
.topbar svg { width: 0.95em; height: 0.95em; opacity: 0.7; }

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

header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
header.site.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}
.nav .logo img { height: 56px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 1.02rem;
  color: var(--ink);
}
.nav-links a:hover { color: var(--red); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-cta .btn { padding: 0.6rem 1.3rem; font-size: 0.98rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 6rem 0;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,14,17,0.92) 0%, rgba(13,14,17,0.72) 45%, rgba(13,14,17,0.25) 100%);
  z-index: -1;
}

.hero-inner { max-width: 720px; }

.hero .kicker { color: #ff8a8f; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead {
  margin: 1.3rem 0 2.2rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.88);
  max-width: 580px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.6rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.badge svg { width: 1em; height: 1em; color: var(--red); flex: none; }

/* ---------- Leistungen ---------- */

.services { background: var(--paper); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(210, 35, 42, 0.10);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.service-card .icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--grey); font-size: 0.97rem; line-height: 1.5; }

/* ---------- Termin-Band ---------- */

.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 3.2rem 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,0.88); margin-top: 0.4rem; max-width: 560px; }
.cta-band .btn { background: var(--white); color: var(--red); }
.cta-band .btn:hover { background: var(--ink); color: var(--white); }

/* ---------- Split-Sektionen (Bild + Text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content .kicker { margin-bottom: 0.4rem; }
.split-content p { color: var(--grey); margin: 1rem 0; }

.checklist { list-style: none; margin: 1.4rem 0 1.8rem; }
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  font-weight: 500;
}
.checklist svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex: none;
  margin-top: 3px;
}

/* ---------- Gut zu wissen ---------- */

.facts {
  background:
    linear-gradient(rgba(20,22,26,0.93), rgba(20,22,26,0.95)),
    url("../assets/felgen.jpg") center 35% / cover no-repeat;
  color: var(--white);
}
.facts .section-head p { color: rgba(255,255,255,0.65); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.fact-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
}
.fact-card .fact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(210,35,42,0.18);
  color: #ff7378;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.fact-card .fact-icon svg { width: 26px; height: 26px; }
.fact-card h3 { margin-bottom: 0.55rem; }
.fact-card p { color: rgba(255,255,255,0.72); font-size: 0.97rem; }
.fact-card strong { color: var(--white); }

/* ---------- Partner ---------- */

.partners { padding: 3.4rem 0; border-bottom: 1px solid var(--line); }
.partners .container { text-align: center; }
.partners .label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1rem;
}
.partner-chip {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--ink-3);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
}

/* ---------- Kontakt ---------- */

.contact { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2.2rem;
}

.contact-rows { list-style: none; margin: 1.4rem 0 1.8rem; }
.contact-rows li {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-rows li:last-child { border-bottom: none; }
.contact-rows svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 4px; }
.contact-rows .t { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); font-weight: 600; }
.contact-rows .v { font-weight: 600; color: var(--ink); }
.contact-rows .v a { color: var(--ink); }
.contact-rows .v a:hover { color: var(--red); }
.contact-rows .sub { font-size: 0.9rem; color: var(--grey); font-weight: 400; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.3rem; }
.hours-table td { padding: 0.3rem 0; font-weight: 500; }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* Karte mit Consent-Schutz (DSGVO) */
.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--ink-2);
  display: grid;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: rgba(255,255,255,0.85);
  padding: 2rem;
  background:
    linear-gradient(rgba(23,25,30,0.86), rgba(23,25,30,0.86)),
    repeating-linear-gradient(-55deg, #23262d 0 16px, #1d2026 16px 32px);
}
.map-consent p { max-width: 420px; font-size: 0.95rem; }

/* ---------- Händler-Band ---------- */

.b2b {
  background: var(--ink);
  color: var(--white);
  padding: 3.2rem 0;
}
.b2b .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.b2b p { color: rgba(255,255,255,0.7); margin-top: 0.4rem; max-width: 560px; }

/* ---------- Footer ---------- */

footer.site {
  background: #101115;
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid img { height: 46px; width: auto; background: var(--white); padding: 6px 12px; border-radius: 8px; }
.footer-grid h4 { color: var(--white); margin-bottom: 0.9rem; font-size: 1.05rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 0.22rem 0; }
.footer-grid a { color: rgba(255,255,255,0.65); }
.footer-grid a:hover { color: var(--white); }
.footer-note { margin-top: 1rem; max-width: 420px; line-height: 1.55; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }

/* ---------- Rechtsseiten ---------- */

.legal { padding: 4.5rem 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 0.8rem; }
.legal p, .legal li { color: var(--ink-3); margin-bottom: 0.7rem; }
.legal ul { padding-left: 1.3rem; }
.legal .box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 1.2rem 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 4%;
    gap: 1.1rem;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 820px) {
  section { padding: 3.8rem 0; }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.reverse > .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .topbar .hours-extra { display: none; }
  .hero { min-height: min(72vh, 620px); }
  .nav-cta .haendler-link { display: none; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .nav { gap: 0.6rem; }
  .nav .logo img { height: 38px; }
  .nav-cta { gap: 0.5rem; }
  .nav-cta .btn { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
  .nav-cta .btn svg { display: none; }
  .topbar { font-size: 0.78rem; }
  body { font-size: 16px; }
}
