*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Primärfarben — Vertrauen & Seriosität */
  --color-primary: #2C3E50;
  --color-primary-light: #34495E;
  --color-primary-dark: #1A252F;
  /* Akzentfarben — sparsam */
  --color-accent: #C0651E;
  --color-accent-hover: #9E521A;
  /* Hintergrund & Surface */
  --color-bg: #FFFFFF;
  --color-bg-alt: #EDF0F2;
  --color-surface: #FFFFFF;
  /* Text */
  --color-text: #1A1A1A;
  --color-text-muted: #6C757D;
  --color-link: #0056B3;
  --color-link-hover: #003D80;
  /* Border */
  --color-border: #DEE2E6;
  /* Status */
  --color-success: #2E7D32;
  --color-warning: #F57F17;
  --color-error: #C62828;
  /* Accessibility */
  --color-focus: #0056B3;
  /* Typografie */
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --line-height: 1.6;
  --line-height-tight: 1.2;
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --container-max: 1200px;
  --container-padding: 1rem;
  --border-radius: 8px;
  /* Breakpoints */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;
  /* Shadows — print-like */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 2px 6px rgba(26, 26, 26, 0.07);
}

[data-theme="dark"] {
  --color-primary: #E8ECEF;
  --color-primary-light: #D4DCE2;
  --color-primary-dark: #F4F6F8;
  --color-accent: #E89B4A;
  --color-accent-hover: #F2B878;
  --color-bg: #1A252F;
  --color-bg-alt: #22303C;
  --color-surface: #22303C;
  --color-text: #E8ECEF;
  --color-text-muted: #9AA7B0;
  --color-link: #7FB3FF;
  --color-link-hover: #A8CFFF;
  --color-border: #334155;
  --color-success: #81C784;
  --color-warning: #FFB74D;
  --color-error: #EF5350;
  --color-focus: #7FB3FF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: var(--line-height-tight); font-weight: 500; }
a { color: var(--color-link); text-decoration: underline; }
a:hover { color: var(--color-link-hover); }
ul { list-style: none; }

::selection { background: var(--color-primary); color: var(--color-bg); }

*:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

/* Skip links */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-sm);
  z-index: 10000;
  background: var(--color-bg);
  color: var(--color-link);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--fs-sm);
}
.skip-link:focus { left: var(--space-md); }

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.section { padding: var(--space-2xl) var(--container-padding); }
.section--alt { background-color: var(--color-bg-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section__head { max-width: 720px; margin-bottom: var(--space-xl); }
.section__eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.section__title { font-size: var(--fs-2xl); margin-bottom: var(--space-md); }
.section__title em { font-style: italic; color: var(--color-accent); font-weight: 500; }
.section__intro { font-size: var(--fs-md); color: var(--color-text-muted); line-height: var(--line-height); max-width: 720px; }
.section__intro strong { color: var(--color-text); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background-color: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary); }
.btn--primary:hover { background-color: var(--color-primary-dark); color: var(--color-bg); }
.btn--secondary { background-color: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: var(--color-bg-alt);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav--scrolled { border-bottom-color: var(--color-primary); }
[data-theme="dark"] .nav { background-color: var(--color-bg-alt); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--container-padding);
  gap: var(--space-md);
}
.nav__brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span { color: var(--color-accent); font-weight: 500; }

.nav__links { display: none; align-items: center; gap: var(--space-lg); }
.nav__links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--color-primary); }

.nav__actions { display: flex; align-items: center; gap: var(--space-sm); }
.nav__toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav__toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.nav__toggle svg { width: 15px; height: 15px; }
.nav__cta { display: none; }

.nav__menu-btn { display: inline-flex; }
.nav__menu-btn svg { width: 16px; height: 16px; }

.nav--open .nav__links {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--container-padding) var(--space-md);
}
.nav--open .nav__links a { display: block; padding: var(--space-sm) 0; width: 100%; }

