/* Felinetec UG, gemeinsames Stylesheet für alle Seiten.
   Schriften liegen auf dem eigenen Server (Newsreader und Hanken Grotesk, SIL Open Font License,
   siehe assets/fonts/OFL.txt). Keine externen Quellen, keine Cookies. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/newsreader-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); }

/* Farben: hell wie Papier, dunkel wie Nacht, Akzent Bernstein (das Katzenauge im Zeichen) */
:root {
  --bg: #F3F0E8;
  --bg-2: #EAE6DC;
  --card: #FBFAF6;
  --ink: #17191C;
  --ink-2: #4D5157;
  --ink-3: #7C8087;
  --rule: #D9D4C8;
  --amber: #A8700F;
  --amber-hi: #C98A1E;
  --amber-soft: rgba(201, 138, 30, .14);
  --pupil: #17191C;
  --ok: #3D7A4E;
  --err: #A63D2F;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101317;
    --bg-2: #161A1F;
    --card: #181C22;
    --ink: #ECE8DF;
    --ink-2: #B4B0A8;
    --ink-3: #8A877F;
    --rule: #2A2F36;
    --amber: #E2A93E;
    --amber-hi: #F0BC57;
    --amber-soft: rgba(226, 169, 62, .12);
    --pupil: #0B0D10;
    --ok: #7FC08F;
    --err: #E58A7C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101317;
  --bg-2: #161A1F;
  --card: #181C22;
  --ink: #ECE8DF;
  --ink-2: #B4B0A8;
  --ink-3: #8A877F;
  --rule: #2A2F36;
  --amber: #E2A93E;
  --amber-hi: #F0BC57;
  --amber-soft: rgba(226, 169, 62, .12);
  --pupil: #0B0D10;
  --ok: #7FC08F;
  --err: #E58A7C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* feines Korn über der Fläche, rein dekorativ */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration-color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.label {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Kopfleiste ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark:hover { color: inherit; }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.wordmark b { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: -.01em; }
.top nav { display: flex; gap: 26px; align-items: center; }
.top nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top nav a.cta {
  color: var(--ink); border: 1px solid var(--ink); padding: 7px 16px; border-radius: 999px; font-weight: 500;
  transition: background .2s, color .2s;
}
.top nav a.cta:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) { .top nav a:not(.cta) { display: none; } }

/* ---------- Zeichen (Katzenauge) ---------- */
.eye .lid { fill: none; stroke: currentColor; }
.eye .iris { fill: var(--amber-hi); }
.eye .ring { fill: none; stroke: var(--amber); opacity: .55; }
.eye .pupil { fill: var(--pupil); }
.eye .glint { fill: #FFF8E8; opacity: .9; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 10vw, 128px) clamp(56px, 9vw, 112px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 7.2vw, 92px); margin-top: 22px; }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero .lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 500 16px/1 var(--sans); padding: 15px 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn:hover { color: var(--bg); background: var(--amber); border-color: var(--amber); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.hero .note { font-size: 14.5px; color: var(--ink-3); }

.hero-eye { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; color: var(--ink); }
.hero-eye .halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, var(--amber-soft), transparent 72%); }
.hero-eye .orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--rule); }
.hero-eye .orbit + .orbit { inset: 19%; border-style: solid; opacity: .7; }
.hero-eye svg { position: absolute; inset: 22%; width: 56%; height: 56%; overflow: visible; }
.hero-eye .lid { stroke-width: 1.6; }
.hero-eye .open { transform-origin: 50% 50%; animation: oeffnen 1.4s var(--ease) .25s both; }
.hero-eye .pupil { transform-origin: 32px 32px; animation: weiten 2.4s var(--ease) .9s both; }
.hero-eye .look { transition: transform .5s var(--ease); }
@keyframes oeffnen { from { transform: scaleY(.04); } 60% { transform: scaleY(1.04); } to { transform: scaleY(1); } }
@keyframes weiten { from { transform: scaleX(.35); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-eye .open, .hero-eye .pupil { animation: none; } }
.hero .rise { animation: steigen .9s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .08s; }
.hero .rise:nth-child(3) { animation-delay: .16s; }
.hero .rise:nth-child(4) { animation-delay: .24s; }
@keyframes steigen { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .rise { animation: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-eye { order: -1; width: min(62vw, 260px); justify-self: start; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 14px; }
.section-head p { color: var(--ink-2); max-width: 36em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Leistungen als nummeriertes Verzeichnis */
.fields { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fields li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding: 30px 28px 34px 0; border-bottom: 1px solid var(--rule); }
.fields li:nth-child(odd) { border-right: 1px solid var(--rule); }
.fields li:nth-child(even) { padding-left: 28px; }
.fields .nr { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--amber); line-height: 1.2; }
.fields h3 { font-size: clamp(23px, 2.3vw, 28px); line-height: 1.15; }
.fields p { grid-column: 2; margin-top: 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) {
  .fields { grid-template-columns: 1fr; }
  .fields li, .fields li:nth-child(odd), .fields li:nth-child(even) { padding: 26px 0 28px; border-right: 0; }
  .fields li { grid-template-columns: 44px minmax(0, 1fr); }
}

/* Grundsätze */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.principles article { padding-top: 22px; border-top: 2px solid var(--amber); }
.principles h3 { font-size: 26px; }
.principles p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(34px, 4.8vw, 60px); margin-top: 14px; }
.contact .intro p { color: var(--ink-2); margin-top: 18px; max-width: 30em; }
.contact .intro p strong { color: var(--ink); font-weight: 500; }
.address { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); font-style: normal; font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
.address b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 24px 60px -36px rgba(0, 0, 0, .25); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin-top: 6px; }
.form .privacy { font-size: 13.5px; color: var(--ink-3); max-width: 30em; }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.status { margin-top: 18px; font-size: 15px; min-height: 1.5em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.form.sent .fieldset { display: none; }
.thanks { display: none; text-align: left; }
.form.sent .thanks { display: block; }
.thanks h3 { font-size: 30px; }
.thanks p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Fuß ---------- */
.foot-main { padding-block: 44px 56px; font-size: 14.5px; color: var(--ink-3); }
.foot-main .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: flex-start; }
.foot-main .legal { line-height: 1.7; }
.foot-main .legal b { color: var(--ink-2); font-weight: 600; }
.foot-main nav { display: flex; gap: 22px; }
.foot-main nav a { text-decoration: none; color: var(--ink-2); }
.foot-main nav a:hover { color: var(--amber); }

/* ---------- Rechtstexte ---------- */
.doc { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 110px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(40px, 6vw, 68px); margin: 14px 0 10px; }
.doc .stand { color: var(--ink-3); font-size: 14.5px; }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule); }
.doc h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 26px 0 8px; letter-spacing: 0; }
.doc p, .doc ul { color: var(--ink-2); margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc p b, .doc li b { color: var(--ink); font-weight: 600; }
.doc .card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 26px; margin: 22px 0; }
.doc .card p:last-child { margin-bottom: 0; }
.back { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.back:hover { color: var(--amber); }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px var(--pad); }
.notfound h1 { font-size: clamp(44px, 7vw, 80px); margin: 18px 0 12px; }
.notfound p { color: var(--ink-2); margin-bottom: 28px; }
.notfound svg { width: 84px; height: 84px; color: var(--ink); }
.notfound .pupil { transform-origin: 32px 32px; transform: scaleX(.3); }
