/* =========================================================
   Dirk Hildebrand – App-Maker & M365 Supporter
   Theme: Modern & farbig mit Microsoft-Akzenten
   ========================================================= */

/* ---------- Schrift: Inter, lokal gehostet (kein externer Dienst) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Markenfarben (Design System Dirk Hildebrand) */
  --ms-red: #dc2626;
  --ms-green: #16a34a;
  --ms-blue: #2196f3;
  --ms-yellow: #f59e0b;

  --accent: #2196f3;
  --accent-2: #2196f3;
  --gradient: linear-gradient(120deg, #2196f3 0%, #1976d2 55%, #15203c 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --shadow: 0 10px 40px rgba(15, 30, 60, 0.10);
  --shadow-lg: 0 24px 70px rgba(15, 30, 60, 0.16);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Light (Standard) ---------- */
:root,
[data-theme='light'] {
  --bg: #f6f8fc;
  --bg-elev: #ffffff;
  --bg-alt: #eef2f9;
  --text: #15203c;
  --text-soft: #4a5a72;
  --border: rgba(15, 30, 60, 0.08);
  --orb-opacity: 0.35;
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --bg: #0b1020;
  --bg-elev: #131a2e;
  --bg-alt: #0f1526;
  --text: #eaf0fb;
  --text-soft: #9aabc7;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --orb-opacity: 0.5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Animierter Hintergrund ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  width: 42vw; height: 42vw;
  max-width: 560px; max-height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  animation: float 18s ease-in-out infinite;
}
.orb--red    { background: var(--ms-red);    top: -8%;  left: -6%;  animation-delay: 0s; }
.orb--green  { background: var(--ms-green);  bottom: -12%; left: 18%; animation-delay: -4s; }
.orb--blue   { background: var(--ms-blue);   top: 6%;   right: -8%; animation-delay: -8s; }
.orb--yellow { background: var(--ms-yellow); bottom: -8%; right: 12%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(4%, -6%) scale(1.08); }
  66%      { transform: translate(-4%, 4%) scale(0.95); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 42px; width: auto; }
.brand__logo--dark { display: none; }
[data-theme='dark'] .brand__logo--light { display: none; }
[data-theme='dark'] .brand__logo--dark { display: block; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--text-soft);
  position: relative; transition: color var(--transition), background var(--transition);
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a.active { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: transform var(--transition), background var(--transition);
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.06); }
.theme-toggle .icon { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle .icon--moon { display: none; }
[data-theme='dark'] .theme-toggle .icon--sun { display: none; }
[data-theme='dark'] .theme-toggle .icon--moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 0.97rem;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px rgba(10, 132, 255, 0.35); background-size: 160% 160%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 132, 255, 0.45); background-position: 100% 0; }
.btn--ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }

.nav-toggle { display: none; }

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  display: none; flex-direction: column; padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border); background: var(--bg-elev);
}
.mobile-nav a { padding: 12px 6px; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; animation: dropdown 0.3s ease; }
@keyframes dropdown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-soft);
}
.badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ms-green); box-shadow: 0 0 0 0 rgba(127,186,0,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127,186,0,0.5); } 70% { box-shadow: 0 0 0 10px rgba(127,186,0,0); } 100% { box-shadow: 0 0 0 0 rgba(127,186,0,0); } }

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.02em; margin: 20px 0 18px;
}
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-soft); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }

.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: block; }
.stat__num, .stat__suffix { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1; display: inline; }
.stat__suffix { color: var(--accent); }
.stat__label { display: block; font-size: 0.85rem; color: var(--text-soft); margin-top: 6px; }

/* Hero Visual */
.hero__visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.ms-logo-mark {
  width: 250px; height: 250px;
  padding: 38px; border-radius: 28px; background: var(--bg-elev); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); display: grid; place-items: center;
  transform: rotate(-6deg); animation: tiltcard 7s ease-in-out infinite;
}
.ms-logo-mark img { width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18)); }
@keyframes tiltcard { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }

