/* ==========================================================================
   TSM One-Pager — imported from Claude Design (TSMDesignSystem_f21426)
   Tokens + component styles flattened from the design system into plain CSS.
   ========================================================================== */

/* NOTE: No external font load. Loading Google Fonts from Google's servers
   transmits the visitor's IP address to Google without consent, which German
   courts have ruled a DSGVO violation (LG München I, 20.01.2022, 3 O 17493/20).
   The site falls back to system fonts. To use "Source Sans 3", self-host the
   woff2 files locally and add an @font-face rule here — do NOT @import from
   fonts.googleapis.com. */

/* ---- Tokens: colors ---- */
:root {
  --brand-900: #0b3f54;
  --brand-800: #0e5570;
  --brand-700: #137295;
  --brand-500: #3a8fb0;
  --brand-300: #7bb7d4;
  --brand-200: #b9d9ef;
  --brand-100: #dcedf7;
  --brand-050: #f2f8fc;
  --ink-900: #122732;
  --ink-700: #33505c;
  --ink-500: #5c7480;
  --ink-300: #9fb2ba;
  --ink-150: #cfdadd;
  --ink-100: #e3ebed;
  --white: #ffffff;
  --success-700: #2f7a52;
  --success-100: #e3f3ea;
  --error-700: #b23a2e;
  --error-100: #fbe8e5;
  --text-body: var(--ink-900);
  --text-muted: var(--ink-700);
  --text-subtle: var(--ink-500);
  --text-on-brand: var(--white);
  --surface: var(--white);
  --surface-alt: var(--brand-050);
  --surface-brand: var(--brand-700);
  --surface-brand-alt: var(--brand-900);
  --border-default: var(--ink-150);
  --border-strong: var(--ink-300);
  --border-brand: var(--brand-200);
  --link: var(--brand-700);
  --link-hover: var(--brand-900);

  /* ---- Tokens: typography ---- */
  --font-sans: "Source Sans 3", "Myriad Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --text-xs: 1.3rem;
  --text-sm: 1.5rem;
  --text-base: 1.7rem;
  --text-lg: 2rem;
  --text-xl: 2.4rem;
  --text-2xl: 3.2rem;
  --text-3xl: 4.2rem;
  --text-4xl: 5.6rem;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;
  --tracking-tight: -0.01em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;

  /* ---- Tokens: spacing / radius / shadow ---- */
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.6rem;
  --space-5: 2.4rem;
  --space-6: 3.2rem;
  --space-7: 4.8rem;
  --space-8: 6.4rem;
  --space-9: 9.6rem;
  --space-10: 12.8rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(18, 39, 50, .08);
  --shadow-md: 0 6px 20px rgba(19, 114, 149, .12);
  --shadow-lg: 0 16px 40px rgba(11, 63, 84, .16);
  --container-width: 1120px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-normal);
  background: var(--surface);
}
a { color: var(--brand-700); font-weight: var(--weight-semibold); text-decoration: none; }
a:hover { color: var(--brand-900); }

.container { max-width: var(--container-width); margin: 0 auto; }

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  letter-spacing: var(--tracking-tight);
  padding: 1.2rem 2.4rem;
  font-size: var(--text-base);
  background: var(--brand-700);
  color: var(--text-on-brand);
  border: 1.5px solid var(--brand-700);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-900); border-color: var(--brand-900); color: var(--text-on-brand); }
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 0.9rem 1.8rem; font-size: var(--text-sm); }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--ink-100);
  color: var(--ink-700);
}
.badge--on-brand { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}

