/* ==========================================================================
   Tellis — Website Stylesheet
   --------------------------------------------------------------------------
   Statische Seite für Cloudflare Pages. Kein Build-Schritt, keine externen
   Requests. Alle Schriften werden LOKAL aus /fonts geladen (DSGVO-konform,
   keine IP-Übertragung an Dritte, keine Cookies, kein Tracking).

   Aufbau dieser Datei:
     1. @font-face (selbst gehostete WOFF2)
     2. Design-Tokens (:root Variablen)
     3. Reset & Basis
     4. Layout-Helfer
     5. Hintergrund (Origami-Faltlinien)
     6. Komponenten (Wortmarke, Hero, Karten, Schritte, Footer, Rechtstexte)
     7. Zugänglichkeit & Responsive
   ========================================================================== */


/* 1. SCHRIFTEN – selbst gehostet ------------------------------------------- */
/*
   BENÖTIGTE DATEIEN in /fonts (WOFF2, SIL Open Font License, dürfen selbst
   gehostet werden). Bitte herunterladen und exakt so benennen:

     /fonts/Marcellus-Regular.woff2         (Marcellus 400)
     /fonts/Outfit-ExtraLight.woff2         (Outfit 200)
     /fonts/Outfit-Light.woff2              (Outfit 300)
     /fonts/Outfit-Regular.woff2            (Outfit 400)
     /fonts/IBMPlexMono-Light.woff2         (IBM Plex Mono 300)
     /fonts/IBMPlexMono-Regular.woff2       (IBM Plex Mono 400)

   Quellen (nur zum Herunterladen, NICHT verlinken):
     Marcellus / Outfit: github.com/google/fonts  (OFL)
     IBM Plex Mono:      github.com/IBM/plex       (OFL)
   Solange eine Datei fehlt, greift der jeweils angegebene System-Fallback.
*/
@font-face {
  font-family: "Marcellus";
  src: url("/fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* 2. DESIGN-TOKENS --------------------------------------------------------- */
:root {
  /* Farben – Orange ist die EINZIGE Akzentfarbe und wird sparsam benutzt. */
  --bg:        #0E0F12;  /* Seitenhintergrund */
  --surface:   #16181D;  /* Karten / abgesetzte Flächen */
  --line:      #23262D;  /* Rahmen, Trennlinien, Faltlinien */
  --text:      #E8E4DA;  /* Fließtext */
  --muted:     #8A8D96;  /* gedämpfter Text */
  --accent:    #E8572A;  /* Orange – Origami-Vogel & seltene Akzente */
  --teal:      #1A8A7D;  /* seltener Zweitakzent */

  /* Schrift-Familien mit System-Fallback (falls WOFF2 noch fehlt). */
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body:    "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythmus */
  --maxw: 1080px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 7.5rem);
  --radius: 14px;
}


/* 3. RESET & BASIS --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img, svg { display: block; max-width: 100%; }


/* 4. LAYOUT-HELFER --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section { padding-block: var(--section-y); }

/* Kleines Mono-Label über Überschriften ("Kicker"). */
.kicker {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.kicker .tick { color: var(--accent); }   /* winziger Orange-Akzent */


/* 5. HINTERGRUND – Origami-Faltlinien -------------------------------------- */
/*
   Dezente diagonale "Falten", als läge ein aufgefalteter Origami-Bogen unter
   der Seite. Rein dekorativ (fixiert, hinter dem Inhalt, klick-durchlässig).
*/
.fold-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* zwei markante Faltkanten */
    linear-gradient(115deg, transparent 0 49.85%, rgba(232,228,218,0.045) 49.85% 50%, transparent 50% 100%),
    linear-gradient(200deg, transparent 0 71.85%, rgba(232,228,218,0.035) 71.85% 72%, transparent 72% 100%),
    /* feines diagonales Faltraster */
    repeating-linear-gradient(45deg, rgba(35,38,45,0.35) 0 1px, transparent 1px 46px),
    /* sanftes Vignette-Leuchten oben */
    radial-gradient(120% 80% at 50% -10%, rgba(232,87,42,0.05), transparent 60%);
  background-color: var(--bg);
}


/* 6. KOMPONENTEN ----------------------------------------------------------- */

/* 6.1 Slim-Header (Marken-Link, auf allen Seiten) */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand-link {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.site-header .nav-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 6.2 Wortmarke "Tellis" mit Origami-Vogel als i-Punkt ---------------------- */
/*
   Aufbau: "Tell" + <span.i> + "s".  Der Buchstabe i nutzt das PUNKTLOSE ı
   (U+0131), damit die Schrift keinen eigenen Punkt setzt – stattdessen sitzt
   der Origami-Vogel als "Tittle" darüber. Alles über em-Einheiten, damit der
   Vogel bei jeder Schriftgröße proportional mitskaliert.
*/
.wordmark {
  font-size: clamp(3.5rem, 13vw, 8rem);
  letter-spacing: 0.01em;
  display: inline-block;
}
.wordmark .i {
  position: relative;
  display: inline-block;
}
.wordmark .bird {
  position: absolute;
  left: 50%;
  bottom: 0.62em;            /* Höhe über dem i-Stamm – ggf. fein justieren */
  width: 0.62em;
  height: 0.62em;
  transform: translateX(-50%);
  color: var(--accent);
}

/* Vogel im Slim-Header (kleiner) */
.brand-link .i { position: relative; display: inline-block; }
.brand-link .bird {
  position: absolute;
  left: 50%;
  bottom: 0.66em;
  width: 0.6em;
  height: 0.6em;
  transform: translateX(-50%);
  color: var(--accent);
}

/* 6.3 Hero ----------------------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 12vw, 9rem) var(--section-y);
  text-align: center;
}
.hero .claim {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  color: var(--text);
  margin-top: 1.5rem;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero .subtitle {
  color: var(--muted);
  font-weight: 200;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 46ch;
  margin: 1.25rem auto 0;
}
/* Status-Zeile in Mono mit Punkt-Trennern */
.status {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.5rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.status .dot { color: var(--accent); }
.status .live { color: var(--text); }

/* 6.4 Abschnitts-Überschrift ---------------------------------------------- */
.section-head { max-width: 40ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.section-head .lead {
  color: var(--muted);
  font-weight: 200;
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

/* 6.5 Feature-Karten ("Was Tellis macht") --------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  overflow: hidden;
}
/* diagonale Faltkante als dezenter Akzent in der oberen Ecke */
.card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 3.5rem; height: 3.5rem;
  background: linear-gradient(225deg, rgba(232,228,218,0.05), transparent 60%);
  border-left: 1px solid var(--line);
  transform: rotate(0deg);
  pointer-events: none;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}
.card p { color: var(--muted); font-weight: 300; }
.card .card-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* 6.6 Schritte ("So funktioniert es") ------------------------------------- */
/* Nummerierte Reihenfolge = echte Abfolge, daher legitime 01/02/03-Marker. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  counter-reset: step;
}
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
/* dünne Linie über jedem Schritt, mit orangem Startpunkt */
.step::after {
  content: "";
  position: absolute;
  top: 1.55rem; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.step .tip {
  position: absolute;
  top: calc(1.55rem - 2px);
  left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.step p { color: var(--muted); font-weight: 300; }

/* 6.7 Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  margin-top: var(--section-y);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--text); }
.copyright {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* 6.8 Rechtstext-Seiten (Impressum / Datenschutz) ------------------------- */
.legal { padding-block: clamp(3rem, 8vw, 5rem) var(--section-y); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 0.5rem; }
.legal .legal-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.75rem;
}
.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }
.legal p { color: var(--muted); margin-bottom: 1rem; }
.legal p strong { color: var(--text); font-weight: 400; }
.legal a { color: var(--text); border-bottom: 1px solid var(--accent); }
.legal a:hover,
.legal a:focus-visible { color: var(--accent); }
.legal ul { color: var(--muted); margin: 0 0 1.25rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
/* auszufüllende Platzhalter dezent hervorgehoben */
.legal .placeholder {
  color: var(--text);
  background: rgba(232,87,42,0.10);
  border: 1px dashed rgba(232,87,42,0.5);
  border-radius: 5px;
  padding: 0.05em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  white-space: nowrap;
}
.back-home {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.back-home:hover,
.back-home:focus-visible { color: var(--accent); }


/* 7. ZUGÄNGLICHKEIT & RESPONSIVE ------------------------------------------- */

/* sichtbarer Fokusrahmen (Tastaturbedienung) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Sprungmarke für Screenreader / Tastatur */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0E0F12;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Tablet */
@media (max-width: 820px) {
  .cards,
  .steps { grid-template-columns: 1fr 1fr; }
}

/* Mobil */
@media (max-width: 560px) {
  .cards,
  .steps { grid-template-columns: 1fr; }
  .site-header .nav-hint { display: none; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
