/* Risikoschmiede – Marketing-Website. Eigenständiges CSS, keine Abhängigkeit von RS Cockpit.
   Design-Tokens aus CLAUDE.md Abschnitt 14 (Corporate Design, Standard-Layout). */

/* Schriften selbst gehostet (nicht von fonts.googleapis.com geladen), damit keine Besucher-IP
   an Google übertragen wird (LG München I, 20.01.2022, 3 O 17493/20). Nur der lateinische
   Zeichensatz ist eingebunden, deckt deutsche Umlaute, ß und € ab. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/archivo-700.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/archivo-800.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-700.woff2") format("woff2");
}

:root {
  /* Farbe */
  --orange: #eb7a1e;
  --orange-text: #a8530f; /* Weiß/Anthrazit-Text auf Orange: #EB7A1E allein hat zu wenig Kontrast */
  --anthracite: #2d3136;
  --anthracite-light: #4a5057;
  --steel: #8c9197;
  --ember: #fceedd;
  --fg: #2d3136;
  --fg-muted: #4a5057;
  --bg: #ffffff;
  --surface: #f3f4f5;
  --line: #e3e5e7;

  /* Typografie */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg: #f0f1f2;
    --fg-muted: #c7cbce;
    --bg: #1e2125;
    --surface: #2d3136;
    --line: #3f444a;
    --ember: #3a2a1c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fg: #f0f1f2;
  --fg-muted: #c7cbce;
  --bg: #1e2125;
  --surface: #2d3136;
  --line: #3f444a;
  --ember: #3a2a1c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img {
  max-width: 100%;
}
a {
  color: var(--orange-text);
}
a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.2rem;
}
p {
  max-width: 65ch;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 8px;
}

/* Kopfzeile */
header.site {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
}
.brand img {
  height: 34px;
  width: auto;
  display: block;
  /* Logo ist in Anthrazit gezeichnet (design/Risikoschmiede_Logo_Anthrazit_2048px.png) und auf dunklem
     Grund sonst kaum sichtbar; im Dark Mode daher aufgehellt. */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img {
    filter: invert(1) brightness(1.08);
  }
}
:root[data-theme="dark"] .brand img {
  filter: invert(1) brightness(1.08);
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--orange-text);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--anthracite);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--anthracite-light);
}

/* Hero */
.hero {
  padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 72px);
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 18px;
}
.hero .eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--fg-muted);
  margin-top: 18px;
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--anthracite);
}
.btn-primary:hover {
  background: #d96c12;
}
.btn-secondary {
  border-color: var(--anthracite);
  color: var(--fg);
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange-text);
}

/* Abschnitte */
section {
  padding-block: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
}
section .section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 10px;
}

/* Über mich */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: start;
}
.about .quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
  color: var(--fg);
  border-left: 4px solid var(--orange);
  padding-left: 20px;
}
.about .bio p {
  color: var(--fg-muted);
  max-width: none;
}
.about .bio h3 {
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--fg);
}
.about .bio ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--fg-muted);
  font-size: 0.96rem;
}
.about .bio li {
  margin-bottom: 4px;
}

/* Zertifizierungen */
.cert-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
/* Die Badge-Grafiken (Credly) haben schwarzen Text ohne eigenen Hintergrund; im Dark Mode sonst kaum
   lesbar. Fester weißer Rahmen dahinter sorgt unabhängig vom Farbschema für Kontrast. */
.mark-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  flex: none;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
}
.cert-badge .mark {
  width: 128px;
  height: 128px;
  object-fit: contain;
}
.cert-badge .name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}
.cert-badge:hover {
  border-color: var(--orange);
}
.cert-badge .issuer {
  font-size: 0.78rem;
  color: var(--steel);
}
.cert-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--steel);
}

/* Leistungs-Karten */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ember);
  color: var(--orange-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.card p {
  color: var(--fg-muted);
  font-size: 0.97rem;
  margin: 0;
}
.card .tag {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.82rem;
  color: var(--steel);
  font-weight: 600;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-list .k {
  min-width: 3px;
  width: 3px;
  background: var(--orange);
  border-radius: 2px;
  align-self: stretch;
}
.contact-list .v {
  min-width: 0;
}
.contact-list .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  font-weight: 700;
}
.contact-list .value {
  font-weight: 600;
  word-break: break-word;
}
.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.copy-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg-muted);
  border-radius: 6px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover {
  border-color: var(--orange);
  color: var(--orange-text);
}
.copy-btn[data-copied="true"] {
  color: var(--orange-text);
  border-color: var(--orange);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  margin-top: 20px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--fg-muted);
}
footer.site a {
  color: var(--fg-muted);
  text-decoration: none;
  margin-left: 18px;
}
footer.site a:first-child {
  margin-left: 0;
}
footer.site a:hover {
  color: var(--orange-text);
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
}

/* Rechtsseiten (Impressum/Datenschutz) */
.legal {
  padding-block: clamp(40px, 6vw, 64px);
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  margin-bottom: 8px;
}
.legal .stand {
  color: var(--steel);
  font-size: 0.88rem;
  margin-bottom: 34px;
}
.legal h2 {
  font-size: 1.15rem;
  margin-top: 36px;
  margin-bottom: 10px;
}
.legal address {
  font-style: normal;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 8px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 36px;
}

@media (max-width: 760px) {
  .contact-grid,
  .about {
    grid-template-columns: 1fr;
  }
}
