/* ============================================================
   nullroutine — zentrales Stylesheet
   ============================================================ */

/* --- Schriften lokal (DSGVO-konform) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/robotomono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/robotomono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens --- */
:root {
  --bg: #ffffff;
  --main: #1a1a1a;
  --muted: #666666;
  --accent: #000000;
  --border: #eeeeee;
  --error: #d32f2f;
}

/* --- Reset + Base --- */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--main);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: 'Roboto Mono', ui-monospace, monospace; }

/* --- a11y: Skip-Link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--main);
  color: #fff;
  padding: 12px 20px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- a11y: Focus-Indicator (sichtbar für Keyboard) --- */
:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 2px;
}

/* --- a11y: visually-hidden für Screen-Reader-only Labels --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- a11y: Reduced Motion respektieren --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Main Content default sichtbar (kein JS-Lock-Screen mehr) --- */
#main-content { display: block; }

/* --- Container --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 24px);
}
.container--narrow { max-width: 900px; }
.container--legal { max-width: 800px; }

/* --- Header + Logo --- */
header { text-align: center; margin-bottom: 60px; }
.logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}
.logo-img:hover { transform: scale(1.02); }

h1 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

/* --- Hero --- */
.hero-text {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 60px 0;
  text-align: center;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--main);
  margin: 40px auto;
}

/* --- Services --- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin-top: 60px;
}
.service-card {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.service-card h2 {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--main);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* --- CTAs --- */
.cta-section {
  text-align: center;
  margin-top: 100px;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.cta-button {
  display: inline-block;
  padding: 20px 50px;
  background: var(--main);
  color: #fff;
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
}
.cta-button:hover, .cta-button:focus-visible { background: #333; }
.contact-note {
  margin-top: 30px;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
footer.main-footer {
  margin-top: 100px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-left p { margin: 4px 0; }
.footer-right a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  transition: color 0.2s;
}
.footer-right a:hover, .footer-right a:focus-visible { color: var(--main); }

/* --- Marken-Disclaimer (alle Seiten) --- */
.brand-disclaimer {
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.05em;
  opacity: 0.75;
}

/* --- Subpage Header (zurück-Link) --- */
.back-link {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 40px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.back-link:hover, .back-link:focus-visible {
  color: var(--main);
  border-bottom-color: var(--main);
}

/* --- Angebote Page --- */
.intro {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
}
.offer-card {
  border: 1px solid var(--main);
  padding: 40px;
  margin-top: 60px;
  position: relative;
}
.offer-label {
  position: absolute;
  top: -12px;
  left: 40px;
  background: var(--bg);
  padding: 0 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--main);
}
.offer-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 10px 0 40px 0;
  letter-spacing: -0.02em;
}
.offer-steps { list-style: none; padding: 0; margin: 0; }
.step-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.step-item:last-child { border-bottom: 1px solid var(--border); }
.step-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--main);
}
.step-desc { font-size: 0.95rem; color: var(--muted); margin: 0; }
.action-area { margin-top: 40px; text-align: right; }
.cta-button--small { padding: 16px 32px; font-size: 0.8rem; letter-spacing: 0.1em; }

/* --- Legal (Impressum/Datenschutz) --- */
.legal-h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--main);
  display: inline-block;
  padding-bottom: 8px;
  color: var(--main);
}
.legal-box {
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.legal-box section { margin-bottom: 40px; }
.legal-box h2 {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--main);
  font-weight: 700;
}
.legal-box p, .legal-box li {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 10px 0;
}
.legal-box a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal-box a:hover, .legal-box a:focus-visible { color: var(--main); }
.legal-box ul {
  padding-left: 20px;
  list-style-type: square;
  color: var(--muted);
  font-size: 0.95rem;
}
.legal-box strong { color: var(--main); }

.legal-footer {
  margin-top: 80px;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Pages-specific Page-Title (angebote) --- */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-text { font-size: 1.75rem; }
  footer.main-footer { justify-content: center; text-align: center; }
  .footer-right { margin-top: 20px; width: 100%; }
}
@media (max-width: 600px) {
  .step-item { grid-template-columns: 1fr; gap: 8px; }
  .action-area { text-align: left; }
  .offer-card { padding: 30px 20px; }
  .offer-label { left: 20px; }
}
