* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f4f6;
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  background: #f3f4f6;
  color: #0f172a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
}

.header-inner {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ea580c;
  box-shadow: 0 0 18px rgba(234, 88, 12, 0.45);
}

.brand-name {
  color: #020617;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}

.back-link:hover {
  background: #f1f5f9;
  color: #020617;
}

.legal-section {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

.section-pattern {
  position: absolute;
  inset: 0;
  background-image: url("https://meine-neue-werkstattseite.de/bilder/hintergrund/pattern04.png");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(243, 244, 246, 0.82);
}

.section-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(234, 88, 12, 0.09), transparent 30%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 30%);
}

.legal-inner {
  position: relative;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 96px 32px;
}

.legal-heading {
  max-width: 768px;
}

.eyebrow {
  color: #ea580c;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.legal-heading h1 {
  margin: 12px 0 0;
  color: #020617;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.legal-heading p {
  margin: 20px 0 0;
  max-width: 720px;
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.legal-card {
  max-width: 896px;
  margin-top: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #ffffff;
  padding: 36px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.legal-content {
  display: grid;
  gap: 40px;
}

.legal-block h2 {
  margin: 0;
  color: #020617;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-block p {
  margin: 16px 0 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.address-block {
  margin-top: 16px;
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.address-block p {
  margin: 0;
}

.address-block p + p {
  margin-top: 8px;
}

.address-block strong,
.contact-lines strong {
  color: #020617;
  font-weight: 600;
}

.note-text {
  margin-top: 20px !important;
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.contact-lines {
  margin-top: 16px;
}

.contact-lines p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.contact-lines p + p {
  margin-top: 8px;
}

.legal-block a {
  color: #020617;
  font-weight: 500;
  transition: color 0.2s ease;
  word-break: break-word;
}

.legal-block a:hover {
  color: #ea580c;
}

.legal-block .accent-link {
  color: #ea580c;
  font-weight: 600;
}

.legal-block .accent-link:hover {
  text-decoration: underline;
}

.site-footer {
  background: #0a0a0a;
  color: #ffffff;
}

.footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.4;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 16px 24px;
  }

  .brand-name {
    font-size: 17px;
  }

  .back-link {
    display: none;
  }

  .legal-inner {
    padding: 64px 24px;
  }

  .legal-heading h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  .legal-heading p {
    font-size: 16px;
    line-height: 1.65;
  }

  .legal-card {
    margin-top: 40px;
    border-radius: 24px;
    padding: 28px 22px;
  }

  .legal-content {
    gap: 36px;
  }

  .legal-block h2 {
    font-size: 19px;
  }

  .legal-block p,
  .contact-lines p,
  .address-block {
    font-size: 16px;
    line-height: 1.65;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px 160px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}