/* Alma AI Partners – Styles
   Keine externen Ressourcen, nur Systemschriften. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f7;
  --text: #1c2626;
  --text-muted: #4a5858;
  --border: #d9e2e2;
  --accent: #1d5c58;        /* Kontrast auf Weiß ca. 7:1 */
  --accent-hover: #164642;
  --on-accent: #ffffff;
  --accent-soft: #e3f0ee;
  --focus: #0b57d0;
  --radius: 12px;
  --maxw: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1516;
    --bg-soft: #151d1e;
    --text: #e8eeee;
    --text-muted: #aab8b8;
    --border: #2a3636;
    --accent: #7cc9c2;      /* Kontrast auf --bg ca. 9:1 */
    --accent-hover: #9adbd5;
    --on-accent: #0b1213;
    --accent-soft: #1a2b2b;
    --focus: #8ab4f8;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

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

img, svg { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 4rem;
  padding-block: 0.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand span { color: var(--accent); }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: 0.4rem 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.975rem;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--text); text-decoration: underline; }

.nav-toggle {
  display: none;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  min-height: 2.75rem;
  cursor: pointer;
}

/* Mit JS: Menü auf kleinen Bildschirmen einklappbar */
.js .nav-toggle { display: inline-block; }
.js .site-nav { display: none; width: 100%; }
.js .site-nav.is-open { display: block; }
.js .nav-list { flex-direction: column; padding-bottom: 0.75rem; }
.js .nav-list a { padding: 0.65rem 0.25rem; width: 100%; }

@media (min-width: 48rem) {
  .js .nav-toggle { display: none; }
  .js .site-nav { display: block; width: auto; }
  .js .nav-list { flex-direction: row; padding-bottom: 0; }
  .js .nav-list a { padding: 0.4rem 0.25rem; width: auto; }
}

/* ---------- Sprachumschalter ---------- */

.brand { order: 1; }
.lang-switch { order: 2; }
.nav-toggle { order: 3; }
.site-nav { order: 4; }

.lang-switch ul {
  display: flex;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switch a {
  display: inline-block;
  padding: 0.65rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

@media (min-width: 48rem) {
  .site-nav { order: 2; }
  .lang-switch { order: 3; }
}

.footer-note { flex-basis: 100%; margin: 0; font-size: 0.9rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  color: var(--on-accent);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

.btn-secondary {
  color: var(--accent);
  background: transparent;
}
.btn-secondary:hover { color: var(--on-accent); }

/* ---------- Sektionen ---------- */

section { padding-block: 4rem; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 40rem; }
.section-intro { max-width: 40rem; color: var(--text-muted); margin-bottom: 2.5rem; }

/* Hero */
.hero { padding-block: 5rem 4.5rem; }
.hero h1 { max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Karten */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section-soft .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0.75rem 0 0; padding-left: 1.2rem; color: var(--text-muted); }
.card li + li { margin-top: 0.3rem; }

/* Vorgehen */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li {
  counter-increment: step;
  padding: 1.5rem;
  border-top: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 0 var(--radius) var(--radius);
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}
.steps p { color: var(--text-muted); margin-bottom: 0; }

/* Über uns */
.about { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .about { grid-template-columns: 3fr 2fr; } }

/* Platzhalter sichtbar machen */
.placeholder {
  padding: 0.1em 0.4em;
  background: #fff3c4;
  color: #5c4500;
  border: 1px dashed #b38600;
  border-radius: 4px;
  font-size: 0.95em;
}
@media (prefers-color-scheme: dark) {
  .placeholder { background: #3a3000; color: #ffe58a; border-color: #8a6d00; }
}

/* Kontakt */
.contact-box {
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.contact-box p { max-width: 36rem; margin-inline: auto; }
.contact-box .btn { margin-top: 0.75rem; }
.contact-mail { margin-top: 1rem; font-size: 0.95rem; color: var(--text-muted); overflow-wrap: anywhere; }

/* Rechtsseiten */
.legal { padding-block: 3.5rem 4.5rem; max-width: 46rem; }
.legal h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.notice {
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-left: 4px solid #b38600;
  background: #fff8dc;
  color: #4a3a00;
  border-radius: 0 8px 8px 0;
}
@media (prefers-color-scheme: dark) {
  .notice { background: #2b2400; color: #ffe58a; border-left-color: #8a6d00; }
}

/* Footer */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--text-muted); display: inline-block; padding: 0.3rem 0; }
.footer-nav a:hover { color: var(--text); }

@media (max-width: 30rem) {
  section { padding-block: 3rem; }
  .hero { padding-block: 3rem; }
  .hero-actions .btn { width: 100%; }
}

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