@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f7f6f2;        /* warmes Weiss */
  --card: #ffffff;
  --ink: #141c26;          /* tiefes Dunkelblau / Anthrazit */
  --ink-2: #2b3644;
  --muted: #5d6877;
  --line: #e2e0d8;
  --accent: #2563d9;       /* Blau */
  --accent-ink: #1b4aa6;
  --accent-soft: #e3ecfb;
  --on-dark: #c7cfda;
  --ok: #1f7a4d;
  --err: #b3261e;
  --radius: 10px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: var(--font);
  --body: var(--font);
  --wrap: 1120px;
  /* Kompatibilität für admin.css */
  --sun: var(--accent-soft);
  --sun-ink: var(--accent-ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 242, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand::before { content: 'MB'; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .04em; }
.brand:hover { color: var(--ink); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { background: #ecebe5; color: var(--ink); }
.nav-links .cta a { background: var(--ink); color: #fff; margin-left: 8px; }
.nav-links .cta a:hover { background: var(--accent); color: #fff; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 28, 38, .08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 17px; }
  .nav-links .cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-family: var(--font); font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #c9c6bb; }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.arrow::after { content: '→'; transition: transform .2s ease; }
.btn:hover .arrow::after, .btn.arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 26px; }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin-bottom: 20px; }
.hero .claim { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--ink-2); letter-spacing: -.02em; margin-bottom: 22px; }
.hero .claim em { font-style: normal; color: var(--accent); white-space: nowrap; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { position: relative; justify-self: end; width: min(100%, 380px); margin: 0; }
.portrait .frame { overflow: hidden; border-radius: 24px; background: #b8cbd0; box-shadow: 0 30px 60px -30px rgba(20, 28, 38, .45); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; transition: transform .6s ease; }
.portrait:hover img { transform: scale(1.03); }
.portrait::before { content: ''; position: absolute; z-index: -1; inset: 28px -28px -28px 28px; border-radius: 24px; background: var(--ink); }
.portrait figcaption { position: absolute; left: -24px; bottom: 28px; background: var(--card); border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.4; box-shadow: 0 12px 30px -12px rgba(20, 28, 38, .35); }
.portrait figcaption b { display: block; font-size: 15px; }
.portrait figcaption span { color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .portrait { justify-self: start; width: min(68%, 260px); order: -1; }
  .portrait::before { inset: 18px -18px -18px 18px; }
  .portrait figcaption { left: auto; right: -12px; bottom: 18px; }
}

/* ---------- Sektionen ---------- */
main { counter-reset: sec; }
section { padding: 96px 0; }
section.numbered { counter-increment: sec; }
.sec-head { margin-bottom: 44px; max-width: 720px; }
.sec-head .num { display: block; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 12px; }
section.numbered .sec-head .num::before { content: counter(sec, decimal-leading-zero) ' — '; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); hyphens: auto; overflow-wrap: break-word; }
.sec-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .sec-head h2 { color: #fff; }
.dark .sec-head .num { color: #8fb4ff; }
.dark .sec-head p { color: var(--on-dark); }
.dark a { color: #fff; }
@media (max-width: 560px) { section { padding: 72px 0; } .sec-head { margin-bottom: 32px; } }

/* Über mich */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.about-text p { font-size: 18px; color: var(--ink-2); }
.about-text p:first-child { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.5; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.facts { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 420px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* Stärken */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.strengths li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s ease, transform .2s ease; }
.strengths li:hover { border-color: #c8d6f2; transform: translateY(-2px); }
.strengths h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.strengths h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.strengths p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .strengths { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .strengths { grid-template-columns: 1fr; } }

/* Erfahrung */
.exp { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.exp-main { background: var(--ink-2); border-radius: 18px; padding: 36px; color: var(--on-dark); }
.exp-main .when { display: inline-block; font-size: 13px; font-weight: 600; color: #8fb4ff; background: rgba(143, 180, 255, .12); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.exp-main h3 { font-size: 26px; color: #fff; margin-bottom: 16px; }
.exp-main p { font-size: 16px; }
.tasks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tasks li { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; color: #e6ebf2; line-height: 1.45; }
.tasks li::before { content: '✓'; color: #8fb4ff; font-weight: 700; }
.stations { list-style: none; margin: 0; padding: 0; }
.stations li { padding: 18px 0 18px 26px; border-left: 2px solid rgba(255, 255, 255, .14); position: relative; }
.stations li::before { content: ''; position: absolute; left: -7px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid #8fb4ff; }
.stations .when { font-size: 13px; color: #8fb4ff; font-weight: 600; }
.stations .what { color: #fff; font-weight: 600; }
.stations .where { font-size: 15px; }
@media (max-width: 900px) { .exp { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .exp-main { padding: 26px 22px; } .tasks { grid-template-columns: 1fr; } }

/* Projekte */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
a.project:hover { color: inherit; border-color: #c8d6f2; transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(20, 28, 38, .45); }
.project .shot { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1d2a3a, #2b3e58); display: grid; place-items: center; color: #fff; overflow: hidden; }
.project .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.project:hover .shot img { transform: scale(1.04); }
.project .shot .mark { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.project .shot .mark small { display: block; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: #9fb7da; margin-top: 4px; }
.project .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project h3 { font-size: 20px; }
.project p { margin: 0; color: var(--muted); font-size: 15px; }
.project .link { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.project-text { align-self: center; padding: 8px 8px 8px 16px; }
.project-text h3 { font-size: 22px; margin-bottom: 12px; }
.project-text p { color: var(--ink-2); }
@media (max-width: 760px) { .project-text { padding: 8px 0 0; } }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }

/* Interessen */
.interests { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.interests li { font-size: 16px; font-weight: 500; padding: 11px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s ease, background-color .2s ease; }
.interests li:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Video ---------- */
.video-frame { position: relative; background: #0b1118; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kontakt & Zugang ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.panel-card h3 { font-size: 22px; margin-bottom: 8px; }
.panel-card > p { color: var(--muted); font-size: 15px; }
.panel-card.dark-card { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.panel-card.dark-card h3 { color: #fff; }
.panel-card.dark-card > p { color: var(--on-dark); }
.form { display: grid; gap: 14px; margin-top: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #cfccc2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { font-size: 13px; color: var(--muted); margin: 0; }
.form-msg { font-size: 15px; font-weight: 500; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.code-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.code-form input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 22px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 11px 16px; border: 1.5px solid #3b4757; border-radius: 12px; background: rgba(255, 255, 255, .04); color: #fff; }
.code-form input::placeholder { color: #5d6877; }
.code-form input:focus { outline: none; border-color: #8fb4ff; box-shadow: 0 0 0 4px rgba(143, 180, 255, .2); }
.dark-card .form-msg { width: 100%; }
.dark-card .form-msg.err { color: #ffb4ab; }
.dark-card .form-msg.ok { color: #9be3bd; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .panel-card { padding: 24px 20px; } }

/* ---------- Footer ---------- */
footer { padding: 36px 0 48px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* ---------- Scroll-Effekt ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Persönliche Bewerbungsseite ---------- */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow b { font-weight: 700; }
.p-hero { padding: 64px 0 80px; }
.p-hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: center; }
.p-hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.p-hero .lead { font-size: 19px; color: var(--ink-2); max-width: 44ch; margin-bottom: 30px; }
.p-hero .lead b { font-weight: 700; color: var(--ink); }
.p-hero .portrait { width: min(100%, 320px); }
@media (max-width: 860px) { .p-hero .wrap { grid-template-columns: 1fr; gap: 40px; } .p-hero .portrait { order: -1; width: min(62%, 240px); } }

.letter-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.letter-paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 60px -40px rgba(20, 28, 38, .5); padding: 56px 64px; max-width: 760px; position: relative; font-size: 16.5px; }
.letter-paper::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); border-radius: 6px 0 0 6px; }
.letter-paper .subject { font-weight: 700; font-size: 18px; margin-bottom: 26px; }
.letter-paper .date { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.letter-paper .sign { margin-top: 26px; }
.letter-paper .sign img { height: 70px; width: auto; margin: 4px 0; }
.letter-paper .sign b { font-weight: 600; }
.letter-side { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 960px) { .letter-grid { grid-template-columns: 1fr; } .letter-side { position: static; } }
@media (max-width: 640px) { .letter-paper { padding: 32px 22px 32px 28px; font-size: 16px; } }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .2s ease; }
.doc:hover { border-color: #c8d6f2; }
.doc .ico { width: 44px; height: 52px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 11px; display: grid; place-items: end center; padding-bottom: 8px; }
.doc .t { font-weight: 600; }
.doc .s { font-size: 14px; color: var(--muted); }
.doc .b { display: flex; gap: 8px; }
.doc.main { border: 1.5px solid var(--accent); background: #f4f8ff; }
.doc.main .ico { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .doc { grid-template-columns: 44px 1fr; } .doc .b { grid-column: 1 / -1; } .doc .b .btn { flex: 1; } }

.contact-card { background: var(--ink); color: #fff; padding: 26px; border-radius: 14px; }
.contact-card h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8fb4ff; margin-bottom: 14px; }
.contact-card p { margin: 0 0 8px; }
.contact-card a { color: #fff; }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- Kleine Seiten ---------- */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.center-page h1 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 18px; }
.center-page p { max-width: 46ch; margin: 0 auto 26px; color: var(--ink-2); }
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
