@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --text: #3d3d3d;
  --muted: #6e6e6e;
  --line: #e6e6e4;
  --bg: #ffffff;
  --accent: #d67012;
  --dark: #121212;
  --wrap: 1080px;
  --sidebar: 220px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

html:has(.mail-dialog[open]) {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

a:hover {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - 128px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  z-index: 20;
}

.skip:focus {
  left: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Seitenleiste */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 76px;
  height: 100vh;
  padding: 44px 40px;
  background: var(--bg);
  border-right: 1px solid var(--line);
}

.brand {
  align-self: flex-start;
}

.brand img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -40px;
  width: 24px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a[aria-current="page"]::before {
  transform: scaleX(1);
}

/* Typografie */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3 {
  font-weight: 500;
  color: var(--ink);
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(2.3rem, (100vw - var(--sidebar)) * 0.062, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 18px;
}

/* Einstieg */

.hero {
  padding: 128px 0 104px;
}

.lead {
  max-width: 42ch;
  margin: 0 0 44px;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.actions-pair {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: none;
}

.btn {
  display: inline-block;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background: var(--ink);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: #000000;
}

.mail-key {
  --key-w: 86px;
  --key-h: 58px;
  --radius: 18px;
  --bg: #2c3238;
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--key-w);
  height: var(--key-h);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.mail-key:hover,
.mail-key:focus-visible {
  color: inherit;
  text-decoration: none;
}

.mail-key:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.mail-key::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 80px;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  filter: blur(28px);
  transform: translate(-50%, -50%) skewY(-20deg);
  pointer-events: none;
}

.mail-key::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background-color: rgba(9, 7, 7, 0.1);
  filter: blur(30px);
  pointer-events: none;
}

.mail-key-cap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: var(--key-w);
  height: var(--key-h);
  background-color: var(--bg);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 40%),
    inset 0 -6px 1px -4px #d67012,
    inset 0 -15px 6px -8px #9a4e0c;
  transition: transform 0.3s ease, filter 0.3s ease, background-color 0.3s ease;
}

.mail-key-cap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) * 0.8);
  border-top: 26px solid #414244;
  border-left: 24px solid #2b2b2c;
  border-right: 24px solid #2b2b2c;
  border-bottom: 26px solid #15161a;
  filter: blur(6px);
  transition: box-shadow 0.5s ease;
}

.mail-key-cap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 86%;
  width: 78%;
  height: 16px;
  margin: auto;
  border-radius: 50px 50px 0 0;
  background: #d67012;
  filter: blur(5px);
  opacity: 0.95;
}

.mail-key .corner {
  opacity: 0.1;
  transition: opacity 0.4s ease;
}

.mail-key .corner::before,
.mail-key .corner::after {
  content: "";
  position: absolute;
  top: 0;
  border-top: 30px solid white;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  filter: blur(6px);
}

.mail-key .corner::before {
  left: 8px;
  transform: rotate(-40deg);
}

.mail-key .corner::after {
  right: 8px;
  transform: rotate(40deg);
}

