/* ==========================================================================
   OKeskin IT Consulting – Stylesheet
   ========================================================================== */

/* Schrift lokal eingebunden (keine Verbindung zu Google, DSGVO-freundlich) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0e1b33;
  --navy-2: #16274a;
  --blue: #2f6bff;
  --blue-dark: #1f57e6;
  --blue-soft: #eaf0ff;
  --green: #10885a;
  --green-soft: #e9f8f1;
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --text: #0e1b33;
  --muted: #5b6780;
  --line: #e3e8f1;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn.light { background: #ffffff14; border: 1px solid #ffffff33; }
.btn.light:hover { background: #ffffff24; }
.btn.outline { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.outline:hover { border-color: var(--navy); }

/* ---------- Navigation ---------- */
.site-nav { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, box-shadow .3s; }
.site-nav.solid, .site-nav.open { background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--navy); white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 14px; }
.logo small { font-weight: 500; opacity: .6; font-size: 13px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: #0e1b33cc; list-style: none; transition: color .3s; }
.site-nav.solid .nav-links { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #0e1b3326; background: #ffffff66; cursor: pointer; color: var(--navy); place-items: center; }
.site-nav.solid .burger, .site-nav.open .burger { border-color: var(--line); background: transparent; }
/* Über dem dunklen Abendfoto: helle Navigation, bis gescrollt wird */
.site-nav:not(.solid):not(.open) .logo { color: #fff; }
.site-nav:not(.solid):not(.open) .nav-links { color: #ffffffd9; }
.site-nav:not(.solid):not(.open) .nav-links a:hover, .site-nav:not(.solid):not(.open) .nav-links a.active { color: #fff; }
.site-nav:not(.solid):not(.open) .burger { color: #fff; border-color: #ffffff4d; background: #ffffff1a; }
.burger svg { width: 20px; height: 20px; }
.burger .x { display: none; }
.site-nav.open .burger .x { display: block; }
.site-nav.open .burger .bars { display: none; }

/* ---------- Hero ---------- */
/* Berglandschaft in Abendstimmung (eigenes Foto des Seiteninhabers) */
.hero { background: #2a2f45 url("../img/hero-landschaft.jpg") center 35% / cover no-repeat; color: #fff; padding: 160px 0 240px; min-height: min(100svh, 900px); position: relative; overflow: hidden; }
/* Heller Schleier links oben, damit der Text auch über den Bergen gut lesbar bleibt */
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 65% 60% at 20% 40%, #0b1226b3 0%, #0b122666 50%, transparent 80%), linear-gradient(180deg, #0b122659 0%, transparent 30%, transparent 70%, #0b122680 100%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: #ffffff1f; border: 1px solid #ffffff40; padding: 7px 14px; border-radius: 999px; color: #fff; backdrop-filter: blur(8px); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; margin: 26px 0 24px; text-shadow: 0 2px 30px #0b122640; }
.hero h1 span { background: linear-gradient(90deg, #8cbcff, #4d8dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; font-weight: 500; color: #e6e9f2; max-width: 560px; margin-bottom: 36px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn:not(.glass) { background: #fff; color: var(--navy); }
.hero .btn:not(.glass):hover { background: #f1f3f9; }
.btn.glass { background: #ffffff1f; color: #fff; border: 1px solid #ffffff59; backdrop-filter: blur(8px); }
.btn.glass:hover { background: #ffffff33; }
.hero-card { background: #ffffffd9; border: 1px solid #ffffffe6; color: var(--navy); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; padding: 30px; box-shadow: 0 30px 60px -30px #1e3a2a55; margin-top: 40px; max-width: 400px; justify-self: end; width: 100%; }
.hero-card .checks { margin: 14px 0 22px; font-size: 15px; }
.hero-card .checks li::before { color: #2f9e5b; }
.hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 20px; border-top: 1px solid #0e1b3314; }
.hero-card-stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-card-stats span { font-size: 13px; color: var(--muted); }

/* ---------- Kundenleiste ---------- */
.clients { border-bottom: 1px solid var(--line); }
.clients .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.clients p { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.clients ul { display: flex; gap: 48px; list-style: none; flex-wrap: wrap; }
.clients li { font-size: 20px; font-weight: 800; color: #9aa6bd; letter-spacing: -.02em; transition: color .2s; }
.clients li:hover { color: var(--navy); }

/* ---------- Sektionen ---------- */
section { padding: 110px 0; }
.center { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.kicker { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 16px; }
.center p { color: var(--muted); font-size: 17px; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { border: 1px solid var(--line); border-radius: 20px; padding: 34px; transition: transform .3s, box-shadow .3s, border-color .3s; background: #fff; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px #0e1b3340; border-color: transparent; }
.svc .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 22px; }
.svc h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15px; }
.checks { list-style: none; margin-top: 18px; font-size: 14px; }
.checks li { padding: 5px 0 5px 24px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* Über mich */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 16px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.numbers div { background: var(--bg-2); border-radius: var(--radius); padding: 28px; }
.numbers b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1.1; }
.numbers span { color: var(--muted); font-size: 14px; }

/* Projekte */
.projects-sec { background: var(--bg-2); }
.filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.filters button { font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: all .2s; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.proj[hidden] { display: none; }
.proj:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px #0e1b3355; border-color: transparent; }
.proj > button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; height: 100%; width: 100%; padding: 28px; cursor: pointer; border-radius: var(--radius); }
.proj > button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.proj .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.pill.m { background: var(--green-soft); color: var(--green); }
.proj h3 { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.proj .sector { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.proj .summary { font-size: 15px; color: var(--muted); flex: 1; }
.proj .tech { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--navy); font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.proj .tech em { font-style: normal; color: var(--blue); font-weight: 600; white-space: nowrap; }
.proj .details { display: none; }
.more-projects { text-align: center; margin-top: 40px; color: var(--muted); font-size: 15px; }
.more-projects a { color: var(--blue); font-weight: 600; }

/* Projekt-Dialog */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; color: var(--text); box-shadow: 0 40px 100px -20px #0e1b3366; }
dialog::backdrop { background: #0e1b33aa; backdrop-filter: blur(4px); }
dialog[open] { animation: pop .25s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg-head { padding: 32px 32px 24px; background: var(--navy); color: #fff; position: relative; }
.dlg-head .meta { font-size: 13px; color: #b7c3dc; display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.dlg-head h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; padding-right: 40px; }
.dlg-head .sector { color: #b7c3dc; }
.dlg-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #ffffff33; background: transparent; color: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.dlg-close:hover { background: #ffffff1a; }
.dlg-body { padding: 28px 32px 32px; }
.dlg-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.dlg-body h4:first-child { margin-top: 0; }
.dlg-body p { color: var(--muted); }
.dlg-body .chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.dlg-body .chips li { font-size: 13px; padding: 5px 12px; border-radius: 8px; background: var(--bg-2); }
.dlg-body .ext { display: inline-flex; margin-top: 24px; color: var(--blue); font-weight: 600; }
.dlg-body .ext:hover { text-decoration: underline; }

/* Ablauf */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; list-style: none; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -14px; left: 0; background: var(--bg); padding-right: 12px; font-weight: 800; color: var(--blue); }
.step h3 { font-size: 18px; font-weight: 700; margin: 8px 0; }
.step p { color: var(--muted); font-size: 15px; }

/* Stack & Qualifikationen */
.quals { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.stack-group { margin-top: 24px; }
.stack-group h3 { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tech-cloud li { padding: 8px 14px; border-radius: 10px; background: var(--bg-2); font-size: 14px; font-weight: 500; }
.cert { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cert .icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cert h3 { font-size: 17px; font-weight: 700; }
.cert p { font-size: 14px; color: var(--muted); }

/* Kontakt */
.contact { padding: 0 0 110px; }
.contact-box { background: var(--navy); color: #fff; border-radius: 28px; padding: 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.contact-box::after { content: ""; position: absolute; left: -100px; bottom: -300px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, #2f6bff33, transparent 60%); pointer-events: none; }
.contact-box > * { position: relative; z-index: 1; }
.contact-box .kicker { color: #7fa6ff; }
.contact-box p { color: #b7c3dc; }
.contact-direct { margin-top: 28px; display: grid; gap: 10px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.contact-direct a:hover { color: #7fa6ff; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { font-size: 13px; color: #b7c3dc; display: grid; gap: 6px; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 15px; padding: 14px 16px; border-radius: 10px; border: 1px solid #ffffff26; background: #ffffff0d; color: #fff; width: 100%; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8d9bb8; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .hint { font-size: 12px; color: #8d9bb8; }
.contact-form .hint a { text-decoration: underline; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-head { background: var(--navy); color: #fff; padding: 150px 0 64px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -250px; top: -250px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, #2f6bff40, transparent 60%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.page-head .kicker { color: #7fa6ff; }
.legal { padding: 72px 0 110px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -.02em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal address { font-style: normal; color: var(--text); line-height: 1.8; margin-bottom: 12px; }
.legal .note { background: var(--bg-2); border-left: 3px solid var(--blue); padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: 14px; }
.todo { background: #fff3c4; color: #7a5800; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 160px 0 80px; }
.notfound b { font-size: clamp(80px, 14vw, 160px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--blue-soft); -webkit-text-stroke: 2px var(--blue); }
.notfound p { color: var(--muted); margin: 8px 0 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a:hover { color: var(--blue); }

/* ---------- Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  dialog[open] { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .wrap { padding: 0 16px; }
  .burger { display: grid; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px #0e1b3340; color: var(--navy); font-size: 17px; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav.open .nav-links { display: flex; }
  .hero { padding: 120px 0 200px; min-height: 0; background-image: url("../img/hero-landschaft-mobil.jpg"); background-position: 40% bottom; }
  .hero::before { background: linear-gradient(180deg, #0b1226a6 0%, #0b122673 55%, #0b122640 100%); }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-card { justify-self: start; }
  section { padding: 72px 0; }
  .services, .grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .quals { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding-bottom: 72px; }
  .contact-box { grid-template-columns: 1fr; padding: 40px 24px; }
  .clients ul { gap: 24px; }
  .clients li { font-size: 17px; }
  .page-head { padding: 120px 0 48px; }
  .legal { padding: 48px 0 72px; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .grid, .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .nav-right .btn { display: none; }
  .logo small { display: none; }
  .dlg-head, .dlg-body { padding-left: 22px; padding-right: 22px; }
}
