/* AI Automation Manager – main.css | Mobile-first, keine externen Ressourcen */

:root {
  --c-bg: #0f1420;
  --c-bg-alt: #161d2e;
  --c-surface: #1c2438;
  --c-border: #2a3450;
  --c-text: #e7ecf5;
  --c-muted: #a7b2c9;
  --c-primary: #3ba7ff;
  --c-primary-hover: #1f8ce6;
  --c-accent: #48e0a0;
  --c-danger: #ff6b6b;
  --c-focus: #ffd166;
  --maxw: 1080px;
  --radius: 12px;
  --gap: clamp(1rem, 3vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--c-primary); }
a:hover { color: var(--c-primary-hover); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); }
p { margin: 0 0 1em; }

/* Fokus sichtbar (Barrierefreiheit) */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-focus);
  color: #111;
  padding: .6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section--alt { background: var(--c-bg-alt); }

.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: .5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--c-primary); color: #04121f; }
.btn--primary:hover { background: var(--c-primary-hover); color: #04121f; }
.btn--ghost { background: transparent; border-color: var(--c-border); color: var(--c-text); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--block { display: block; width: 100%; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,20,32,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--c-primary); }
.nav-toggle {
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  padding: .5rem .7rem;
  font-size: 1.1rem;
  cursor: pointer;
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: .25rem;
  width: 100%;
}
.nav-menu.open { display: flex; }
.nav-menu li { width: 100%; }
.nav-menu a {
  display: block;
  padding: .6rem .25rem;
  color: var(--c-muted);
  text-decoration: none;
  border-radius: 8px;
}
.nav-menu a:hover { color: var(--c-text); }
.nav-cta { margin-top: .25rem; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: .35rem;
  }
  .nav-menu li { width: auto; }
  .nav-menu a { padding: .4rem .7rem; }
  .nav-cta { margin-top: 0; margin-left: .5rem; }
}

/* Hero */
.hero { background: linear-gradient(160deg, #101728 0%, #0f1420 60%); }
.hero .container { padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero h1 { max-width: 18ch; }
.hero-sub { font-size: 1.2rem; color: var(--c-muted); max-width: 52ch; }
.hero-meta {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.hero-meta li {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .9rem;
  font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* Grids / Cards */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card h3 { color: var(--c-text); }
.card p:last-child { margin-bottom: 0; }
.card .ico { font-size: 1.6rem; margin-bottom: .5rem; display: block; }

/* Feature-Liste mit Haken */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .7rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent);
  font-weight: 700;
}

/* Kursdaten-Tabelle */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.data-table th { width: 40%; color: var(--c-muted); font-weight: 600; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  padding: 0 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-primary); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { padding-bottom: .5rem; }

/* Hinweisboxen */
.notice {
  border-left: 4px solid var(--c-accent);
  background: var(--c-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
}
.notice--warn { border-left-color: var(--c-focus); }

/* Formular */
.form-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid .col-2 { grid-template-columns: 1fr 1fr; display: grid; gap: 1rem; } }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--c-accent); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: .7rem .8rem;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-primary);
  outline: 2px solid var(--c-primary);
  outline-offset: 1px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--c-muted); }

.field-error {
  color: var(--c-danger);
  font-size: .82rem;
  min-height: 1em;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--c-danger);
}

.consent { flex-direction: row; align-items: flex-start; gap: .6rem; }
.consent input { width: auto; margin-top: .25rem; flex: 0 0 auto; }
.consent label { font-weight: 400; font-size: .9rem; color: var(--c-muted); }

/* Honeypot – für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}
.form-status.is-success { display: block; background: rgba(72,224,160,.12); border: 1px solid var(--c-accent); color: var(--c-accent); }
.form-status.is-error { display: block; background: rgba(255,107,107,.12); border: 1px solid var(--c-danger); color: var(--c-danger); }

.form-privacy {
  font-size: .85rem;
  color: var(--c-muted);
  margin-top: 1.25rem;
}

/* Transparenz-Hinweis */
.transparency {
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: .9rem;
  color: var(--c-muted);
}

/* Persönliche Empfehlung */
.recommend {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 820px) {
  .recommend { grid-template-columns: minmax(240px, 320px) 1fr; gap: 2.5rem; }
}
.recommend-person { margin: 0; position: relative; }
.recommend-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  aspect-ratio: 6 / 7;
}
.recommend-photo img { width: 100%; height: 100%; object-fit: cover; }
.recommend-photo--empty::after {
  content: "Foto Christian Wisniewski";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--c-muted);
  font-size: .85rem;
}
.recommend-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.35;
}
.recommend-badge-role {
  display: block;
  color: var(--c-primary);
  font-weight: 800;
  font-size: 1.1rem;
}
.recommend-text p { color: var(--c-muted); }
.recommend-facts {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .recommend-facts { grid-template-columns: 1fr 1fr; } }
.recommend-facts li {
  position: relative;
  padding-left: 1.9rem;
}
.recommend-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .1rem;
  color: var(--c-accent);
  font-weight: 700;
}
.recommend-facts strong { display: block; color: var(--c-text); }
.recommend-facts span { font-size: .88rem; color: var(--c-muted); }

/* Platzhalter deutlich sichtbar */
.placeholder {
  background: var(--c-focus);
  color: #111;
  padding: 0 .35em;
  border-radius: 4px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding-block: 2.5rem;
  font-size: .92rem;
  color: var(--c-muted);
}
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--c-text); margin: 0 0 .6rem; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--c-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-primary); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-border);
  font-size: .85rem;
}

/* Utility */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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