/* Schriften liegen lokal, damit keine Verbindung zu Google nötig ist */
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-display: swap; src: url("../fonts/dmsans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-display: swap; src: url("../fonts/dmsans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }

/* Helles Design: Weiß mit blauen Akzenten */
:root {
  --night: #ffffff;
  --night-2: #f3f7fd;
  --panel: #ffffff;
  --line: #dbe4f0;
  --text: #0f1a2e;
  --muted: #4f5f78;
  --blue: #1f6be3;
  --blue-light: #1f6be3;
  --cyan: #0779a8;
  --amber: #a36a00;
  --violet: #6a52d9;
  --error: #c62828;
  --radius: 14px;
  --nav-h: 72px;
  /* Motiv aus dem Logo-Ring: Bögen und Knotenpunkte */
  --ring-slate: #5c6f8c;
  --ring-blue: #1f6be3;
  --ring-cyan: #0b9fd6;
  --arc-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 19 Q50 -17 100 19' fill='none' stroke='%231f6be3' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --arc-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 1 Q50 37 100 1' fill='none' stroke='%235c6f8c' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --arc-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='M1 0 Q37 50 1 100' fill='none' stroke='%231f6be3' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --ring-mini: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Ccircle cx='32' cy='32' r='28' stroke='%235c6f8c' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='38 9 52 9 59 9' transform='rotate(-80 32 32)'/%3E%3Ccircle cx='32' cy='32' r='23.5' stroke='%231f6be3' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='22 40 30 56' transform='rotate(-150 32 32)'/%3E%3Ccircle cx='32' cy='4' r='3.2' fill='%23fff' stroke='%230b9fd6' stroke-width='1.8'/%3E%3Ccircle cx='7.8' cy='46' r='2.6' fill='%230b9fd6'/%3E%3Ccircle cx='58.3' cy='41.6' r='2.4' fill='%23fff' stroke='%235c6f8c' stroke-width='1.4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.65 "DM Sans", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-light); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: "DM Sans", system-ui, sans-serif; line-height: 1.15; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.025em; }
h1 span { color: var(--blue-light); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--text); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.eyebrow { color: var(--cyan); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.28rem); color: var(--muted); margin-top: 22px; max-width: 34em; }
.sub { color: var(--muted); margin-top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(135deg, #1f6be3, #2f8df2); color: #fff; font: 600 1rem/1.25 "DM Sans", sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.14); transform: translateY(-1px); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--blue-light); }
.btn--small { min-height: 42px; padding: 8px 16px; font-size: .94rem; }

/* Menü */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img:first-child { width: 44px; }
.brand__word { width: 124px; }
.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__menu a:not(.btn) { color: var(--text); text-decoration: none; font-size: .97rem; }
.nav__menu a:not(.btn):hover, .nav__menu a[aria-current="page"]:not(.btn) { color: var(--blue-light); }
.nav__toggle { display: none; width: 46px; height: 46px; padding: 11px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--text); margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Start */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0; background: radial-gradient(640px 480px at 76% 45%, rgba(42, 120, 238, .16), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: 1.35fr .85fr; align-items: center; gap: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; color: var(--muted); font-size: .96rem; }
.hero__facts li { display: flex; align-items: center; gap: 9px; }
.hero__facts li::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--cyan); border-radius: 50%; flex: none; }
.hero__logo { position: relative; --logo-w: min(100%, 500px); }
.hero__logo img { position: relative; z-index: 1; width: var(--logo-w); margin-inline: auto; }
/* Großer, blasser Ring aus dem Logo, konzentrisch um die Krone */
.hero__ring { position: absolute; left: 50%; top: 35%; width: calc(var(--logo-w) * 1.6); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(28deg); opacity: .4; pointer-events: none; animation: ring-turn 240s linear infinite; }
.hero__ring * { vector-effect: non-scaling-stroke; }
.hero__ring .s { stroke: var(--ring-slate); }
.hero__ring .b { stroke: var(--ring-blue); }
@keyframes ring-turn { to { transform: translate(-50%, -50%) rotate(388deg); } }

