@import url("fonts/fonts.css");

/* ============================================================
   salesforce.fredon.de: gemeinsames Design für alle Seiten
   ============================================================ */

/* Light ist die Grundlage; der Dark-Block weiter unten tauscht nur
   die Farbtoken aus. Alles andere bleibt identisch. */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --ink: #14202e;
  --body: #40536b;
  --dim: #5e7189;
  --line: rgb(20 32 46 / 13%);
  --accent: #12579f;
  --accent-ink: #ffffff;
  --accent-soft: rgb(18 87 159 / 9%);
  --shadow: 0 1px 2px rgb(20 32 46 / 6%), 0 6px 18px rgb(20 32 46 / 5%);
  --r: 14px;
  --wrap: 940px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d151f;
    --surface: #14202e;
    --surface-2: #1a2a3b;
    --ink: #eaf0f6;
    --body: #c3d1df;
    --dim: #8ea3b8;
    --line: rgb(234 240 246 / 15%);
    --accent: #6fb0f7;
    --accent-ink: #0d151f;
    --accent-soft: rgb(111 176 247 / 13%);
    --shadow: none;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0;
}

a { color: var(--accent); }

p { margin: 0 0 14px; }

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

.eyebrow {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  color: var(--dim);
}

.skip { position: absolute; left: -9999px; }

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  font-weight: 600;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Kopf und Navigation ---------- */

/* Navigation ohne JavaScript: <details> liefert das Auf- und Zuklappen
   nativ mit, inklusive Tastaturbedienung. Das Burger-Menü gilt auf jeder
   Bildschirmgröße; auf breiten Schirmen wird nur das Panel schmaler und
   rechtsbündig statt über die volle Breite. */

.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-nav .wrap {
  position: relative; /* Bezugspunkt für das aufgeklappte Panel */
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
}

.brand {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand span { color: var(--accent); }

.nav-drop { flex: 0 0 auto; }

/* Nur die drei Striche, kein Beschriftungstext. Der zugängliche Name
   kommt über aria-label am summary. */
.nav-drop summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover { background: var(--surface-2); }
.nav-drop summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Burger-Symbol aus drei Balken, damit keine Icon-Schrift nötig ist */
.burger {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .18s, top .18s;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

.nav-drop[open] .burger { background: transparent; }
.nav-drop[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-drop[open] .burger::after { top: 0; transform: rotate(-45deg); }

.nav-menu {
  position: absolute;
  top: 100%;
  right: 16px;
  left: 16px;
  z-index: 30;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(20 32 46 / 18%);
}

.nav-menu a {
  display: block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--body);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-menu a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Auf breiteren Schirmen kein Vollbreiten-Panel, sondern ein
   rechtsbündiges Aufklappmenü unter dem Burger */
@media (min-width: 560px) {
  .nav-menu { left: auto; min-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .burger::before, .burger::after { transition: none; }
}

.site-head {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.site-head h1 { font-size: clamp(30px, 6.5vw, 46px); margin: 10px 0 14px; }
.site-head h1 em { font-style: normal; color: var(--accent); }

/* Kopfbereich mit Porträt: Text links, Bild rechts; ab 320 px untereinander */
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.profile-text { flex: 1 1 300px; min-width: 0; }

.portrait {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 620px) {
  .portrait { width: 176px; height: 176px; }
}

.lead { color: var(--body); font-size: 17px; max-width: 58ch; margin: 0; }

/* ---------- Inhalt ---------- */

main { padding-bottom: 30px; }

.section-title {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--dim);
  margin: 40px 0 14px;
}

/* ---------- Kartenraster (Projekte, Schwerpunkte) ---------- */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 920px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

/* Zweispaltige Aufzählung für Zertifizierungen und Ähnliches */
.cols { margin: 0 0 14px; padding-left: 22px; }
.cols li { color: var(--body); margin-bottom: 6px; }

@media (min-width: 620px) {
  .cols { columns: 2; column-gap: 34px; }
  .cols li { break-inside: avoid; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card h2, .card h3 { font-size: 20px; margin-bottom: 6px; }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--accent); }
.card p { color: var(--body); font-size: 15.5px; }
.card p:last-child { margin-bottom: 0; }

.card .role {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

/* Liste ohne Aufzählungszeichen, die Tags stehen als Pillen nebeneinander */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Beitragsliste ---------- */

.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.posts article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.posts h2 { font-size: 21px; margin-bottom: 6px; }
.posts h2 a { color: inherit; text-decoration: none; }
.posts h2 a:hover { color: var(--accent); }
.posts p { color: var(--body); font-size: 15.5px; margin-bottom: 0; }

.meta {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.meta .rel { color: var(--accent); }

/* ---------- Artikel ---------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(21px, 4.4vw, 26px); margin: 34px 0 10px; }
.prose h3 { font-size: 18.5px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--body); font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose blockquote {
  margin: 20px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  color: var(--body);
}

/* Breite Inhalte scrollen im eigenen Container, nicht die Seite */
.scroll-x { overflow-x: auto; margin: 0 0 16px; }

table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 15.5px; }

th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}

th {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.9em;
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 16px;
}

pre code { background: none; border: 0; padding: 0; font-size: 14px; }

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin: 20px 0;
}

.callout p:last-child { margin-bottom: 0; }

.backlink {
  display: inline-block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--dim);
  text-decoration: none;
  margin-bottom: 8px;
}

.backlink:hover { color: var(--ink); }

.sources { font-size: 14.5px; }
.sources li { margin-bottom: 4px; }

/* ---------- Formulare ---------- */

/* Ohne JavaScript: die Formulare posten an eine Pages Function,
   die anschließend auf eine Bestätigungsseite weiterleitet. */

/* Absatz, der nur einen Handlungsaufruf trägt */
.cta { margin: 4px 0 26px; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}

.field { margin-bottom: 16px; }

.field label, .fieldset legend {
  display: block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 5px;
  padding: 0;
}

.hint { color: var(--dim); font-size: 14.5px; }
.field .hint { display: block; font-size: 13.5px; margin: 0 0 6px; }

.req { color: var(--accent); }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
}

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

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 16px;
}

