:root {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --color-bg: #f8f5ef;
  --color-surface: rgba(255, 255, 255, 0.75);
  --color-text: #1f1b16;
  --color-muted: #635b52;
  --color-accent: #c0743c;
  --color-accent-strong: #5c57ff;
  --color-line: rgba(31, 27, 22, 0.12);
  --shadow-soft: 0 20px 45px rgba(12, 8, 4, 0.12);
  color: var(--color-text);
  background-color: var(--color-bg);
}

:root[data-theme="dark"] {
  --color-bg: #07060a;
  --color-surface: rgba(13, 13, 20, 0.9);
  --color-text: #fbf7ef;
  --color-muted: #c8bfb0;
  --color-accent: #ffb36b;
  --color-accent-strong: #7ca8ff;
  --color-line: rgba(251, 247, 239, 0.18);
  --shadow-soft: 0 30px 60px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --color-bg: #07060a;
    --color-surface: rgba(13, 13, 20, 0.9);
    --color-text: #fbf7ef;
    --color-muted: #c8bfb0;
    --color-accent: #ffb36b;
    --color-accent-strong: #7ca8ff;
    --color-line: rgba(251, 247, 239, 0.18);
    --shadow-soft: 0 30px 60px rgba(0, 0, 0, 0.55);
  }
}

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

body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--color-bg)
    radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 40%)
    no-repeat;
  color: var(--color-text);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.grain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 0;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 5;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 2rem 0;
}

@media (max-width: 720px) {
  .container {
    padding: 1.5rem 0;
    width: calc(100vw - 2.5rem);
  }
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.logo strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: normal;
}

.site-nav {
  color: var(--color-muted);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: currentColor;
  position: relative;
  padding-bottom: 0.35rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.nav-toggle span:not(.sr-only) {
  width: 16px;
  height: 2px;
  background: var(--color-text);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding-block: 4rem;
}

.hero__content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero__content span {
  color: var(--color-accent);
}

.hero__content p {
  color: var(--color-muted);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__media {
  align-self: center;
}

.hero__media img {
  display: block;
  border-radius: 1.5rem;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--color-line);
}

.section--spaced {
  margin-top: 3rem;
}

.section__header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 2rem 0 0.5rem;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: start;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.list-check li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--color-accent);
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline article {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.timeline h3 {
  margin-top: 0;
  font-family: var(--font-serif);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card-grid article {
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px dashed var(--color-line);
  background: var(--color-surface);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease;
}

.card-grid article:hover {
  transform: translateY(-6px);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.photo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 1.25rem;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
}

.before-after-grid article {
  border: 1px solid var(--color-line);
  border-radius: 1.75rem;
  padding: 2.4rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.before-after-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.before-after-photo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.before-after-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

.before-after-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid var(--color-line);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.before-after-photo:hover img {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 28px 45px rgba(0, 0, 0, 0.28);
}


.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.25rem;
  border-radius: 1rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset: 1.5rem auto auto 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--color-accent), var(--color-accent-strong));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
  justify-items: stretch;
}

.contact-grid--single {
  grid-template-columns: 1fr;
  width: 100%;
}

.imprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.imprint-grid article {
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.impressum-text {
  max-width: 720px;
  display: grid;
  gap: 1rem;
}

.impressum-text h3 {
  margin: 1.5rem 0 0.5rem;
}

.impressum-text h3:first-of-type {
  margin-top: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 0.75rem;
  border: 1px solid var(--color-line);
  padding: 0.85rem 1rem;
  background: transparent;
  color: inherit;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  font-size: 0.85rem;
  margin: 0;
  min-height: 1.2em;
  color: var(--color-muted);
  text-align: center;
}

.form-status.is-success {
  color: #1f7a3d;
}

.form-status.is-error {
  color: #b02b2b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(130deg, rgba(255, 225, 176, 0.8), rgba(255, 155, 99, 0.75));
  color: #2f1805;
  border: none;
  box-shadow: 0 18px 26px rgba(255, 155, 99, 0.25);
  backdrop-filter: blur(6px);
}

.btn.ghost {
  border-color: var(--color-line);
  color: var(--color-text);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--color-line);
  padding-block: 2rem 3rem;
  font-size: 0.9rem;
}

.back-to-top {
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 960px) {
  body.is-nav-open {
    overflow: hidden;
  }

  body.is-nav-open .nav-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    padding: 30vh 2rem 2rem;
    background: linear-gradient(180deg, rgba(12, 8, 4, 0.85), rgba(12, 8, 4, 0.7));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: opacity 0.3s ease, transform 0.4s ease;
    z-index: 1100;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    color: #fff;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 900;
  }

  .nav-toggle[aria-expanded="false"] {
    z-index: 1200;
  }

  .nav-toggle[aria-expanded="true"] span:not(.sr-only):first-of-type {
    transform: translateY(2px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:not(.sr-only):last-of-type {
    transform: translateY(-2px) rotate(-45deg);
  }

  .nav-toggle[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
  }

  .nav-close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 1.5rem);
    right: clamp(1rem, 5vw, 2rem);
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: none;
    z-index: 1300;
  }

  .site-nav[data-open="true"] .nav-close {
    display: inline-flex;
  }
}

.nav-close {
  display: none;
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .before-after-pair {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.impressum-info p {
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.impressum-info p:last-child {
  margin-bottom: 0;
}