/* Unterseiten */
.page-head { padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(640px 320px at 20% 0, rgba(42, 120, 238, .15), transparent 70%); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20em; }
.section--flush { padding-top: 0; }
.card__title { font-size: 1.3rem; }
.more { margin-top: 28px; font-weight: 600; }
.more a { display: inline-block; padding: 8px 0; }
.more a::after, .project__link::after { content: " →"; }
.cta { display: grid; justify-items: center; gap: 16px; text-align: center; }
.cta p { color: var(--muted); }
.project__link { margin-top: 2px; padding: 8px 0; font-weight: 600; }

/* Abschnitte */
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section--tint { background: var(--night-2); }
.section--contact { background: linear-gradient(180deg, #ffffff, #eaf2fe); }

/* Werbespot unter dem Startbereich: Ton und Laden erst nach Klick */
.spot { padding: 8px 0 clamp(48px, 6vw, 80px); }
.spot__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(15, 26, 46, .10); background: var(--night-2); }
.spot__video { display: block; width: 100%; height: 100%; object-fit: cover; }

.problems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin-top: 32px; }
.problems li { padding: 18px 0 18px 20px; border-left: 2px solid var(--blue); color: var(--muted); }
.problems strong { display: block; color: var(--text); font-size: 1.15rem; margin-bottom: 6px; }
.problems .solution { position: relative; margin-top: 12px; padding: 10px 14px 10px 38px; background: rgba(31, 107, 227, .07); border-radius: 9px; color: var(--blue); font-weight: 600; font-size: .97rem; }
.problems .solution::before { content: "→"; position: absolute; left: 14px; top: 10px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(15, 26, 46, .06); }
.card--accent { border-color: var(--blue); box-shadow: 0 8px 30px rgba(31, 107, 227, .16); }
.card > p { color: var(--muted); }
.ticks { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .97rem; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* Beispiel: Verbindungslinie erinnert an die Knoten im Logo */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; counter-reset: f; }
.flow li { position: relative; padding-top: 42px; counter-increment: f; }
/* Knotenpunkte wie im Logo-Ring, verbunden durch Bögen */
.flow li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 24px; height: 24px; background: #fff; border: 3px solid var(--ring-cyan); border-radius: 50%; }
.flow li:last-child::before { background: var(--ring-cyan); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: -6px; width: calc(100% - 12px); height: 18px; background: var(--arc-up) center / 100% 100% no-repeat; }
.flow li:nth-child(even):not(:last-child)::after { top: 11px; background-image: var(--arc-down); }
.flow p { color: var(--muted); margin-top: 6px; }
.note { margin-top: 34px; font-weight: 600; font-size: 1.1rem; color: var(--blue-light); }