.choice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; }
.choice:last-child { margin-bottom: 0; }
.choice input { margin: 4px 0 0; flex: 0 0 auto; }

.choice label {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 15.5px;
  color: var(--body);
  margin: 0;
}

/* Sternewertung als Radiogruppe. Die Eingaben stehen im Markup von 5 nach 1;
   row-reverse dreht sie optisch um, dadurch färbt der Geschwister-Selektor
   den gewählten Stern und alle darunter ein. */
.stars-row {
  position: relative; /* Bezugspunkt für die absolut gesetzten Radios */
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.stars-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.stars-row label {
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--line);
  margin: 0;
  padding: 0 2px;
  transition: color .12s;
}

.stars-row input:checked ~ label,
.stars-row label:hover,
.stars-row label:hover ~ label { color: #e8a317; }

.stars-row input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Honeypot: für Menschen unsichtbar, Bots füllen ihn aus */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  appearance: none;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.08); }

/* ---------- Kundenerfahrungen ---------- */

.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

@media (min-width: 720px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
}

.rating { color: #e8a317; font-size: 17px; letter-spacing: 0.08em; margin-bottom: 8px; }

.review blockquote { margin: 0 0 12px; padding: 0; border: 0; color: var(--body); font-size: 16px; }

.review figcaption {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--dim);
}

/* ---------- Kontaktdaten ---------- */

.contact-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }

.contact-list a {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 17px;
}

/* ---------- Fuß ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}

.site-foot p { margin: 0 0 4px; }
.site-foot a { color: var(--dim); }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 10px;
}

.foot-nav a {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.foot-nav a:hover { color: var(--ink); }
.foot-nav a[aria-current="page"] { color: var(--ink); }

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

/* ---------- Druck ---------- */

@media print {
  body { background: #fff; color: #111; font-size: 11.5pt; }
  .site-nav, .site-foot, .backlink { display: none !important; }
  .site-head { background: #fff; border-bottom: 2px solid #111; padding-top: 0; }
  .site-head h1 em { color: #111; }
  .card, .posts article { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .prose p, .prose li, .card p, td { color: #222; }
  a { color: #111; }
}
