:root {
  --fg: #0c0c0b;
  --bg: #f6f6f4;
  --bg-elevated: #ffffff;
  --muted: #5a5a56;
  --line: #e2e2de;
  --line-strong: #cfcfcc;
  --accent: #0c0c0b;
  --glow: rgba(12, 12, 11, 0.06);
  --shadow: 0 1px 0 rgba(12, 12, 11, 0.06), 0 12px 40px -20px rgba(12, 12, 11, 0.12);
  --radius: 14px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f2f0;
    --bg: #121211;
    --bg-elevated: #1a1a18;
    --muted: #9b9b95;
    --line: #2e2e2b;
    --line-strong: #3d3d39;
    --accent: #f2f2f0;
    --glow: rgba(242, 242, 240, 0.04);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 16px 48px -24px rgba(0, 0, 0, 0.55);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  background-image: radial-gradient(
    ellipse 100% 70% at 50% -15%,
    var(--glow),
    transparent 55%
  );
}

main {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(2.75rem, 9vw, 5.25rem) clamp(1.35rem, 5vw, 2rem) clamp(3rem, 10vw, 5rem);
}

/* Startseite: volle Viewporthöhe, Fußzeile unten, Logo mit Abstand vom oberen Rand */
main.home {
  min-height: 100dvh;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2.75rem, 20vh, 10rem) clamp(1rem, 4vw, 1.5rem) clamp(1rem, 3vh, 1.5rem);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

main.home .hero {
  margin-bottom: clamp(1rem, 3vh, 1.5rem);
}

main.home .mark {
  margin-bottom: clamp(0.85rem, 2.5vh, 1.35rem);
}

main.home .mark__link {
  gap: 0.4rem;
}

main.home .mark__uh {
  font-size: clamp(2.35rem, 9vw, 3.35rem);
}

main.home .mark__name {
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  letter-spacing: 0.38em;
  text-indent: 0.38em;
}

main.home .hero h1 {
  font-size: clamp(0.98rem, 2.8vw, 1.12rem);
  margin-bottom: 0.45rem;
  line-height: 1.32;
}

main.home .hero .lead {
  font-size: 0.9rem;
  line-height: 1.5;
}

main.home .panel {
  margin-top: 0;
  padding: 1.15rem 1.2rem 1.15rem;
  box-shadow: 0 1px 0 rgba(12, 12, 11, 0.05), 0 10px 32px -18px rgba(12, 12, 11, 0.12);
}

@media (prefers-color-scheme: dark) {
  main.home .panel {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 36px -20px rgba(0, 0, 0, 0.5);
  }
}

main.home .panel h2 {
  margin-bottom: 0.45rem;
}

main.home .contact-below {
  margin-top: 1.5rem;
  padding: 0 1.2rem;
  text-align: center;
  background: none;
  border: none;
  box-shadow: none;
}

main.home .contact-below__head {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

main.home .contact-below__mail {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.06em;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

main.home .contact-below__mail:hover {
  border-bottom-color: var(--fg);
  opacity: 0.82;
}

main.home .contact-below__mail:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

main.home .services li {
  padding: 0.55rem 0;
  font-size: 0.88rem;
  line-height: 1.48;
  gap: 0.55rem 0.75rem;
  grid-template-columns: 1.85rem 1fr;
}

main.home .services li:last-child {
  padding-bottom: 0;
}

main.home .services li::before {
  font-size: 0.68rem;
  padding-top: 0.1em;
}

main.home footer {
  margin-top: auto;
  /* padding-top: clamp(1.35rem, 3.5vh, 2rem); */
}

main.home .footer__left {
  gap: 0.45rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.mark {
  display: flex;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.mark__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mark__link:hover {
  opacity: 0.55;
}

.mark__uh {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  font-size: clamp(3rem, 11vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--fg);
}

.mark__uh span {
  color: inherit;
}

.mark__name {
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: lowercase;
  line-height: 1;
  color: var(--fg);
}

.hero h1 {
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0 auto 0.85rem;
  max-width: 22em;
}

.hero .lead {
  margin: 0 auto;
  max-width: 24em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 32em;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

p:last-of-type {
  margin-bottom: 0;
}

.panel {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 1.35rem;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: svc;
}

.services li {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.services li:first-child {
  border-top: none;
  padding-top: 0;
}

.services li::before {
  content: counter(svc, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: 0.45;
  padding-top: 0.15em;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.65;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.mark__link:focus-visible,
.lang a:focus-visible {
  outline-offset: 4px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

footer .tagline {
  margin: 0;
  font-weight: 600;
  color: var(--fg);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.legal-nav a {
  text-decoration: none;
}

.legal-nav a:hover {
  text-decoration: underline;
}

.legal-nav__sep {
  opacity: 0.45;
  user-select: none;
}

/* Rechtstexte */
main.page {
  text-align: left;
}

.page-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
}

.page-top .page-back {
  margin-bottom: 0;
}

.page-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.page-lang {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--muted);
}

.page-lang a {
  text-decoration: none;
  color: var(--fg);
}

.page-lang a:hover {
  text-decoration: underline;
  opacity: 0.65;
}

.page-lang [aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

.page-back:hover {
  opacity: 0.65;
}

.legal > h1 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 1.5rem;
  color: var(--fg);
}

.legal h2 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 2rem 0 0.65rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal .todo {
  color: var(--fg);
  font-weight: 500;
}

.lang {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.lang a {
  text-decoration: none;
}

.lang a:hover {
  text-decoration: underline;
}

.lang [aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .panel {
    animation: enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .hero {
    animation-delay: 0.03s;
  }

  .panel:nth-of-type(1) {
    animation-delay: 0.1s;
  }

  main.home .contact-below {
    animation: enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.14s backwards;
  }

  footer {
    animation: enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .panel {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a {
    color: var(--fg);
  }
}