.mail-key .inner {
  position: absolute;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 11px 14px;
  border-radius: calc(var(--radius) * 0.85);
  background: linear-gradient(180deg, #232324 5%, #46484b 100%);
  box-shadow:
    inset 0 -5px 15px -1px rgba(0, 0, 0, 0.3),
    inset 0 -4px 3px -3px black,
    inset 0 -10px 20px -8px rgb(255 255 255 / 40%),
    inset 0 1px 0 1px rgb(255 255 255 / 20%);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.mail-key-mark {
  display: block;
  width: 22px;
  height: 22px;
  color: #161618;
  filter: drop-shadow(0.45px 0.6px 0 rgba(255, 255, 255, 0.34));
}

.mail-key .bg {
  position: absolute;
  z-index: 1;
  inset: -7px;
  overflow: hidden;
  background-color: black;
  border-radius: calc(var(--radius) * 1.25);
  box-shadow: 0 20px 10px -10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.mail-key .bg::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 -2px 0 -1px rgb(214 112 18 / 42%),
    inset 0 0 5px 1px black,
    inset 0 0 0 1px black;
}

.mail-key .shine-1,
.mail-key .shine-2::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background: #d67012;
  filter: blur(2px);
  transform: translateY(0) scale(0);
  animation: mail-key-bloom 2.4s linear 0.3s;
}

.mail-key .shine-2::before {
  animation: mail-key-bloom 9.4s linear infinite;
}

.mail-key .shine-2 {
  opacity: 0;
}

.mail-key .bg-glow {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.mail-key .bg-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(to bottom, #d67012 0%, black 100%);
  filter: blur(12px);
  opacity: 0;
  animation: mail-key-flash 3s linear backwards;
}

.mail-key .noise {
  position: absolute;
  z-index: 3;
  top: -20px;
  right: 0;
  bottom: -20px;
  left: 0;
  opacity: 0.08;
  pointer-events: none;
  filter: grayscale(1);
  mask-image: linear-gradient(transparent 5%, white 30%, white 70%, transparent 95%);
}

.mail-key .noise svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mail-key:hover .mail-key-cap,
.mail-key:focus-visible .mail-key-cap {
  transform: scale(1.02);
}

.mail-key:hover .corner,
.mail-key:focus-visible .corner {
  opacity: 0.15;
}

.mail-key:hover .shine-2,
.mail-key:focus-visible .shine-2 {
  opacity: 1;
}

.mail-key:active .mail-key-cap {
  background-color: transparent;
  filter: contrast(1.07);
  transform: scale(0.97);
}

.mail-key:active .mail-key-cap::before {
  box-shadow: 0 -10px 10px 10px black;
}

.mail-key:active .inner {
  background: linear-gradient(180deg, #232324 5%, #3b3d40 100%);
  box-shadow:
    inset 0 -5px 15px -1px rgba(0, 0, 0, 0.3),
    inset 0 -4px 3px -3px black,
    inset 0 -10px 20px -8px rgb(255 255 255 / 20%),
    inset 0 1px 0 1px rgb(255 255 255 / 10%);
  transform: scale(0.95);
}

.mail-key:active .corner,
.mail-key:active .bg-glow,
.mail-key:active .shine-2 {
  opacity: 0;
}

.mail-key:active .shine-1 {
  animation: none;
}

@keyframes mail-key-flash {
  0% { opacity: 0; }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

@keyframes mail-key-bloom {
  0% { transform: translateY(0) scale(0); }
  12% { transform: translateY(0) scale(25); }
  60%, 100% { transform: translateY(-280px) scale(20, 18); }
}

@media (prefers-reduced-motion: reduce) {
  .mail-key-cap,
  .mail-key .inner,
  .mail-key .corner,
  .mail-key .shine-1,
  .mail-key .shine-2::before,
  .mail-key .bg-glow::before {
    animation: none;
    transition: none;
  }
}

.text-link {
  padding-bottom: 3px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.text-link:hover {
  border-color: var(--accent);
}

/* Abschnitte */

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}

.prose p {
  max-width: 58ch;
  color: var(--text);
}

.prose p:last-child,
.section-head p:last-child {
  margin-bottom: 0;
}

.section-head p {
  max-width: 44ch;
  color: var(--text);
}

.list {
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
}

.split .list {
  margin-top: 6px;
}

.contact {
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  column-gap: 72px;
  row-gap: 28px;
  align-items: center;
}

.contact .vcard {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}

.contact .section-head,
.contact .list {
  grid-column: 2;
}

.contact .list {
  margin-top: 0;
}

a.vcard-scene {
  position: relative;
  display: block;
  width: 100%;
  container-type: inline-size;
  aspect-ratio: 85 / 55;
  perspective: 1200px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.vcard-scene:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.vcard-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.vcard-glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
}

.vcard-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .vcard:hover .vcard-inner {
    transform: rotateY(180deg);
  }
}

.vcard-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 8.2cqi 8.2cqi 7cqi;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px;
  overflow: hidden;
}

.vcard-front {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.06);
}

.vcard-back {
  background: var(--dark);
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.16);
}

.vcard-logo {
  width: 58%;
  height: auto;
}

