:root {
  --bg: #fdf8f8;
  --card: #ffffff;
  --text: #1f0f12;
  --muted: #5c343b;
  --accent: #af2031;
  --accent-soft: #f4d8dd;
  --border: #f0cfd6;
  --shadow: 0 10px 30px rgba(31, 15, 18, 0.08);
  --radius: 12px;
  --header-offset: 120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 248, 248, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.nav-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  grid-column: 2 / 4;
}

.logo {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #fff;
  padding: 4px;
}

.logo-name {
  font-weight: 700;
}

.logo-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-weight: 600;
}

.main-nav a {
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-button {
  background: none;
  border: none;
  font: inherit;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.main-nav a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-button:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.header-actions > a {
  width: 170px;
  justify-content: center;
}

.phone {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  color: var(--text);
  justify-self: end;
  grid-column: 3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.full-width {
  width: 100%;
}

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}

h1 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: #fbeff1;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.checklist li::before {
  content: "✔";
  margin-right: 0.4rem;
  color: var(--accent);
}

.info-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.bullet-list li + li {
  margin-top: 0.35rem;
}

.highlight-box ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.highlight-box {
  position: sticky;
  top: 100px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.hero-portrait-card {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 1rem;
}

.hero-portrait {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--border);
}

.hero-portrait-link {
  font-weight: 700;
  color: var(--text);
}

.hero-portrait-card:hover,
.hero-portrait-card:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.portrait-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  margin: 0;
  width: 100%;
}

.portrait {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto;
  border: 3px solid var(--border);
}

.portrait-caption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.steps h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.contact-box p {
  margin: 0.25rem 0;
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.6rem;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(175, 32, 49, 0.15);
  border-color: var(--accent);
}

.form-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.form-status {
  min-height: 1.2em;
  margin: 0.35rem 0 0.5rem;
  font-weight: 600;
}

.form-status.success {
  color: #2d7a2d;
}

.form-status.error {
  color: var(--accent);
}

.form-status.info {
  color: var(--muted);
}

.impressum-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.impressum-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.impressum-company {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.impressum-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  row-gap: 0.35rem;
  margin: 0 0 0.6rem;
  padding: 0;
}

.impressum-list dt {
  font-weight: 700;
  color: var(--text);
}

.impressum-list dd {
  margin: 0;
  color: var(--muted);
}

.impressum-note {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 30;
}

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 15, 18, 0.45);
}

.modal-dialog {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: min(900px, 94vw);
  max-height: 88vh;
  overflow: auto;
  padding: 1.4rem 1.3rem 1.6rem;
  z-index: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-title {
  margin: 0;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}

.modal-body {
  display: grid;
  gap: 0.9rem;
  color: var(--muted);
}

.modal-body h3 {
  margin: 0.6rem 0 0.2rem;
  color: var(--text);
}

.modal-body p {
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.modal-list {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.6rem;
  color: var(--muted);
}

.modal-list li + li {
  margin-top: 0.25rem;
}

.site-footer {
  padding: 2rem 0;
  background: #2a0d11;
  color: #f6e5e8;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.35rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1rem 2rem;
  align-items: center;
}

.footer-column {
  display: grid;
  gap: 0.4rem;
}

.footer-column a {
  color: #f6e5e8;
  font-weight: 600;
}

.footer-column-actions {
  align-self: center;
  justify-items: stretch;
}

.footer-column .nav-button {
  color: #f6e5e8;
  border: 1px solid rgba(246, 229, 232, 0.35);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.footer-column .nav-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(246, 229, 232, 0.6);
}

.back-to-top {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 229, 232, 0.35);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #f6e5e8;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(246, 229, 232, 0.6);
  text-decoration: none;
}

.footer-column-back {
  align-self: center;
  justify-self: end;
  margin-left: 1.5rem;
}

.credit-link {
  color: #f6e5e8;
  font-size: 0.95rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.cookie-banner p {
  margin: 0;
  color: var(--text);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner[hidden] {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --mobile-font-bump: 0.17rem;
  }

  h1 {
    font-size: calc(clamp(1.9rem, 2.4vw + 1rem, 2.5rem) + var(--mobile-font-bump));
  }

  h2 {
    font-size: calc(1.6rem + var(--mobile-font-bump));
  }

  h3,
  h4 {
    font-size: calc(1.25rem + var(--mobile-font-bump));
  }

  .eyebrow {
    font-size: calc(0.78rem + var(--mobile-font-bump));
  }

  .lead {
    font-size: calc(1.05rem + var(--mobile-font-bump));
  }

  .logo-name {
    font-size: calc(1rem + var(--mobile-font-bump));
  }

  .logo-sub {
    font-size: calc(0.9rem + var(--mobile-font-bump));
  }

  .menu-toggle {
    font-size: calc(1.3rem + var(--mobile-font-bump));
  }

  .main-nav,
  .header-actions,
  .phone,
  .btn,
  label,
  input,
  textarea,
  .form-hint,
  .form-note,
  .form-status,
  .bullet-list,
  .bullet-list li,
  .checklist,
  .checklist li,
  .steps,
  .steps li,
  .contact-box,
  .contact-box p,
  .contact-box a,
  .info-box,
  .highlight-box,
  .modal-body,
  .credit-link,
  .back-to-top,
  .cookie-banner,
  .cookie-banner p,
  .impressum-note,
  .impressum-list,
  .portrait-caption {
    font-size: calc(1rem + var(--mobile-font-bump));
  }

  .modal-close {
    font-size: calc(1.3rem + var(--mobile-font-bump));
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrapper {
    grid-column: 1 / -1;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 1rem 1.25rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 15;
  }

  .nav-wrapper.is-open {
    display: flex;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .main-nav a {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid transparent;
  }

  .main-nav a:hover {
    background: var(--accent-soft);
    text-decoration: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.6rem;
  }

  .header-actions > a {
    width: auto;
    flex: 1;
  }

  p {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .highlight-box {
    position: static;
    margin-top: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    max-width: 220px;
  }
}

@media (max-width: 600px) {
  .btn,
  .phone {
    width: auto;
    justify-content: center;
  }

  .header-actions > a {
    width: auto;
  }

  .cta-group {
    flex-direction: column;
  }

  .main-nav {
    gap: 0.5rem;
  }

  .impressum-list {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-offset: 180px;
  }
}
