/* JD Software Freelancer. Dunkles, ruhiges Technik-Design: Tiefblau, Logo-Blau als Akzent, klare Typografie. */
:root {
  --nacht: #0b1220;
  --nacht-2: #111a2e;
  --nacht-3: #18243d;
  --linie: #263454;
  --text: #e8eefb;
  --text-2: #aab7d4;
  --akzent: #38b2ff;
  --akzent-2: #2f7bff;
  --hell: #f4f7fc;
  --hell-text: #0e1729;
  --hell-text-2: #46526b;
  --schrift: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --kopf: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--kopf); }
body { margin: 0; background: var(--nacht); color: var(--text); font-family: var(--schrift); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.rahmen { width: min(1180px, 100% - 48px); margin-inline: auto; }
.rahmen.schmal { width: min(820px, 100% - 48px); }
.abschnitt { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.hell-flaeche { background: var(--hell); color: var(--hell-text); }
.hell-flaeche .lead, .hell-flaeche p { color: var(--hell-text-2); }
.ueber { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); margin-bottom: 1rem; }
.hell-flaeche .ueber { color: #0b6fc2; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }
:focus-visible { outline: 3px solid var(--akzent-2); outline-offset: 3px; }

/* Kopf */
.kopf { position: fixed; inset: 0 0 auto 0; height: var(--kopf); z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 48px); transition: background .3s, box-shadow .3s; }
.kopf.fest { background: rgba(11, 18, 32, .88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--linie); }
.logo { text-decoration: none; font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; }
.logo b { font-weight: 700; color: var(--akzent); margin-left: 1px; }
.logo-zeichen { font-family: var(--mono); font-size: .95rem; color: var(--akzent); border: 1.5px solid var(--akzent); border-radius: 6px; padding: 1px 7px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.nav a:not(.knopf) { text-decoration: none; font-size: .95rem; color: var(--text-2); transition: color .2s; }
.nav a:not(.knopf):hover { color: #fff; }
.menue { display: none; width: 44px; height: 44px; background: none; border: 0; color: inherit; position: relative; cursor: pointer; }
.menue span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.menue span:first-child { top: 17px; } .menue span:last-child { top: 25px; }
.menue[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menue[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Knoepfe */
.knopf { display: inline-block; text-decoration: none; background: var(--akzent); color: #03162b; font: inherit; font-weight: 650; font-size: .98rem; padding: 14px 26px; border-radius: 10px; border: 1.5px solid var(--akzent); cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(56, 178, 255, .25); background: #7cccff; }
.knopf.rand { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf.rand:hover { border-color: var(--akzent); box-shadow: none; background: rgba(56, 178, 255, .08); }
.knopf.klein { padding: 9px 18px; font-size: .9rem; }

/* Held */
.held { position: relative; padding: calc(var(--kopf) + clamp(48px, 9vw, 110px)) 0 clamp(56px, 8vw, 100px); overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, #16305a 0%, transparent 60%), var(--nacht); }
.gitter { position: absolute; inset: 0; background-image: linear-gradient(var(--linie) 1px, transparent 1px), linear-gradient(90deg, var(--linie) 1px, transparent 1px); background-size: 56px 56px; opacity: .22; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.leuchten { position: absolute; width: 560px; height: 560px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(56, 178, 255, .22), transparent 65%); filter: blur(20px); animation: schweben 9s ease-in-out infinite alternate; }
@keyframes schweben { to { transform: translate(-40px, 30px); } }
.held-innen { position: relative; }
.held-innen > *, .kontakt > *, .kacheln > *, .stufen > * { min-width: 0; }
.fenster { max-width: 100%; }
.marke { max-width: 100%; display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--text-2); border: 1px solid var(--linie); border-radius: 999px; padding: 6px 16px; background: rgba(17, 26, 46, .7); }
.marke span { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 4px rgba(56, 178, 255, .2); }
.held h1 { margin-top: 1.1rem; }
.held h1 em { font-style: normal; background: linear-gradient(90deg, var(--akzent), var(--akzent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vorspann { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-2); max-width: 56ch; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 2rem; }
.fakten { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--linie); padding-top: 22px; }
.fakten strong { display: block; font-size: 1.05rem; color: #fff; }
.fakten span { font-size: .88rem; color: var(--text-2); line-height: 1.4; display: block; }

/* Code-Fenster */
.fenster { background: var(--nacht-2); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.fenster-kopf { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--linie); background: var(--nacht-3); }
.fenster-kopf i { width: 11px; height: 11px; border-radius: 50%; background: #3a4766; }
.fenster-kopf i:first-child { background: #ff6b6b; } .fenster-kopf i:nth-child(2) { background: #ffd166; } .fenster-kopf i:nth-child(3) { background: #4bd685; }
.fenster-kopf span { margin-left: 10px; font-family: var(--mono); font-size: .8rem; color: var(--text-2); }
.fenster pre { margin: 0; padding: 22px 22px 26px; font-family: var(--mono); font-size: .84rem; line-height: 1.75; overflow-x: auto; color: #cfd9f2; }
.fenster .k { color: #7ab8ff; } .fenster .s { color: #7ee3a6; } .fenster .z { color: #ffc07a; } .fenster .c { color: #6f7fa3; }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; margin: 2.6rem 0 2rem; }
.kachel { background: linear-gradient(180deg, var(--nacht-2), var(--nacht)); border: 1px solid var(--linie); border-radius: var(--radius); padding: 30px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.kachel:hover { transform: translateY(-4px); border-color: var(--akzent); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.kachel p { color: var(--text-2); margin: 0; }
.symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(56, 178, 255, .12); color: var(--akzent); font-size: 1.35rem; margin-bottom: 1.1rem; border: 1px solid rgba(56, 178, 255, .3); }
.grenze { background: var(--nacht-2); border: 1px dashed var(--linie); border-radius: 10px; padding: 16px 20px; color: var(--text-2); font-size: .95rem; }
.grenze strong { color: var(--text); }

/* Stufen */
.stufen { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: s; }
.stufen li { background: #fff; border: 1px solid #dfe6f3; border-radius: var(--radius); padding: 28px 24px; position: relative; }
.stufen span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--hell-text); color: #fff; font-family: var(--mono); font-weight: 700; margin-bottom: 14px; }
.stufen h3 { color: var(--hell-text); }
.stufen p { margin: 0; font-size: .97rem; }

/* Technik */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 2rem 0; }
.chips li { font-family: var(--mono); font-size: .88rem; border: 1px solid var(--linie); background: var(--nacht-2); padding: 8px 16px; border-radius: 999px; color: var(--text); }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 2.6rem; }
.zahlen div { border-left: 3px solid var(--akzent); padding: 4px 0 4px 20px; }
.zahlen strong { display: block; font-size: 1.9rem; letter-spacing: -.02em; color: #fff; }
.zahlen span { color: var(--text-2); font-size: .95rem; }

/* FAQ */
details { background: #fff; border: 1px solid #dfe6f3; border-radius: 12px; margin: 0 0 12px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; color: var(--hell-text); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #0b6fc2; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding-bottom: 18px; margin: 0; }

/* Kontakt */
.kontakt-flaeche { background: radial-gradient(900px 500px at 10% 0%, #14305a 0%, transparent 60%), var(--nacht); }
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.liste { list-style: none; padding: 0; margin: 2rem 0 0; }
.liste li { display: flex; gap: 18px; padding: 13px 0; border-top: 1px solid var(--linie); }
.liste span { min-width: 150px; color: var(--akzent); font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.liste a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.formular { background: var(--nacht-2); border: 1px solid var(--linie); border-radius: var(--radius); padding: 32px; }
.formular label { display: block; margin-bottom: 18px; }
.formular label span { display: block; font-size: .85rem; color: var(--text-2); margin-bottom: 6px; }
.formular input, .formular textarea { width: 100%; background: var(--nacht); color: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 13px 15px; font: inherit; }
.formular input:focus, .formular textarea:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px rgba(56, 178, 255, .2); }
.notiz { font-size: .8rem; color: var(--text-2); opacity: .8; margin-top: 1.2rem; }

.fuss { background: #070c17; padding: 40px 0; color: var(--text-2); }
.fuss-innen { display: grid; gap: 8px; justify-items: center; text-align: center; }

/* Sprachumschalter */
.sprache { display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; padding: 3px; gap: 2px; }
.sprache button { background: none; border: 0; color: var(--text-2); font: inherit; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.sprache button[aria-pressed="true"] { background: var(--akzent); color: #03162b; font-weight: 700; }
.marke b { font-weight: 400; }
/* Sprachleiste immer sichtbar in der Kopfzeile (auch auf dem Handy) */
.kopf .sprache { margin-left: clamp(16px, 2.6vw, 34px); flex-shrink: 0; }
@media (max-width: 520px) {
  .kopf { padding: 0 14px; }
  .kopf .sprache { gap: 0; padding: 2px; }
  .kopf .sprache button { font-size: min(.72rem, 3.2vw); letter-spacing: 0; padding: 5px 6px; }
  .logo span { display: none; }
  .logo img { height: 30px; }
}
@media (max-width: 360px) {
  .kopf { padding: 0 10px; }
  .kopf .sprache button { font-size: min(.68rem, 3vw); padding: 5px 4px; }
  .logo img { height: 26px; }
}
/* Menü-Knopf deutlich sichtbar (Rahmen), schrumpft nie */
.menue { flex-shrink: 0; border: 1px solid var(--linie); border-radius: 10px; background: rgba(17, 26, 46, .75); }
.menue span { left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: #fff; }
.menue span:first-child { top: 14px; } .menue span:last-child { top: 22px; }
.menue::after { content: ""; position: absolute; left: 11px; right: 11px; top: 30px; height: 2.5px; border-radius: 2px; background: #fff; transition: opacity .2s; }
.menue[aria-expanded="true"] span:first-child { top: 20px; } .menue[aria-expanded="true"] span:last-child { top: 20px; }
.menue[aria-expanded="true"]::after { opacity: 0; }
/* Sicherung: nie breiter als der Bildschirm (sonst zoomt das Handy heraus und das Menü rutscht aus dem Bild) */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* Hervorgehobene Kachel */
.kachel.hervor { border-color: rgba(56, 178, 255, .55); background: linear-gradient(180deg, #13284a, var(--nacht-2)); box-shadow: 0 0 0 1px rgba(56, 178, 255, .15), 0 20px 60px rgba(0, 0, 0, .3); }
.schild { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #03162b !important; background: var(--akzent); border-radius: 999px; padding: 2px 10px; margin: 0 0 .7rem !important; }

/* Pakete und Preise */
.pakete-flaeche { background: linear-gradient(180deg, var(--nacht), var(--nacht-2)); border-top: 1px solid var(--linie); }
.preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; margin: 2.6rem 0 1.6rem; align-items: stretch; }
.preise > * { min-width: 0; }
.preis { display: flex; flex-direction: column; background: var(--nacht); border: 1px solid var(--linie); border-radius: var(--radius); padding: 32px 30px; }
.preis.hervor { border-color: var(--akzent); background: linear-gradient(180deg, #12294a, var(--nacht)); box-shadow: 0 24px 70px rgba(0, 0, 0, .4); }
.preis-art { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); margin-bottom: .6rem; }
.betrag { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: .4rem 0 .2rem; color: #fff; }
.betrag-zusatz { color: var(--text-2); font-size: .95rem; margin-bottom: 1.4rem; }
.preis ul { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.preis li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--linie); color: var(--text-2); font-size: .97rem; line-height: 1.5; }
.preis li::before { content: "✓"; position: absolute; left: 2px; top: 8px; color: var(--akzent); font-weight: 700; }
.preis .knopf { text-align: center; }
.preis-hinweis { color: var(--text-2); font-size: .92rem; border-left: 3px solid var(--akzent-2); padding: 4px 0 4px 16px; max-width: 80ch; }

/* Impressum und Datenschutz */
.rechtstext { padding-top: calc(var(--kopf) + 48px); }
.rechtstext h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.2em; }
.rechtstext h2 { font-size: 1.25rem; margin: 2em 0 .6em; color: var(--akzent); }
.rechtstext p { color: var(--text-2); }
.rechtstext strong { color: var(--text); }
.hinweis-entwurf { background: rgba(255, 192, 122, .1); border: 1px dashed #ffc07a; border-radius: 10px; padding: 14px 18px; font-size: .95rem; }

.ein { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.ein.da { opacity: 1; transform: none; }

.nav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .menue { display: block; }
  .nav { position: fixed; inset: var(--kopf) 0 auto 0; background: var(--nacht-2); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 22px; border-bottom: 1px solid var(--linie); transform: translateY(-130%); transition: transform .3s; }
  .nav.offen { transform: none; }
  .nav a:not(.knopf) { padding: 15px 0; border-bottom: 1px solid var(--linie); font-size: 1.05rem; }
  .nav .knopf { margin-top: 16px; text-align: center; }
  .kopf .sprache { margin-left: auto; margin-right: 6px; }
}
@media (max-width: 900px) {
  .preise { grid-template-columns: 1fr; }
  .held-innen, .kontakt { grid-template-columns: 1fr; }
  .fakten { grid-template-columns: 1fr; gap: 14px; }
  .liste span { min-width: 120px; }
  .held h1 { font-size: clamp(2rem, 9vw, 2.6rem); overflow-wrap: anywhere; }
  .kacheln { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leuchten { animation: none; }
  .ein { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* Kompaktes Logo und Leistungsübersicht */
.logo { flex-shrink: 0; white-space: nowrap; }
.logo img { width: 78px; height: 48px; object-fit: contain; }
.held-text { max-width: 820px; }
.kernleistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weitere-leistungen { margin-top: 0; }
@media (max-width: 640px) {
  .kernleistungen { grid-template-columns: 1fr; }
  .logo img { width: 62px; }
}

/* Logo in Kopf und Fuß (JD-Zeichen aus dem Logo) */
.logo img { width: auto; height: 40px; object-fit: contain; }
.logo span { font-size: 1.05rem; }
.fuss .logo img { height: 46px; }
@media (max-width: 640px) { .logo img { width: auto; height: 34px; } .logo span { font-size: .95rem; } }

/* Startbereich mit großem Logo */
.held-innen { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.held-bild { margin: 0; }
.held-bild img { display: block; width: 100%; height: auto; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%); }
@media (max-width: 900px) {
  .held-innen { grid-template-columns: 1fr; }
  .held-bild { order: -1; max-width: 560px; margin: -10px auto 0; }
}

/* WhatsApp-Knopf und Dialog */
.knopf.whatsapp { display: inline-flex; align-items: center; gap: 10px; margin-top: 1.6rem; background: #25d366; border-color: #25d366; color: #062b14; }
.knopf.whatsapp:hover { background: #3ee07a; box-shadow: 0 10px 30px rgba(37, 211, 102, .25); }
.liste b { font-weight: 500; }
.liste b a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.wa-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--nacht-2); color: var(--text); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.wa-dialog::backdrop { background: rgba(3, 8, 18, .72); backdrop-filter: blur(3px); }
.wa-innen { padding: 26px 26px 22px; }
.wa-innen h2 { font-size: 1.4rem; margin-bottom: .4em; }
.wa-hinweis { color: var(--text-2); font-size: .93rem; }
.wa-themen { display: grid; gap: 8px; margin: 1rem 0 1.2rem; }
.wa-themen label { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: 10px; cursor: pointer; font-size: .97rem; line-height: 1.35; }
.wa-themen label:has(input:checked) { border-color: #25d366; background: rgba(37, 211, 102, .08); }
.wa-themen input { width: 18px; height: 18px; accent-color: #25d366; flex-shrink: 0; }
.wa-feld { display: block; margin-bottom: 14px; }
.wa-feld span { display: block; font-size: .85rem; color: var(--text-2); margin-bottom: 6px; }
.wa-feld input, .wa-feld textarea { width: 100%; background: var(--nacht); color: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 11px 13px; font: inherit; }
.wa-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.wa-los { background: #25d366; border-color: #25d366; color: #062b14; }

/* Formular: Bot-Falle unsichtbar, Statusmeldung */
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular { position: relative; }
.formular textarea { resize: vertical; min-height: 120px; }
.formular-status { min-height: 1.4em; margin: 1rem 0 0; font-size: .95rem; }
.formular-status.gut { color: #4bd685; }
.formular-status.schlecht { color: #ff8a8a; }
.notiz a { color: var(--akzent); }