/* Projekte */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.jump a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); font-size: .95rem; text-decoration: none; }
.jump a:hover { border-color: var(--blue-light); color: var(--blue-light); }
.cat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 20px; margin: 64px 0 22px; padding: 18px 22px; background: linear-gradient(90deg, rgba(31, 107, 227, .08), transparent 80%); border-radius: var(--radius); }
.cat--first { margin-top: 0; }
.cat__num { display: grid; place-items: center; width: 64px; height: 64px; font: 700 1.45rem/1 "DM Sans", sans-serif; color: var(--blue-light); background: var(--ring-mini) center / contain no-repeat; }
.cat h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.cat p { color: var(--muted); margin-top: 4px; }
.cat__count { color: var(--cyan); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.cards--two { grid-template-columns: repeat(2, 1fr); }
.cards--four { grid-template-columns: repeat(4, 1fr); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(15, 26, 46, .06); }
.project p { color: var(--muted); }
.project--full { grid-column: 1 / -1; }
.project--media { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 36px; }
.project__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.project__note { font-size: .85rem; }

/* Schlichte Geräterahmen für echte Screenshots */
.devices { position: relative; margin: 0; padding: 0 12% 7% 4%; }
.laptop__screen { padding: 2.2% 2.2% 2.6%; background: #1b2433; border-radius: 14px 14px 4px 4px; box-shadow: 0 18px 44px rgba(15, 26, 46, .16); }
.laptop__screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 3px; }
.laptop__base { position: relative; height: 12px; margin: 0 -4%; background: linear-gradient(#e8edf4, #b9c3d1); border-radius: 0 0 14px 14px; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); background: #a5b0bf; border-radius: 0 0 6px 6px; }
.phone { position: absolute; right: 0; bottom: 0; width: 25%; padding: 5px; background: #1b2433; border-radius: 20px; box-shadow: 0 14px 34px rgba(15, 26, 46, .22); }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 15px; }

.showcase { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
.showcase__text { color: var(--muted); margin-top: 16px; }
.showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

/* Lead-Ablauf als Grafik mit Beispieldaten */
.flow--lead { align-self: stretch; margin-top: 24px; }
.mock { display: grid; gap: 6px; margin-top: 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; line-height: 1.4; color: var(--muted); box-shadow: 0 4px 14px rgba(15, 26, 46, .05); }
.mock__field { padding: 4px 8px; background: var(--night-2); border: 1px solid var(--line); border-radius: 6px; }
.mock__btn { justify-self: start; padding: 3px 12px; background: var(--blue); color: #fff; border-radius: 6px; font-weight: 600; }
.mock__node { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.mock__node::before { content: ""; width: 8px; height: 8px; flex: none; border: 2px solid var(--ring-cyan); border-radius: 50%; }
.mock__subject { color: var(--text); font-weight: 600; }
.mock__bar { height: 6px; background: var(--line); border-radius: 3px; }
.mock__bar--short { width: 62%; }
.mock__table { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 5px 8px; align-items: center; }
.mock__table b { color: var(--text); font-weight: 600; }
.mock__new { color: var(--cyan); font-weight: 600; }
.pill { padding: 3px 11px; border: 1px solid currentColor; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.pill--live { color: var(--cyan); }
.pill--soon { color: var(--amber); }
.pill--dev { color: var(--violet); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font: 700 2rem/1 "DM Sans", sans-serif; color: var(--blue-light); margin-bottom: 12px; }
.steps p { color: var(--muted); margin-top: 6px; }

.about { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 48px; }
.about p:not(.eyebrow) { color: var(--muted); margin-top: 16px; max-width: 40em; }

/* Kontakt */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact > div > p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }
.next { margin-top: 26px; display: grid; gap: 10px; counter-reset: n; }
.next li { counter-increment: n; display: flex; gap: 12px; }
.direct { margin-top: 28px; padding: 18px 20px; display: grid; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.direct__title { font-weight: 600; color: var(--text); }
.direct a { font-weight: 600; text-decoration: none; }
.next li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); font-size: .85rem; font-weight: 600; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .96rem; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; background: var(--night); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font: 400 1rem/1.4 "DM Sans", sans-serif; }
textarea { resize: vertical; }
select { color-scheme: light; }
[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: .9rem; margin-top: 5px; }
.error[hidden], .status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { color: var(--muted); font-size: .92rem; }
.status { padding: 12px 14px; border-radius: 9px; border: 1px solid var(--cyan); }
.status--error { border-color: var(--error); color: var(--error); }

.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer nav { display: flex; gap: 22px; }
.footer a { display: inline-block; padding: 4px 0; color: var(--text); }

/* Rechtsseiten */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); margin-bottom: 26px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.ph { background: #f4bd5e; color: #201400; padding: 0 5px; border-radius: 4px; font-weight: 600; }

.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 56px 0; }
.notfound img { width: 150px; margin: 0 auto 22px; }
.notfound p { color: var(--muted); margin: 14px 0 26px; }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--night); border-bottom: 1px solid var(--line); }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__menu .btn { margin-top: 14px; }
  .hero__grid, .contact { grid-template-columns: 1fr; }
  .hero__logo { order: -1; }
  .hero__logo { --logo-w: min(62%, 300px); }
  .showcase, .project--media { grid-template-columns: 1fr; gap: 32px; }
  .flow li:not(:last-child)::after { display: none; }
  .cards, .cards--two { grid-template-columns: 1fr; }
  .cards--four { grid-template-columns: repeat(2, 1fr); }
  .flow, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .problems, .projects, .steps, .cards--four { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow li:not(:last-child)::after, .flow li:nth-child(even):not(:last-child)::after { display: block; left: 11px; top: 30px; width: 14px; height: calc(100% - 16px); background-image: var(--arc-v); }
  .flow li { padding: 0 0 0 42px; }
  .cat { grid-template-columns: auto 1fr; padding: 16px 18px; }
  .cat__count { grid-column: 2; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about img { width: 120px; }
  .form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero__ring { animation: none; }
}
