/* Mailigator UG — Basis-Stylesheet
   Akzentfarbe und Typo an einer Stelle geändert -> gilt überall. */

:root {
  --bg:        #0d1117;
  --bg-alt:    #161b22;
  --line:      #262d38;
  --text:      #e6edf3;
  --text-mute: #9aa7b4;
  --accent:    #f0883e;
  --accent-dk: #b45309;
  --max:       1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

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

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-mute); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 90px; border-bottom: 1px solid var(--line); }

/* Hero mit Foto-Hintergrund: Bild abgedunkelt, damit der Text lesbar bleibt */
.hero-photo {
  position: relative;
  padding: 150px 0 130px;
  background: url("img/hero-desk.jpg") center/cover no-repeat;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,17,23,.94) 0%, rgba(13,17,23,.86) 45%, rgba(13,17,23,.55) 100%);
}
.hero-inner { position: relative; }
.hero-text { max-width: 660px; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.hero h1 span { color: var(--accent); }
.hero p { max-width: 620px; margin: 0 0 32px; font-size: 19px; color: var(--text-mute); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  background: var(--accent-dk);
  color: #fff;
  font-weight: 600;
}
.btn:hover { background: var(--accent); text-decoration: none; }

/* ---------- Sektionen ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
section h2 { margin: 0 0 40px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* Vier gleichwertige Karten sollen in einer Reihe stehen, nicht 3+1 umbrechen */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-4 { grid-template-columns: 1fr; } }
.card {
  padding: 30px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card .ico { width: 34px; height: 34px; margin-bottom: 18px; color: var(--accent); display: block; }
.card .num { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--accent); }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--text-mute); font-size: 15px; }

/* ---------- Bild + Text nebeneinander ---------- */
.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.split-inner img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.split-inner h2 { margin-bottom: 18px; }
.split-inner p { color: var(--text-mute); }
.split.reverse .split-inner img { order: 2; }

/* ---------- Kontakt ---------- */
.contact { text-align: center; }
.contact .mail { font-size: clamp(22px, 4vw, 32px); font-weight: 600; }

.kontakt-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.kontakt-inner p { color: var(--text-mute); }
.kontakt-direkt { margin-top: 24px; font-size: 17px; line-height: 2; }

/* ---------- Formular ---------- */
.feld { margin-bottom: 18px; }
.feld label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.feld input[type=text],
.feld input[type=email],
.feld input[type=tel],
.feld textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  /* 16px verhindert den Auto-Zoom von iOS beim Fokussieren */
  font: inherit;
  font-size: 16px;
}
.feld textarea { resize: vertical; min-height: 120px; }
.feld input:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.feld.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 22px 0 24px;
}
.feld.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent-dk); }
.feld.check label { font-weight: 400; font-size: 14px; color: var(--text-mute); }

/* Honeypot gegen Bots: unsichtbar, aber nicht display:none (das ignorieren manche Bots) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#kontaktform button[disabled] { opacity: .6; cursor: not-allowed; }

.formhinweis { margin: 16px 0 0; font-size: 15px; min-height: 22px; }
.formhinweis.ok { color: #3fb950; }
.formhinweis.fehler { color: #f85149; }

/* ---------- Footer ---------- */
footer { padding: 40px 0; }
.foot {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--text-mute);
}
.foot nav { display: flex; gap: 22px; }

/* ---------- Rechtstext-Seiten ---------- */
.legal { padding: 60px 0 80px; }
.legal h1 { font-size: 34px; letter-spacing: -.02em; }
.legal h2 { margin: 40px 0 12px; font-size: 20px; }
.legal h3 { margin: 26px 0 8px; font-size: 16px; color: var(--text); }
.legal p, .legal li { color: var(--text-mute); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .eyebrow { margin-bottom: 6px; }
.todo {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
}
.todo strong { color: var(--text); }

@media (max-width: 900px) {
  .kontakt-inner { grid-template-columns: 1fr; gap: 36px; }
  .split-inner { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-inner img { order: 0; }
  .split-inner img { max-height: 260px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 70px 0 60px; }
  .hero-photo { padding: 90px 0 80px; }
  .hero-photo::before {
    background: linear-gradient(180deg, rgba(13,17,23,.92) 0%, rgba(13,17,23,.88) 100%);
  }
  section { padding: 60px 0; }
}