/* Hero */
.hero { padding: var(--space-3xl) var(--container-padding) var(--space-2xl); }
.hero__inner { display: grid; gap: var(--space-xl); }
.hero__left { display: flex; flex-direction: column; }
.hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.hero__title { font-size: var(--fs-2xl); margin-bottom: var(--space-md); }
.hero__title em { font-style: italic; color: var(--color-accent); font-weight: 500; }
.hero__desc { font-size: var(--fs-md); color: var(--color-text-muted); line-height: var(--line-height); max-width: 520px; margin-bottom: var(--space-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }
.hero__stat .num { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--color-primary); display: block; line-height: var(--line-height-tight); }
.hero__stat .lbl { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* Cards (shared) */
.card { background-color: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--border-radius); }

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-lg);
}
.card--service {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  padding: var(--space-lg);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.12);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card--service:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.16);
}
[data-theme="dark"] .card--service { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .card--service:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65); }
.card--service .card__header { display: flex; flex-direction: column; padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-border); }
.card__title-row { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.card__icon { width: 1.25em; height: 1.25em; color: var(--color-accent); flex-shrink: 0; }
.card__title { font-size: var(--fs-xl); margin-bottom: 0; }
.card__subtitle { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--line-height); margin-bottom: 0; }
.card--service .card__list { align-self: start; }
.card--service .card__footer { padding-top: var(--space-md); border-top: 1px solid var(--color-border); text-align: right; }
.card__more { color: var(--color-accent); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: color 0.15s ease; }
.card__more:hover { color: var(--color-accent-hover); text-decoration: underline; }
.card__list { padding: 0; }
.card__list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height);
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 1px;
  background-color: var(--color-text-muted);
}
.card--service .card__list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height);
}
.card--service .card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}
.services__disclaimer { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-border); font-size: var(--fs-sm); color: var(--color-text-muted); text-align: center; }

/* Expertise */
.expertise__list { display: flex; flex-direction: column; gap: var(--space-lg); }
.card--lecture { display: grid; grid-template-columns: 1fr; gap: var(--space-md); padding: var(--space-lg); background-color: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); box-shadow: 0 4px 12px rgba(26, 26, 26, 0.12); transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.card--lecture:hover { border-color: var(--color-primary); box-shadow: 0 8px 20px rgba(26, 26, 26, 0.16); }
[data-theme="dark"] .card--lecture { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .card--lecture:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65); }
.card__header { padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-border); }
.card__header .card__title { font-size: var(--fs-xl); margin-bottom: 0; }
.card__body { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.card__summary { padding-right: 0; }
.card__topics { padding-left: 0; border-left: none; }
.card__summary p { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--line-height); margin-bottom: var(--space-sm); }
.card__summary p:last-child { margin-bottom: 0; }
.card__topics-label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.card__footer { padding-top: var(--space-md); border-top: 1px solid var(--color-border); font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--line-height); }

/* Technology */
.technology__placeholder { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--line-height); max-width: 720px; }
.technology__placeholder p { margin-bottom: var(--space-md); }
.technology__note { font-size: var(--fs-xs); color: var(--color-text-muted); font-style: italic; margin-top: var(--space-md); }

/* Unternehmen */
.about__block { margin-bottom: var(--space-xl); max-width: 720px; }
.about__block h3 { font-size: var(--fs-lg); margin-bottom: var(--space-md); }
.about__block p { font-size: var(--fs-md); color: var(--color-text-muted); line-height: var(--line-height); margin-bottom: var(--space-sm); }
.about__block p:last-child { margin-bottom: 0; }
.team__intro { font-size: var(--fs-md); color: var(--color-text-muted); line-height: var(--line-height); max-width: 720px; margin-bottom: var(--space-xl); }

