/* ───────────────────────── Grundlagen ───────────────────────── */

:root {
  --paper: #f2eee6;
  --card: #fffdf9;
  --ink: #15171b;
  --ink-soft: #5c616a;
  --ink-faint: #8a8f98;
  --line: #d8d2c6;
  --accent: #1d7a4f;
  --accent-ink: #ffffff;
  --mark: #b6af9f;
  --shadow: 0 30px 60px -30px rgba(21, 23, 27, 0.35), 0 2px 6px rgba(21, 23, 27, 0.06);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101114;
    --card: #1a1c20;
    --ink: #f0eee8;
    --ink-soft: #a7abb3;
    --ink-faint: #737880;
    --line: #2c2f35;
    --accent: #4fc487;
    --accent-ink: #0d1a13;
    --mark: #45494f;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

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

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.gf-mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* ───────────────────────── Kopfzeile (nur Unterseiten) ───────────────────────── */

.gf-topbar {
  padding: 1.25rem 1rem;
}

.gf-topbar__inner {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.gf-topbar__brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
  text-decoration: none;
}

.gf-topbar__brand {
  white-space: nowrap;
}

.gf-topbar__brand::before {
  content: "← ";
  color: var(--accent);
}

@media (max-width: 40rem) {
  .gf-topbar__inner > .gf-mono { display: none; }
}

/* ───────────────────────── Visitenkarte ───────────────────────── */

.vk {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.5rem, 8vh, 6rem) 1rem 3rem;
  gap: clamp(2.5rem, 6vh, 4.5rem);
}

.vk__stage {
  width: 100%;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.vk__card {
  position: relative;
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  animation: vk-settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@media (min-width: 46rem) {
  .vk__card {
    aspect-ratio: 85 / 55; /* echte Visitenkarte */
  }
}

/* Schnittmarken – die Karte als Druckfahne */
.vk__crop {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.vk__crop::before,
.vk__crop::after {
  content: "";
  position: absolute;
  background: var(--mark);
}

.vk__crop::before { width: 14px; height: 1px; }
.vk__crop::after  { width: 1px;  height: 14px; }

.vk__crop--tl { top: -22px; left: -22px; }
.vk__crop--tl::before { bottom: 0; left: 0; }
.vk__crop--tl::after  { right: 0; top: 0; }

.vk__crop--tr { top: -22px; right: -22px; }
.vk__crop--tr::before { bottom: 0; right: 0; }
.vk__crop--tr::after  { left: 0; top: 0; }

.vk__crop--bl { bottom: -22px; left: -22px; }
.vk__crop--bl::before { top: 0; left: 0; }
.vk__crop--bl::after  { right: 0; bottom: 0; }

.vk__crop--br { bottom: -22px; right: -22px; }
.vk__crop--br::before { top: 0; right: 0; }
.vk__crop--br::after  { left: 0; bottom: 0; }

@media (max-width: 30rem) {
  .vk__crop { display: none; }
}

.vk__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.vk__brand {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vk__brand small {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.vk__loc {
  text-align: right;
  white-space: nowrap;
}

.vk__title {
  margin: 0;
  font-size: clamp(1.6rem, 5.2vw, 2.75rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.vk__title .amp {
  color: var(--accent);
  font-weight: 400;
}

.vk__nowrap {
  white-space: nowrap;
}

.vk__caret {
  display: inline-block;
  width: 0.5em;
  height: 0.95em;
  margin-left: 0.12em;
  vertical-align: -0.12em;
  background: var(--accent);
  border-radius: 1px;
  animation: vk-blink 1.1s steps(1, end) infinite;
}

.vk__sub {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.vk__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.vk__mail {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}

.vk__mail:hover { color: var(--accent); }

.vk__note {
  margin: 0.5rem 0 0;
  text-align: center;
}

/* ───────────────────────── Leistungen ───────────────────────── */

.vk__services {
  width: 100%;
  max-width: 42rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

@media (max-width: 40rem) {
  .vk__services {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.vk__service {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.vk__service h2 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.vk__service p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.vk__cta {
  width: 100%;
  max-width: 42rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.vk__cta p {
  margin: 0;
  color: var(--ink-soft);
}

.vk__button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.vk__button:hover,
.vk__button:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ───────────────────────── Unterseiten (Impressum, Datenschutz, 404) ───────────────────────── */

.gf-page-wrap {
  flex: 1;
  padding: 1rem 1rem 4rem;
}

.gf-shell {
  max-width: 44rem;
  margin: 0 auto;
}

.gf-page__eyebrow {
  margin-bottom: 0.5rem;
}

.gf-page__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.gf-page__content {
  color: var(--ink);
}

.gf-page__content h2,
.gf-page__content h3,
.gf-page__content h4 {
  margin: 2rem 0 0.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.gf-page__content h2 { font-size: 1.375rem; }
.gf-page__content h3 { font-size: 1.125rem; }
.gf-page__content h4 { font-size: 1rem; }

.gf-page__content p,
.gf-page__content ul,
.gf-page__content ol {
  margin: 0 0 1rem;
}

.gf-page__content a {
  word-break: break-word;
}

.gf-page__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ───────────────────────── Fußzeile ───────────────────────── */

.gf-site-footer {
  padding: 1.5rem 1rem 2rem;
}

.gf-site-footer__inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.gf-site-footer__links {
  display: flex;
  gap: 1.25rem;
}

.gf-site-footer__links a {
  text-decoration: none;
}

.gf-site-footer__links a:hover {
  text-decoration: underline;
}

/* ───────────────────────── Bewegung ───────────────────────── */

@keyframes vk-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

@keyframes vk-settle {
  from { opacity: 0; transform: translateY(14px) rotate(-0.6deg); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vk__card { animation: none; }
  .vk__nowrap {
  white-space: nowrap;
}

.vk__caret { animation: none; }
  html { scroll-behavior: auto; }
}

