/* =========================================================
   Markus Rieger – Beratung für IT, Innovation und Digitalisierung
   Farbschema abgeleitet aus Logo1.jpg
   ========================================================= */

:root {
  --navy-900: #04121f;
  --navy-800: #071c2e;
  --navy-700: #0b2a42;
  --blue-600: #0a6ea0;
  --blue-500: #0e8fc4;
  --cyan-400: #14a6d9;
  --cyan-300: #4fc3e8;
  --cyan-200: #9fe0f0;
  --ice-100: #eaf7fc;
  --white: #ffffff;
  --ink: #0b1e2e;
  --muted: #526478;
  --border: #e1edf3;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(4, 18, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(4, 18, 31, 0.10);
  --container: 1160px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.5em; }

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 18, 31, 0.92);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.brand-tagline { color: var(--cyan-200); font-size: 0.75rem; letter-spacing: 0.03em; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
}
.primary-nav a:hover { color: var(--white); text-decoration: none; }
.primary-nav a.active { color: var(--cyan-300); }
.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(79, 195, 232, 0.35), transparent 55%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--blue-600) 100%);
  color: var(--white);
  padding: 90px 0 70px;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  color: var(--cyan-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); }
.hero-lead { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 40px; }

.hero-trust {
  list-style: none;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 26px;
}
.hero-trust li { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.hero-trust strong { display: block; color: var(--white); font-size: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--ice-100); }
.section-eyebrow {
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-lead { font-size: 1.1rem; max-width: 640px; }

.grid { display: grid; gap: 26px; margin-top: 42px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-media {
  margin: -32px -32px 30px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  line-height: 0;
}
.card-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.challenge-card .card-media img { height: 150px; }
.service-card .card-media { margin-bottom: 34px; }
.service-card .card-media img { height: 190px; }

.card-link { font-weight: 600; }
.card-link-invert { color: var(--white); }
.card-link-invert:hover { color: var(--cyan-200); }

.service-card p { margin-bottom: 0.8em; }
.service-note { font-size: 0.92rem; }
.service-highlight {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  border: none;
  color: var(--white);
}
.service-highlight h3 { color: var(--white); }
.service-highlight p { color: rgba(255,255,255,0.85); }

/* ---------- Steps ---------- */
.steps { text-align: left; }
.step { position: relative; padding-top: 8px; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}
.avatar-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
}
.stat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0;
  margin: 28px 0 0;
}
.stat-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
}
.stat-grid strong { display: block; font-size: 1.6rem; color: var(--blue-600); }
.stat-grid span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.kontakt-section {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.invert-text { color: var(--white); }
.invert-text-muted { color: rgba(255,255,255,0.75); }
.section-eyebrow-invert { color: var(--cyan-300); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  margin-top: 42px;
  align-items: start;
}
.booking-panel, .contact-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 32px;
}
.booking-panel h3, .contact-panel h3 { color: var(--white); }
.booking-embed {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  margin: 18px 0;
  min-height: 480px;
}
.booking-embed iframe { width: 100%; height: 560px; border: none; display: block; }

.contact-form { margin-top: 18px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--cyan-300);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { min-height: 1.2em; font-size: 0.9rem; margin-top: 10px; }
.form-status.success { color: var(--cyan-300); }
.form-status.error { color: #ff9d9d; }

.contact-meta { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); }
.contact-meta p { color: rgba(255,255,255,0.8); margin-bottom: 10px; }
.contact-meta a { color: var(--cyan-300); }
.linkedin-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--cyan-300); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.65); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.footer-brand img { border-radius: 50%; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { width: 100%; font-size: 0.78rem; margin-top: 4px; color: rgba(255,255,255,0.45); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Legal pages (Impressum/Datenschutz) ---------- */
.legal-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: var(--white);
  padding: 60px 0 46px;
}
.legal-hero h1 { color: var(--white); margin-bottom: 6px; }
.legal-hero p { color: rgba(255,255,255,0.8); margin: 0; }
.legal-content { padding: 56px 0 90px; max-width: 780px; }
.legal-content h2 { margin-top: 2em; font-size: 1.3rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { padding-left: 1.2em; }
.legal-note {
  background: var(--ice-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: 0.92rem;
}
.legal-note strong { color: var(--navy-900); }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    display: none;
    gap: 18px;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 16px; width: 100%; }
  .nav-cta { width: 100%; text-align: center; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }
}