.vcard-kicker {
  display: flex;
  align-items: center;
  gap: 3.2cqi;
  margin: 4.5cqi 0 0;
  font-size: clamp(10px, 3.2cqi, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.vcard-back .vcard-kicker {
  margin-top: 0;
  color: #a8a8a8;
}

.vcard-kicker::before {
  content: "";
  flex: none;
  width: 8.2cqi;
  height: 1px;
  background: var(--accent);
}

.vcard-name {
  margin: auto 0 0;
  font-size: clamp(16px, 5.4cqi, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.vcard-name span {
  color: var(--accent);
}

.vcard-phone,
.vcard-line,
.vcard-address,
.vcard-name {
  display: block;
}

.vcard-phone {
  margin-top: 4.6cqi;
  font-size: clamp(15px, 4.8cqi, 20px);
  font-weight: 500;
  line-height: 1.2;
}

.vcard-line {
  margin-top: 1.6cqi;
}

.vcard-address {
  margin-top: auto;
  font-size: clamp(12px, 3.6cqi, 15px);
  line-height: 1.35;
  color: #a8a8a8;
}

.vcard-mark {
  position: absolute;
  right: 7cqi;
  bottom: 6cqi;
  width: 24cqi;
  height: 24cqi;
}

@media (prefers-reduced-motion: reduce) {
  .vcard-inner {
    transition: none;
  }
}

.list > div {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.split .list > div {
  grid-template-columns: 120px 1fr;
}

.list dt {
  font-weight: 500;
}

.list dd {
  margin: 0;
  color: var(--text);
}

.phone-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.wa svg {
  width: 15px;
  height: 15px;
}

.wa:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.step-num {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.steps p {
  margin: 0;
  color: var(--text);
}

/* Fuss */

.site-footer {
  padding: 80px 0 36px;
  color: #e9e9e9;
  background: var(--dark);
}

.site-footer .eyebrow {
  color: #8f8f8f;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 52px;
  border-bottom: 1px solid #262626;
}

.owner {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.owner .initials {
  color: var(--accent);
}

.address {
  margin: 0;
  font-size: 15px;
  color: #a8a8a8;
}

.address a {
  text-decoration-color: #4a4a4a;
}

.address a:hover {
  color: #ffffff;
  text-decoration-color: var(--accent);
}

.copy {
  margin: 0;
  font-size: 14px;
  color: #8f8f8f;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 14px;
  color: #a8a8a8;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: #ffffff;
}

.credit {
  padding-top: 26px;
}

.credit a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #b5b5b5;
  text-decoration: none;
  opacity: 0.5;
}

.credit a:hover {
  opacity: 0.9;
}

.credit img {
  height: 14px;
  width: auto;
}

/* Rechtstexte */

.legal {
  padding: 104px 0 120px;
}

.legal h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.legal .stand {
  margin: 0 0 8px;
  color: var(--muted);
}

.legal h2 {
  margin: 52px 0 12px;
  font-size: 1.35rem;
}

.legal p,
.legal li,
.legal address {
  max-width: 66ch;
  color: var(--text);
}

.legal address {
  margin: 0 0 18px;
  font-style: normal;
  line-height: 1.65;
}

.legal ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.legal li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
}

.legal li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.legal-todo {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #f8f1ea;
  border-left: 2px solid var(--accent);
  color: var(--ink);
}

.legal-todo strong {
  font-weight: 500;
}

/* E-Mail-Dialog */

.mail-dialog {
  width: min(520px, 100% - 32px);
  max-height: calc(100% - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.mail-dialog[open] {
  animation: dialog-in 0.22s ease-out;
}

.mail-dialog::backdrop {
  background: rgba(18, 18, 18, 0.5);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mail-dialog[open] {
    animation: none;
  }
}

.mail-form {
  position: relative;
  padding: 44px 40px 36px;
}

.mail-dialog h2 {
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.dialog-hint {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--muted);
}

.choices {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.choice:has(:checked) {
  color: var(--ink);
}

.choice input {
  flex: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  background: var(--bg);
  border: 1px solid #b9b9b6;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.choice input::after {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 1.5px solid #ffffff;
  border-bottom: 1.5px solid #ffffff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.15s;
}

.choice:hover input {
  border-color: var(--ink);
}

.choice input:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.choice input:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.field {
  margin-top: 28px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
}

.field-label span {
  font-weight: 400;
  color: var(--muted);
}

.field-input {
  display: block;
  width: 100%;
  min-height: 108px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #cfcfcc;
  border-radius: 2px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input::placeholder {
  color: var(--muted);
}

.field-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.subject {
  margin-top: 28px;
  padding: 16px 18px;
  background: #f5f5f3;
  border-radius: 2px;
}

.subject-label {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.subject-text {
  display: block;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.dialog-note {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
}

.text-button {
  padding: 0 0 3px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s;
}

.text-button:hover {
  border-color: var(--accent);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s;
}

.dialog-close::before,
.dialog-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.dialog-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-close:hover {
  color: var(--ink);
}

/* Kleine Bildschirme */

@media (max-width: 1200px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .list > div,
  .split .list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .contact .vcard,
  .contact .section-head,
  .contact .list {
    grid-column: auto;
    grid-row: auto;
  }

  .vcard {
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 0px;
  }

  html {
    scroll-padding-top: 64px;
  }

  .wrap {
    width: min(var(--wrap), 100% - 48px);
  }

  .layout {
    display: block;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    align-self: center;
  }

  .brand img {
    height: 28px;
  }

  .site-nav {
    flex-direction: row;
    gap: 28px;
  }

  .site-nav a {
    padding: 0;
  }

  .site-nav a::before {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    gap: 20px;
    font-size: 14px;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 76px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .mail-dialog {
    width: calc(100% - 24px);
  }

  .mail-form {
    padding: 36px 24px 28px;
  }
}

@media (max-width: 520px) {
  .sidebar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 18px;
  }
}
