/* ==========================================================================
   WP-Lackiertechnik – Stylesheet (Legal Pages)
   Dark Garage Design Language
   ========================================================================== */

/* ---- Custom Properties ---- */
:root {
  /* Dark Theme – default */
  --bg:           #0a0a0a;
  --surface:      #141414;
  --surface2:     #1c1c1c;
  --red:          #2563b8;  /* Markenblau (Variablenname aus Legacy beibehalten) */
  --red-dark:     #1c4d8f;
  --text:         #f0f0f0;
  --text-mid:     #c0c0c0;
  --muted:        #808080;
  --border:       #222222;
  --border-hi:    #333333;
  --logo-filter:  brightness(1.5) contrast(1.05);
  --page-hero-tint: rgba(37,99,184,0.08);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-h:        68px;
  --transition:   0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;         /* Seite bleibt immer im Dark-Garage-Stil, unabhängig vom Geräte-Theme */
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;
}

section { padding: 100px 0; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: border-bottom-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--red);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  flex-shrink: 0;
}

.brand-img {
  display: block;
  height: 46px;
  width: auto;
  filter: var(--logo-filter);
}

.footer .brand-img { height: 40px; }

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-brand-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 3px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  transition: background var(--transition) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover { background: var(--red-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 2px solid var(--red);
  padding: 0.5rem 0 1rem;
  flex-direction: column;
  z-index: 899;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}

.nav-mobile a:hover { color: var(--text); background: var(--surface2); }

.nav-mobile .nav-mobile-cta {
  color: var(--red) !important;
  border-bottom: none;
  margin-top: 0.25rem;
}

/* ---- Page Hero ---- */
.page-hero {
  background: var(--surface);
  color: var(--text);
  padding: calc(var(--nav-h) + 60px) 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, var(--page-hero-tint) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 0.95;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }

/* Safety stripes (thin divider) */
.safety-stripes {
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0 24px,
    var(--surface2) 24px 32px);
}

/* ---- Legal Content ---- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  line-height: 1.1;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
  line-height: 1.1;
}

.legal-content p {
  max-width: none;
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.legal-content strong { color: var(--text); }

.legal-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--text); }

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.legal-content ul li {
  color: var(--text-mid);
  margin-bottom: 0.5rem;
  padding-left: 28px;
  position: relative;
  line-height: 1.7;
}

.legal-content ul li::before {
  content: '//';
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  top: 4px;
}

/* ---- Footer ---- */
.footer {
  background: var(--surface);
  color: var(--muted);
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 56px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 0;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%);
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

.footer-brand-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
}

.footer h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--red); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-contact-item a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: none;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--red); }

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer { padding: 56px 0 0; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
}

@media (max-width: 540px) {
  .container { padding-inline: 16px; }
  section { padding: 56px 0; }

  .nav-brand-sub { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom-links { flex-direction: column; gap: 0.5rem; }

  .legal-content h2 { font-size: 1.2rem; }
  .legal-content h3 { font-size: 1.05rem; }
}
