/* Oberflächentechnik Winter – Wartungsseite
   Keine externen Schriften, keine Cookies, kein Tracking. */

:root {
  --red: #991923;
  --red-dark: #7d131c;
  --ink: #242424;
  --muted: #6b6b6b;
  --line: #ececec;
  --bg: #f5f4f2;
  --card: #ffffff;
  --radius: 30px;
  --shadow: 0 10px 33px -8px rgba(0, 0, 0, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Layout ---------- */
.wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--card);
  border: 1px solid #f2f2f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Akzent – greift den roten Block aus dem Logo auf */
.card::before {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 320px; height: 210px;
  border-radius: 48px;
  background: var(--red);
  opacity: .06;
  transform: rotate(-10deg);
  pointer-events: none;
}
.card-inner { position: relative; }

.card-inner { padding: 64px 64px 56px; }

.logo { display: block; width: fit-content; }
.logo img { display: block; width: 190px; height: auto; }

/* ---------- Startseite ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 44px 0 18px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: #f8eeef;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status .dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.status .dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(3.2); opacity: 0; }
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 span { color: var(--red); }

.lead {
  max-width: 620px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 18px;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 16px;
  margin-bottom: 28px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tile:hover {
  color: var(--ink);
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.tile svg { width: 22px; height: 22px; margin-bottom: 8px; color: var(--red); }
.tile small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tile strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}
.address svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* ---------- Footer ---------- */
.footer {
  padding: 0 16px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer nav { display: inline-flex; gap: 22px; margin-left: 22px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--red); }

/* ---------- Rechtliche Seiten ---------- */
.legal .wrap { align-items: flex-start; }
.legal .card { max-width: 820px; }
.legal .card-inner { padding: 56px 64px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.back svg { width: 16px; height: 16px; }

.legal h1 { margin: 6px 0 32px; }
.legal h2 {
  margin: 36px 0 10px;
  font-size: 19px;
  line-height: 1.35;
}
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 20px; }
.legal .box {
  margin: 0 0 8px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--bg);
}
.legal .box p:last-child { margin-bottom: 0; }
.legal .todo { background: #fff4d6; padding: 1px 6px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .card-inner, .legal .card-inner { padding: 44px 26px 36px; }
  .card::before { width: 200px; height: 140px; top: -60px; right: -80px; }
  .logo img { width: 160px; }
  .status { margin-top: 34px; }
  .lead { font-size: 17px; margin-bottom: 32px; }
  .contacts { grid-template-columns: 1fr; gap: 12px; }
  .tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 18px 20px; }
  .tile svg { margin: 0; }
  .tile small { flex: 1; }
  .tile strong { width: 100%; margin-top: 2px; }
  .btn { width: 100%; justify-content: center; }
  .footer nav { display: flex; justify-content: center; margin: 8px 0 0; }
}

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