/* Graf Systems GmbH – Platzhalterseite */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f4f5f2;
  --ink: #000;
  --graphite: #5b5f58;
  --line: #cfd3cb;
  --field: #fbfbfa;
  --accent: #0e7c6b;
  --on-accent: #fff;
  --backdrop: rgb(244 245 242 / 0.82);
  --error: #a3261b;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1413;
    --ink: #eef1ed;
    --graphite: #9aa39d;
    --line: #2b3431;
    --field: #161d1b;
    --accent: #3cc2a8;
    --on-accent: #0f1413;
    --backdrop: rgb(15 20 19 / 0.82);
    --error: #ff8a7d;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

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

/* ---------- Startseite ---------- */

.home {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--pad);
}

.intro { align-self: end; max-width: 46rem; padding-bottom: clamp(2.5rem, 7vh, 5rem); }

.wordmark {
  margin: 0;
  font-weight: 500;
  font-size: clamp(3.25rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.claim {
  margin: 1.25rem 0 0;
  max-width: 30ch;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  color: var(--graphite);
}

/* ---------- Fußzeile ---------- */


.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  font-size: 0.9375rem;
}
.foot a,
.foot button {
  color: var(--ink);
  text-decoration: none;
}
.foot a:hover,
.foot button.link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.prose a:hover,
.page-head a:hover,
.note a:hover { color: var(--accent); }
.foot .copy { margin-left: auto; color: var(--graphite); }

button.link {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

@media (max-width: 720px) {
  .wordmark { font-size: clamp(3.25rem, 21vw, 6rem); }
  .foot .copy { margin-left: 0; width: 100%; }
}

/* ---------- Kontakt-Dialog ---------- */

dialog {
  width: min(32rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }

.dialog-inner { padding: clamp(1.5rem, 5vw, 2.25rem); }

.dialog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dialog-head h2 { margin: 0; font-weight: 500; font-size: 1.625rem; letter-spacing: -0.02em; }
.close { font: inherit; font-size: 1rem; line-height: 1; background: none; border: 1px solid transparent; width: 2.25rem; height: 2.25rem; margin: -0.5rem -0.5rem 0 0; cursor: pointer; color: var(--graphite); }
.close:hover { color: var(--ink); border-color: var(--line); }

.dialog-lead { margin: 0.5rem 0 1.75rem; color: var(--graphite); font-size: 0.9375rem; }

.field { position: relative; margin-bottom: 1.1rem; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.45rem 0.85rem 0.5rem;
  transition: border-color 150ms, box-shadow 150ms;
}
.field textarea { min-height: 9rem; resize: vertical; display: block; }
.field label {
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  font-size: 1rem;
  color: var(--graphite);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 180ms ease, color 150ms;
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-0.55rem) scale(0.78); }
.field input:focus + label,
.field textarea:focus + label { color: var(--accent); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field [aria-invalid="true"] + label { color: var(--error); }
.err { display: block; min-height: 0; font-size: 0.8125rem; color: var(--error); }
.err:not(:empty) { margin-top: 0.3rem; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.note { font-size: 0.8125rem; color: var(--graphite); margin: 0 0 1.5rem; }

.submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 150ms, border-color 150ms, color 150ms;
  font: inherit;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
}
.submit:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.submit[disabled] { opacity: 0.55; cursor: progress; }

.status { margin: 1rem 0 0; font-size: 0.9375rem; }
.status.error { color: var(--error); }

.sent h2 { margin: 0 0 0.5rem; font-weight: 500; font-size: 1.625rem; letter-spacing: -0.02em; }
.sent p { margin: 0 0 1.5rem; color: var(--graphite); }

/* ---------- Unterseiten (Impressum, Datenschutz, Danke, 404) ---------- */

.page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: var(--pad); }

.page-head a { display: inline-block; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }

.prose { max-width: 40rem; padding: clamp(3rem, 9vh, 6rem) 0; }
.prose h1 { margin: 0 0 2rem; font-weight: 500; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; }
.prose h2 { margin: 2.5rem 0 0.6rem; font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.01em; }
.prose p,
.prose ul,
.prose address { margin: 0 0 1rem; font-style: normal; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose .muted { color: var(--graphite); font-size: 0.9375rem; }


