/* Shared by all pages. Fonts are self-hosted: no request to Google (DSGVO). */
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f8fb; --surface: #ffffff; --ink: #0b1220; --muted: #5a6475; --line: #dfe5ee;
  --blue: #1f4fe0; --blue-soft: #e6eeff; --blue-mid: #9db8ff; --navy: #0a1228;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --pad: clamp(20px, 4.5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---- Gemeinsam für alle Seiten: Text-Helfer, Button, Körnung, Kopfleiste, Fuß ---- */
.kicker { font-family: var(--serif); font-size: 1.5rem; color: var(--muted); margin-bottom: 8px; }
.label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* Button wie in der Vorlage: dunkles Rechteck mit Pfeil */
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; font: 600 1rem var(--sans);
  padding: 15px 22px; border-radius: 2px; border: 1px solid #39425a; cursor: pointer; transition: background .25s, transform .25s; white-space: nowrap; }
.hero .btn { font-size: clamp(.8rem, 1.55vw, 1rem); }
.btn::after { content: "↗"; font-size: 1.1em; transition: transform .25s; }
.btn:hover { background: var(--blue); }
.btn:hover::after { transform: translate(3px, -3px); }
.btn:active { transform: scale(.98); }

/* Körnung, die leicht flackert, wie in der Vorlage */
body::before { content: ""; position: fixed; inset: -220px; z-index: 40; pointer-events: none; mix-blend-mode: multiply; opacity: .45;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22420%22 height=%22420%22 fill=%22%230b1220%22%3E%3Crect x=%22136%22 y=%2263%22 width=%225.1%22 height=%221.2%22 opacity=%220.39%22 transform=%22rotate%2893 136 63%29%22/%3E%3Crect x=%22245%22 y=%22382%22 width=%224.7%22 height=%221.2%22 opacity=%220.25%22 transform=%22rotate%2861 245 382%29%22/%3E%3Crect x=%2238%22 y=%22178%22 width=%223.9%22 height=%221.2%22 opacity=%220.44%22 transform=%22rotate%28160 38 178%29%22/%3E%3Crect x=%22245%22 y=%2226%22 width=%223.9%22 height=%221.2%22 opacity=%220.37%22 transform=%22rotate%28142 245 26%29%22/%3E%3Crect x=%22361%22 y=%22122%22 width=%224.2%22 height=%221.2%22 opacity=%220.23%22 transform=%22rotate%28174 361 122%29%22/%3E%3Ccircle cx=%2276%22 cy=%22244%22 r=%221.3%22 opacity=%220.38%22/%3E%3Ccircle cx=%2226%22 cy=%2225%22 r=%221.1%22 opacity=%220.25%22/%3E%3Crect x=%22132%22 y=%22246%22 width=%226.2%22 height=%221.2%22 opacity=%220.33%22 transform=%22rotate%28178 132 246%29%22/%3E%3Ccircle cx=%22328%22 cy=%2234%22 r=%221.0%22 opacity=%220.28%22/%3E%3Ccircle cx=%22189%22 cy=%22256%22 r=%220.8%22 opacity=%220.20%22/%3E%3Ccircle cx=%22144%22 cy=%22392%22 r=%220.7%22 opacity=%220.31%22/%3E%3Ccircle cx=%22234%22 cy=%22331%22 r=%221.0%22 opacity=%220.44%22/%3E%3Crect x=%22209%22 y=%22335%22 width=%224.1%22 height=%221.2%22 opacity=%220.20%22 transform=%22rotate%28178 209 335%29%22/%3E%3Ccircle cx=%22279%22 cy=%2225%22 r=%221.8%22 opacity=%220.40%22/%3E%3Ccircle cx=%22345%22 cy=%22120%22 r=%220.6%22 opacity=%220.30%22/%3E%3Crect x=%22194%22 y=%2271%22 width=%226.1%22 height=%221.2%22 opacity=%220.22%22 transform=%22rotate%2833 194 71%29%22/%3E%3Ccircle cx=%22310%22 cy=%22167%22 r=%220.8%22 opacity=%220.47%22/%3E%3Ccircle cx=%22169%22 cy=%22117%22 r=%221.3%22 opacity=%220.22%22/%3E%3Ccircle cx=%22297%22 cy=%22414%22 r=%220.9%22 opacity=%220.40%22/%3E%3Crect x=%2235%22 y=%2264%22 width=%226.3%22 height=%221.2%22 opacity=%220.39%22 transform=%22rotate%2846 35 64%29%22/%3E%3Ccircle cx=%22110%22 cy=%222%22 r=%221.3%22 opacity=%220.31%22/%3E%3Ccircle cx=%22400%22 cy=%22290%22 r=%221.4%22 opacity=%220.34%22/%3E%3Ccircle cx=%2223%22 cy=%22378%22 r=%221.6%22 opacity=%220.43%22/%3E%3Ccircle cx=%22165%22 cy=%22168%22 r=%220.7%22 opacity=%220.21%22/%3E%3Ccircle cx=%2228%22 cy=%2288%22 r=%220.7%22 opacity=%220.23%22/%3E%3Ccircle cx=%220%22 cy=%2264%22 r=%220.6%22 opacity=%220.21%22/%3E%3Crect x=%22367%22 y=%22258%22 width=%224.4%22 height=%221.2%22 opacity=%220.23%22 transform=%22rotate%2893 367 258%29%22/%3E%3Ccircle cx=%22199%22 cy=%2248%22 r=%221.2%22 opacity=%220.34%22/%3E%3Ccircle cx=%22131%22 cy=%2261%22 r=%221.2%22 opacity=%220.42%22/%3E%3Ccircle cx=%22291%22 cy=%22217%22 r=%221.0%22 opacity=%220.25%22/%3E%3Crect x=%22290%22 y=%22384%22 width=%225.6%22 height=%221.2%22 opacity=%220.42%22 transform=%22rotate%2823 290 384%29%22/%3E%3Crect x=%22292%22 y=%22110%22 width=%226.1%22 height=%221.2%22 opacity=%220.30%22 transform=%22rotate%28136 292 110%29%22/%3E%3Ccircle cx=%22227%22 cy=%22211%22 r=%221.5%22 opacity=%220.38%22/%3E%3Ccircle cx=%22318%22 cy=%2282%22 r=%221.6%22 opacity=%220.26%22/%3E%3C/svg%3E") 0 0/420px 420px; animation: grain 1.5s steps(1) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-63px, 41px); } 40% { transform: translate(37px, -88px); } 60% { transform: translate(-112px, -29px); } 80% { transform: translate(71px, 97px); } }

/* Leiste oben: volle Breite, Zellen mit Trennlinien */
.top { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top > * { display: flex; align-items: center; padding: 16px 26px; border-right: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .95rem; transition: background .25s, color .25s; }
.top a:hover { background: var(--ink); color: #fff; }
.top .name { font-family: var(--serif); font-size: 1.6rem; padding-left: var(--pad); }
.top .name { white-space: nowrap; }
.top .spacer { flex: 1; padding: 0; border: 0; }
.top .status { gap: 10px; border-left: 1px solid var(--line); border-right: 0; padding-right: var(--pad); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #1fbf5b; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { box-shadow: 0 0 0 0 #1fbf5b88; } to { box-shadow: 0 0 0 9px #1fbf5b00; } }

/* Fuß: dunkel mit Linienkunst */
footer { position: relative; background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 110px) var(--pad) 110px; overflow: hidden; }
footer svg { position: absolute; right: -80px; bottom: -120px; width: min(520px, 70vw); opacity: .9; }
footer nav a { transition: padding .25s, color .25s; } footer nav a:hover { padding-left: 10px; color: var(--blue-mid); }
.foot { position: relative; display: grid; gap: 40px; }
footer h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
footer h2 span { color: #8a94ab; }
footer nav a { display: block; color: #fff; text-decoration: none; font-size: 1.15rem; padding: 10px 0; }
footer nav a::after { content: " ↗"; }
footer small { display: block; color: #8a94ab; font-size: .95rem; }
footer small b { display: block; color: #fff; font-weight: 400; font-size: 1.1rem; }

/* Abschnittskopf und Einblenden beim Scrollen (nur wenn Skript läuft) */
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .head.rv { filter: blur(10px); transition: opacity .9s ease, transform .9s ease, filter .9s ease; } .js .head.rv.in { filter: none; }

/* Bildfläche mit Karte, Rahmen mit verkleinerter Seite */
.shot { position: relative; min-height: 300px; background: linear-gradient(135deg, #cfdcff, #7fa0ff 60%, #1f4fe0); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; border-radius: 8px; padding: 12px 16px; font-size: .85rem; box-shadow: 0 8px 24px #0b122022; }
.chip b { display: block; font-size: 1.05rem; }
.chip small { color: #12a150; font-weight: 600; float: right; }
.view { position: relative; overflow: hidden; background: #fff; }
.view iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); pointer-events: none; }

/* Seitenende der Leistungsseiten: zwei weitere Leistungen als Bildkarten */
.more { padding: clamp(56px, 8vw, 110px) var(--pad); border-top: 1px solid var(--line); }
.more-grid { display: grid; gap: clamp(22px, 3vw, 38px); max-width: 1400px; margin: 0 auto; }
.more-grid a { display: block; color: var(--ink); text-decoration: none; }
.more-grid .shot { min-height: 0; aspect-ratio: 5 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid #c9d2e0; }
.more-grid .shot.alt { background: linear-gradient(135deg, #f1f4fa 30%, #cfdcff 70%, #7fa0ff); }
.more-grid .view { width: 76%; border-radius: 8px; box-shadow: 0 24px 60px #0b122055; transition: transform .5s; }
.more-grid a:hover .view { transform: scale(1.04); }
.more-grid b { display: flex; justify-content: space-between; gap: 16px; font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 var(--serif); margin-top: 16px; }
.more-grid b::after { content: "↗"; font-family: var(--sans); font-size: .7em; transition: transform .25s; }
.more-grid a:hover b::after { transform: translate(3px, -3px); }
.more-grid span { color: var(--muted); }

/* Kontakt: Formularkarte auf blauer Fläche mit Wellen */
.contact { padding: 0 var(--pad) clamp(64px, 9vw, 128px); scroll-margin-top: 60px; }
.panel { position: relative; background: var(--blue-soft); border-radius: 16px; overflow: hidden; display: grid; gap: 32px; padding: clamp(24px, 5vw, 80px); align-items: center; }
.panel svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; }
.waves g { animation: drift 26s linear infinite; } .waves g + g { animation-duration: 38s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(-1200px); } }
.panel > * { position: relative; }
.panel h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.panel p { color: #3c4658; font-size: 1.1rem; max-width: 520px; }
.form { background: var(--surface); border-radius: 12px; padding: 26px; border: 1px solid var(--line); animation: bob 6s ease-in-out infinite alternate; }
.form:focus-within { animation-play-state: paused; } @keyframes bob { to { transform: translateY(-8px); } }
.form label { display: block; font-weight: 500; font-size: .9rem; margin: 16px 0 6px; }
.form label:first-child { margin-top: 0; }
.form input, .form textarea { width: 100%; font: inherit; padding: 13px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--blue); background: #fff; outline: 0; box-shadow: 0 0 0 3px #1f4fe022; }
.form .hp { position: absolute; left: -9999px; width: auto; }
.form .btn { width: 100%; justify-content: center; margin-top: 18px; border-radius: 10px; }
.form .form-msg { margin: 14px 0 0; font-size: .9rem; max-width: none; }
.form .note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; background: none; border: 0; padding: 0; border-radius: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (min-width: 700px) {
  .foot { grid-template-columns: 1.6fr 1fr; }
  .panel { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  footer { padding-bottom: clamp(56px, 8vw, 110px); }
}
@media (max-width: 699px) {
  .top a.link { display: none; }
  .top .status { padding: 14px 20px; font-size: .8rem; white-space: nowrap; }
  .top .name { font-size: 1.35rem; padding-right: 16px; }
}
