:root {
  --navy-900: #0b1526;
  --navy-800: #101f38;
  --navy-700: #16294a;
  --navy-600: #1e3a63;
  --gold-500: #c9a13b;
  --gold-400: #dab85c;
  --text-light: #eef2f8;
  --text-muted: #9fb0c9;
  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eceff4;
  --gray-200: #dbe1ea;
  --gray-600: #5a6a82;
  --success: #1f8a4c;
  --error: #c23b3b;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 21, 38, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--navy-900);
  background: var(--gray-50);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo span { color: var(--gold-400); }

.nav-drawer { display: contents; }

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.main-nav a:hover { color: var(--white); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); }

.btn-outline { border-color: rgba(255,255,255,0.25); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--white); }

.btn-secondary { background: var(--navy-700); color: var(--white); }
.btn-secondary:hover { background: var(--navy-600); }

.btn-block { display: block; width: 100%; text-align: center; }

button.btn { font-family: inherit; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 96px 0 110px;
}

.hero-inner { max-width: 720px; }

.hero-eyebrow {
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sections */
section.section { padding: 88px 0; }
section.section.alt { background: var(--white); }

.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-head p { color: var(--gray-600); font-size: 1.05rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
}

.step-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.step-card p { color: var(--gray-600); margin: 0; font-size: 0.95rem; }

/* Vorteile grid */
.vorteile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.vorteile-card {
  background: var(--navy-800);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 32px;
}

.vorteile-card h3 { color: var(--gold-400); margin-top: 0; }
.vorteile-card ul { padding-left: 20px; margin: 16px 0 0; color: var(--text-muted); }
.vorteile-card li { margin-bottom: 8px; }

/* CTA */
.cta-band {
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 { margin: 0 0 12px; font-size: 1.75rem; }
.cta-band .btn-primary { background: var(--navy-900); color: var(--white); }
.cta-band .btn-primary:hover { background: var(--navy-700); }

/* Forms */
.auth-wrap {
  max-width: 460px;
  margin: 64px auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  padding: 40px;
}

.auth-wrap.wide { max-width: 640px; }

.auth-wrap h1 { font-size: 1.5rem; margin-top: 0; }
.auth-wrap .subtitle { color: var(--gray-600); margin-bottom: 28px; font-size: 0.95rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=file], textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  /* 16px Mindestgröße: verhindert automatisches Hineinzoomen von Safari auf iPhone bei Fokus */
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,161,59,0.18);
}

textarea { resize: vertical; min-height: 120px; }

.form-footer { margin-top: 20px; font-size: 0.9rem; color: var(--gray-600); text-align: center; }

/* Alerts */
.alert {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
}
.alert-success { background: #e6f5ec; color: var(--success); border: 1px solid #bfe6cf; }
.alert-error { background: #fbeaea; color: var(--error); border: 1px solid #f2c4c4; }

/* Dashboard */
.dashboard { padding: 56px 0; }
.dashboard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.dashboard-head h1 { margin: 0; font-size: 1.6rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-card .label { color: var(--gray-600); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .value { font-size: 1.9rem; font-weight: 700; margin-top: 6px; }

/* Auftrag list */
.auftrag-list { display: flex; flex-direction: column; gap: 16px; }

.auftrag-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.auftrag-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.auftrag-card .meta { color: var(--gray-600); font-size: 0.85rem; margin-bottom: 10px; }
.auftrag-card .desc { color: var(--navy-900); font-size: 0.95rem; }

.auftrag-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  order: -1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.photo-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-offen { background: #e6f5ec; color: var(--success); }
.badge-uebernommen { background: #fff3d6; color: #92660b; }
.badge-in_bearbeitung { background: #dbeafe; color: #1d4ed8; }
.badge-abgeschlossen { background: var(--gray-100); color: var(--gray-600); }
.badge-storniert { background: #fbeaea; color: var(--error); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}

/* Footer */
.site-footer { background: var(--navy-900); color: var(--text-muted); margin-top: 80px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-links h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-links a { display: block; margin-bottom: 10px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.82rem;
  text-align: center;
}

/* Legal pages */
.legal-page { max-width: 780px; margin: 56px auto; padding: 0 24px; }
.legal-page h1 { font-size: 1.9rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 36px; }
.legal-page p, .legal-page li { color: var(--gray-600); }

@media (max-width: 860px) {
  .container { padding: 0 18px; }

  .nav-toggle { display: flex; }

  .nav-drawer {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-900);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  body.nav-open .nav-drawer { display: flex; }
  body.nav-open { overflow: hidden; }

  .main-nav {
    flex-direction: column;
    gap: 0;
    padding: 8px 18px;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 18px 24px;
  }

  .header-actions .btn { width: 100%; }

  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p.lead { font-size: 1.02rem; }
  .hero-actions .btn { width: 100%; }

  section.section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 1.6rem; }

  .steps, .vorteile-grid, .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .auftrag-card { flex-direction: column; }
  .auftrag-thumb { width: 100%; height: 160px; }

  .auth-wrap { padding: 28px 20px; margin: 32px auto; }
  .auth-wrap.wide { max-width: 100%; }

  .dashboard-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .dashboard-head .btn { width: 100%; text-align: center; }
}