.team__grid {
  display: flex;
  flex-direction: column;
}
.card--member {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
}
.team__grid .card--member + .card--member { border-top: 1px solid var(--color-border); }
.member__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}
.member__desc { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.card__photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.card--member .card__title { font-size: var(--fs-md); margin-bottom: 0; }
.card__role { font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0; }
.member__desc p { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--line-height); }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.card--contact { padding: var(--space-md) var(--space-lg); transition: background-color 0.15s ease; }
.card--contact:hover { background-color: var(--color-bg-alt); }
.card--contact .card__label { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-sm); font-family: var(--font-body); font-weight: 600; }
.card--contact a { font-size: var(--fs-md); color: var(--color-text); text-decoration: none; border-bottom: 1px solid var(--color-border); transition: color 0.15s ease, border-color 0.15s ease; }
.card--contact a:hover { color: var(--color-link); border-bottom-color: var(--color-link); }

.contact__form { margin-top: var(--space-lg); max-width: 560px; background-color: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: var(--space-lg); }
.contact__form .card__title { font-size: var(--fs-lg); margin-bottom: var(--space-xs); }
.contact__form .form__sub { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.form__group { margin-bottom: var(--space-md); }
.form__row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.form__group label { display: block; font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: var(--space-xs); font-weight: 600; letter-spacing: 0.02em; }
.form__group input, .form__group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color 0.15s ease;
}
.form__group input:focus, .form__group textarea:focus { outline: none; border-color: var(--color-primary); }
.form__group textarea { min-height: 130px; resize: vertical; }

/* Footer */
.footer { border-top: 1px solid var(--color-border); background-color: var(--color-bg); }
.footer__inner { max-width: var(--container-max); margin: 0 auto; padding: var(--space-lg) var(--container-padding); display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); align-items: center; justify-content: space-between; }
.footer__copy { font-size: var(--fs-xs); color: var(--color-text-muted); text-align: left; margin: 0; }
.footer__links { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: flex-end; }
.footer__links a { color: var(--color-text-muted); text-decoration: none; font-size: var(--fs-xs); transition: color 0.15s ease; }
.footer__links a:hover { color: var(--color-primary); }

/* Password gate */
.gate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background-color: var(--color-bg); padding: var(--space-lg); }
.gate--hidden { display: none; }
.gate__card { width: 100%; max-width: 320px; text-align: center; }
.gate__brand { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.06em; color: var(--color-primary); margin-bottom: var(--space-lg); }
.gate__brand span { color: var(--color-accent); font-weight: 500; }
.gate__title { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--color-primary); margin-bottom: var(--space-md); font-weight: 500; }
.gate__input { width: 100%; padding: var(--space-sm) var(--space-sm); border: 1px solid var(--color-border); border-radius: var(--border-radius); font-family: var(--font-body); font-size: var(--fs-sm); color: var(--color-text); background-color: var(--color-surface); text-align: center; margin-bottom: var(--space-md); transition: border-color 0.15s ease; }
.gate__input:focus { outline: none; border-color: var(--color-primary); }
.gate__btn { width: 100%; padding: var(--space-sm) var(--space-md); background-color: var(--color-primary); color: var(--color-bg); border: none; border-radius: var(--border-radius); font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: background-color 0.15s ease; }
.gate__btn:hover { background-color: var(--color-primary-dark); }
.gate__error { margin-top: var(--space-sm); font-size: var(--fs-xs); color: var(--color-error); opacity: 0; height: 1rem; transition: opacity 0.15s ease; }
.gate__error--show { opacity: 1; }

/* Breakpoints — mobile-first */
@media (min-width: 576px) {
  :root { --container-padding: 1.5rem; }
}
@media (min-width: 768px) {
  :root { --container-padding: 2rem; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__menu-btn { display: none; }
  .hero__title { font-size: var(--fs-3xl); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .card__body { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .card__summary { padding-right: var(--space-xl); }
  .card__topics { padding-left: var(--space-xl); border-left: 1px solid var(--color-border); }
  .card--member { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-xl); align-items: center; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .section__title { font-size: var(--fs-2xl); }
}
@media (min-width: 992px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
