/* ============================================================
   CUSTOM PROPERTIES
============================================================ */
:root {
  --navy:         #0B1D2E;
  --blue-dark:    #0D3B6E;
  --blue:         #1565C0;
  --mint:         #00BCD4;
  --mint-light:   #4DD0E1;
  --mint-pale:    #E0F7FA;
  --white:        #FFFFFF;
  --off-white:    #F7FAFD;
  --light-bg:     #EEF5FC;
  --text:         #1A2535;
  --text-muted:   #5B7080;
  --border:       #D0DEE8;
  --shadow:       0 4px 24px rgba(11,29,46,.09);
  --shadow-lg:    0 8px 40px rgba(11,29,46,.16);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   .25s ease;
  --max-width:    1140px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: .5rem;
}
.section-title { margin-bottom: .75rem; }
.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 100%;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5.5rem 0; }
.section--alt { background: var(--off-white); }

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(11,29,46,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: .65rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.nav-logo-box {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mint) 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
#navbar .nav-cta {
  background: var(--mint);
  color: var(--navy);
  padding: 0 1.1rem;
  height: 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#navbar .nav-cta:hover { background: var(--mint-light); }
#navbar .nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 270px; height: 100vh; height: 100dvh;
    background: #0a192f;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem;
    gap: 1.5rem;
    transition: right .3s ease;
    box-shadow: -6px 0 30px rgba(0,0,0,.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; }
}

/* ============================================================
   HERO
============================================================ */
#home {
  min-height: 100vh; min-height: 100dvh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#home::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,188,212,.18) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
}
#home::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(11,29,46,1) 0%,
    rgba(13,59,110,.88) 45%,
    rgba(0,188,212,.07) 100%);
  pointer-events: none;
}
.hero-watermark {
  position: absolute;
  right: 3%;
  bottom: 5%;
  width: 50vmin;
  opacity: .045;
  transform: rotate(12deg);
  pointer-events: none;
  z-index: 0;
}
.hero-watermark svg { display: block; width: 100%; height: 100%; }
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-top: 7rem;
  text-align: center;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  background: rgba(0,188,212,.11);
  border: 1px solid rgba(0,188,212,.3);
  border-radius: 16px;
  padding: .6rem 1.4rem;
  color: var(--mint);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
  text-align: center;
}
.hero-badge__name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero-badge__role {
  font-size: .82rem;
  opacity: .85;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content h1 em {
  color: var(--mint);
  font-style: normal;
  display: block;
}
.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.68);
  margin-bottom: 2.5rem;
  max-width: 640px;
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
}
.hero-tagline strong { color: rgba(255,255,255,.9); font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--mint);
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(0,188,212,.35);
}
.btn--primary:hover {
  background: var(--mint-light);
  box-shadow: 0 6px 26px rgba(0,188,212,.45);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.07);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.stat-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--mint);
  line-height: 1;
}
.stat-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-top: .3rem;
  letter-spacing: .02em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.25);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   ÜBER MICH
============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.about-sidebar {}
.about-sidebar-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.about-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--mint);
}
.about-sidebar-head h3 { font-size: 1.15rem; color: var(--blue-dark); }
.about-sidebar-head p { font-size: .85rem; color: var(--text-muted); }

.about-facts { display: flex; flex-direction: column; gap: .75rem; }
.fact-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem .9rem;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.fact-icon { width: 32px; height: 32px; flex-shrink: 0; }
.fact-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--mint); }
.fact-value { font-size: .88rem; color: var(--text); line-height: 1.5; }

.about-text {}
.about-text p {
  margin-bottom: 1.1rem;
  line-height: 1.85;
  font-size: .97rem;
}
.about-text p:last-of-type { margin-bottom: 1.5rem; }
.about-text strong { color: var(--blue-dark); font-weight: 600; }
.about-text em { color: var(--text-muted); font-style: italic; }

@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   LEISTUNGEN
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(0,188,212,.25); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.svc-icon img { width: 64px; height: 64px; display: block; margin: 0 auto; }
.svc-card h3 { color: var(--blue-dark); margin-bottom: .7rem; font-size: 1rem; }
.svc-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================================
   EXPERTISE (PROSE)
============================================================ */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}
.exp-block {}
.exp-block h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.exp-block h3 img { width: 28px; height: 28px; flex-shrink: 0; }
.exp-block p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: .6rem;
}
.exp-block p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .exp-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   KONTAKT
============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro p {
  font-size: .97rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.contact-intro strong { color: var(--text); }

.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.c-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}
.c-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-icon svg { display: block; width: 100%; height: 100%; }
.c-label { font-size: .75rem; color: var(--text-muted); margin-bottom: .1rem; }
.c-value { font-weight: 600; font-size: .95rem; }
.c-value a { color: var(--blue); transition: color var(--transition); }
.c-value a:hover { color: var(--mint); }

.contact-form {}
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .35rem; }
.form-group input:not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem; /* min 16px – verhindert iOS-Zoom */
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none; /* entfernt iOS-Standard-Styling */
}
.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(0,188,212,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: .9rem; }
.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.form-group--checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  min-width: 16px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  margin-top: 3px;
  cursor: pointer;
  position: relative;
  background: var(--white);
}
.form-group--checkbox input[type="checkbox"]:checked {
  background: var(--mint);
  border-color: var(--mint);
}
.form-group--checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-group--checkbox label {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  cursor: pointer;
}
.form-group--checkbox a { color: var(--blue); text-decoration: underline; }

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   VERFÜGBARKEIT
============================================================ */
.section--avail {
  background: linear-gradient(140deg, #0B1D2E 0%, #0a2a50 60%, #062640 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.avail-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,188,212,.1) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
}
.avail-inner   { position: relative; z-index: 1; }
.avail-header  { text-align: center; margin-bottom: 3rem; }
.avail-header h2 { color: var(--white); }
.avail-header p  { color: rgba(255,255,255,.5); font-size: 1rem; margin-top: .5rem; }
.avail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.avail-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.avail-card__emoji { font-size: 2rem; margin-bottom: .75rem; line-height: 1; }
.avail-card__emoji img { width: 64px; height: 64px; display: block; margin: 0 auto; }
.avail-card__label {
  font-size: .72rem;
  color: var(--mint);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.avail-card__value { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.avail-card__sub   { font-size: .82rem; color: rgba(255,255,255,.45); margin-top: .5rem; line-height: 1.5; }
.avail-cta         { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   IMPRESSUM & DATENSCHUTZ
============================================================ */
.legal-content { max-width: 780px; }
.legal-content h3 {
  color: var(--blue);
  margin-top: 2rem;
  margin-bottom: .5rem;
  font-size: 1.1rem;
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: .4rem;
}
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content a { color: var(--blue); }
.legal-content a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #06111e;
  color: rgba(255,255,255,.45);
  padding: 2rem 0;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-links a:hover { color: var(--mint); }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.js-ready .reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-val { font-size: 1.7rem; }
}