/* ---- SectionHeading ---- */
.section-heading { text-align: left; }
.section-heading--center { text-align: center; max-width: 640px; margin: 0 auto; }
.section-heading .eyebrow {
  color: var(--brand-700);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: var(--text-xs);
  margin-bottom: var(--space-2);
}
.section-heading h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  line-height: var(--leading-tight);
}
.section-heading .description {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-top: var(--space-3);
  line-height: var(--leading-normal);
}
.section-heading--invert .eyebrow { color: var(--brand-200); }
.section-heading--invert h2 { color: #fff; }
.section-heading--invert .description { color: rgba(255, 255, 255, .85); }

/* ---- Form fields (Input / Textarea) ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}
.field .req { color: var(--brand-700); }
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-body);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default);
  background: var(--white);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px var(--brand-100);
}

/* ---- Checkbox ---- */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox input {
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.1rem;
  accent-color: var(--brand-700);
  cursor: pointer;
}
/* Honeypot spam trap — kept out of view and off the tab order. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Layout: header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.4rem;
}
.brand { display: flex; align-items: center; gap: 1.2rem; }
.brand img { width: 44px; height: 44px; }
.brand .names { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
}
.brand .sub {
  font-weight: var(--weight-regular);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.site-nav {
  display: flex;
  gap: 2.8rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.site-nav a { color: var(--text-muted); font-weight: var(--weight-medium); }
.site-nav a:hover { color: var(--brand-900); }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, var(--brand-500) 0%, var(--brand-700) 55%, var(--brand-900) 100%);
  color: #fff;
  padding: 8rem 2.4rem 10rem;
  overflow: hidden;
}
.hero .inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}
.hero-copy { flex: 1 1 560px; min-width: 0; }
.hero-figure { flex: 0 0 auto; display: flex; justify-content: center; }
.hero-figure .disc {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
}
.hero-figure .disc img { width: 100%; height: 100%; display: block; }
.hero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 2.4rem 0 1.6rem;
  max-width: 800px;
}
.hero p {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  max-width: 640px;
  margin: 0 0 3.2rem;
  color: rgba(255, 255, 255, .92);
}
.hero .actions { display: flex; gap: 1.6rem; }
.hero .wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
}

/* ---- Sections ---- */
.section { padding: 8rem 2.4rem; }
.section--alt { background: var(--surface-alt); padding: 6rem 2.4rem; }
.section--surface { background: var(--surface); }
.section--contact { background: var(--brand-900); color: #fff; padding: 8rem 2.4rem; }
.section--impressum {
  flex: 1;
  background: var(--surface-alt);
  padding: 6rem 2.4rem;
  border-top: 1px solid var(--border-default);
}

/* Kontaktinfo grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}
.info-grid h3 {
  margin: 0 0 2.4rem;
  font-size: var(--text-xl);
  color: var(--ink-900);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}
.info-list { display: flex; flex-direction: column; gap: 1.6rem; font-size: var(--text-base); }
.info-list a { display: flex; align-items: center; gap: 1.2rem; }
.info-list a.addr { align-items: flex-start; line-height: var(--leading-normal); }
.info-list svg { flex-shrink: 0; }

.hours { display: flex; flex-direction: column; gap: 1.6rem; }
.hours .row { display: flex; justify-content: space-between; align-items: baseline; }
.hours .row .days { font-weight: var(--weight-semibold); color: var(--ink-900); font-size: var(--text-base); }
.hours .row .time { color: var(--text-muted); font-size: var(--text-base); }
.hours .divider { height: 1px; background: var(--border-default); }

/* Leistungen */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin-top: 5rem;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--brand-700);
}
.services-grid h3 {
  margin: 0 0 1rem;
  font-size: var(--text-lg);
  color: var(--ink-900);
  font-weight: var(--weight-bold);
}
.services-grid p { margin: 0; color: var(--text-muted); line-height: var(--leading-normal); }

/* Kontakt form card */
.contact-inner { max-width: 800px; margin: 0 auto; }
.form-card {
  margin-top: 4.8rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 4rem;
}
.contact-form { display: flex; flex-direction: column; gap: 2rem; }
.contact-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-sent {
  text-align: center;
  color: var(--success-700);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0;
}
.form-error {
  text-align: center;
  color: var(--danger-700, #b3261e);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin: 0 0 1.6rem;
}

/* Impressum */
.impressum-inner { max-width: 800px; margin: 0 auto; }
.impressum-body {
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
}
.impressum-body .label { font-weight: var(--weight-semibold); color: var(--ink-900); margin-bottom: 0.6rem; }
.impressum-body .muted { color: var(--text-muted); }
.impressum-body .note { color: var(--text-subtle); font-size: var(--text-sm); }

/* Legal pages (Impressum / Datenschutz) */
.section--legal {
  flex: 1;
  background: var(--surface);
  padding: 6rem 2.4rem;
  border-top: 1px solid var(--border-default);
}
.legal { max-width: 800px; margin: 0 auto; }
.legal-body { margin-top: 3.2rem; }
.legal-body h3 {
  font-size: var(--text-xl);
  color: var(--ink-900);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin: 3.6rem 0 1.2rem;
}
.legal-body h4 {
  font-size: var(--text-lg);
  color: var(--ink-900);
  font-weight: var(--weight-semibold);
  margin: 2.4rem 0 0.8rem;
}
.legal-body p,
.legal-body li {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-normal);
  margin: 0 0 1.2rem;
}
.legal-body ul { margin: 0 0 1.6rem; padding-left: 2.2rem; }
.legal-body li { margin: 0 0 0.6rem; }
.legal-body .muted { color: var(--text-muted); }
.legal-body .updated {
  margin-top: 4rem;
  color: var(--text-subtle);
  font-size: var(--text-sm);
}
.legal-back { margin-top: 3.2rem; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 4rem 2.4rem;
  font-size: var(--text-sm);
}
.site-footer .bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.site-footer a { color: var(--brand-200); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  /* Keep the header CTA on one line; let the brand name wrap (stay fully visible). */
  .site-header .btn { flex-shrink: 0; }
  .brand { min-width: 0; }
  .brand .names { min-width: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: var(--text-3xl); }
  .hero .inner { flex-direction: column-reverse; gap: 3.2rem; align-items: flex-start; }
  .hero-figure { align-self: center; }
  .hero-figure .disc { width: 220px; height: 220px; padding: 1.8rem; }
}
@media (max-width: 560px) {
  .contact-form .two-col { grid-template-columns: 1fr; }
  .form-card { padding: 2.4rem; }
  .site-footer .bar { flex-direction: column; }
}