.floating-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: var(--bg-elev);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); font-size: 0.82rem;
  animation: bob 5s ease-in-out infinite;
}
.floating-card small { color: var(--text-soft); }
.fc__icon { font-size: 1.4rem; }
.card-1 { top: 6%; left: -4%; animation-delay: 0s; }
.card-2 { bottom: 14%; left: -8%; animation-delay: -1.5s; }
.card-3 { top: 22%; right: -6%; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Trust ---------- */
.trust { padding: 18px 0 8px; }
.trust__label { text-align: center; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 18px; }
.trust__list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.trust__list li {
  padding: 9px 18px; border-radius: 999px; background: var(--bg-elev);
  border: 1px solid var(--border); font-weight: 600; font-size: 0.9rem; color: var(--text-soft);
  transition: transform var(--transition), color var(--transition), border-color var(--transition);
}
.trust__list li:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.section__head p { color: var(--text-soft); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card--feature { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-elev)), var(--bg-elev)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card--feature::before { transform: scaleX(1); }
.card--feature::after { content: 'Schwerpunkt'; position: absolute; top: 18px; right: 18px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: var(--gradient); color: #fff; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.ic--blue   { background: color-mix(in srgb, var(--ms-blue) 16%, transparent); }
.ic--red    { background: color-mix(in srgb, var(--ms-red) 16%, transparent); }
.ic--green  { background: color-mix(in srgb, var(--ms-green) 16%, transparent); }
.ic--yellow { background: color-mix(in srgb, var(--ms-yellow) 22%, transparent); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }
.card__list { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.card__list li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--text-soft); }
.card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--ms-green); font-weight: 800; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative; transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step__num {
  display: inline-block; font-size: 1rem; font-weight: 800; color: #fff;
  background: var(--gradient); width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about__media { display: grid; place-items: center; }
.about__badge {
  width: 100%; max-width: 360px; border-radius: 28px;
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; padding: 48px; position: relative; overflow: hidden;
}
.about__badge::after {
  content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, var(--ms-red), var(--ms-yellow), var(--ms-green), var(--ms-blue), var(--ms-red));
  opacity: 0.12; animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about__badge img { position: relative; z-index: 1; max-width: 100%; }
.about__text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.about__text p { color: var(--text-soft); margin-bottom: 14px; }
.checklist { list-style: none; margin: 18px 0 26px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 500; }
.checklist li::before { content: '✓'; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ms-green); color: #fff; font-size: 0.7rem; display: grid; place-items: center; top: 3px; }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.contact__form {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea {
  font-family: inherit; font-size: 0.97rem; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.form-note { font-size: 0.88rem; min-height: 1.2em; }
.form-note.ok { color: var(--ms-green); }
.form-note.err { color: var(--ms-red); }

.contact__info {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow);
}
.contact__info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); transition: color var(--transition); }
.contact__item:last-of-type { border-bottom: none; }
a.contact__item:hover { color: var(--accent); }
.contact__ic { font-size: 1.4rem; }
.contact__hint { font-size: 0.85rem; color: var(--text-soft); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding-top: 48px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; }
.footer__brand img { height: 40px; margin-bottom: 12px; }
.footer__brand p { color: var(--text-soft); font-size: 0.92rem; max-width: 280px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer__nav a { color: var(--text-soft); font-weight: 500; transition: color var(--transition); }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--border); padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-soft); font-size: 0.85rem; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { padding: clamp(48px, 7vw, 90px) 0; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal address { color: var(--text-soft); margin-bottom: 12px; font-style: normal; }
.legal a { color: var(--accent); }
.legal .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 30px; font-weight: 600; color: var(--accent); }
.legal .placeholder { background: color-mix(in srgb, var(--ms-yellow) 16%, transparent); border: 1px dashed var(--ms-yellow); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--text); font-size: 0.9rem; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev); cursor: pointer; }
  .nav-toggle span { width: 20px; height: 2px; background: var(--text); margin: 0 auto; transition: var(--transition); }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 280px; order: -1; }
  .floating-card { display: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__media { order: -1; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .floating-card { display: none; }
  .footer__bottom { flex-direction: column; }
}
