/* ------------------------------------------------------------------
   Berthold Seßler – Technologieberatung
   Stylesheet der Website, erstellt 09/2026
   Aufbau: 1 Farben & Grundlagen, 2 Kopf/Navigation, 3 Inhalte,
           4 Bausteine, 5 Fuß, 6 Responsive, 7 Druck
------------------------------------------------------------------- */

/* 1 Farben & Grundlagen ------------------------------------------ */
:root {
  --brand:        #005aab;   /* Logoblau  */
  --brand-dark:   #00406f;
  --brand-light:  #e7f0f9;
  --green:        #8dc63f;   /* Logogruen */
  --green-dark:   #4e7d13;
  --accent:       #8dc63f;
  --accent-light: #f2f8e8;
  --fg:           #1c2733;
  --fg-muted:     #4a5866;
  --bg:           #ffffff;
  --surface:      #f4f7fa;
  --border:       #d5dfe9;
  --radius:       10px;
  --maxw:         1100px;
  --shadow:       0 1px 3px rgba(0, 64, 111, .08), 0 8px 24px rgba(0, 64, 111, .07);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.25; color: var(--brand-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.18rem; margin-top: 1.8em; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
strong { color: var(--brand-dark); }

a { color: var(--brand); text-decoration: underline; text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-dark); color: #fff; padding: .7em 1.2em; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* 2 Kopf & Navigation -------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  gap: .6em 1.5em; padding-top: .9em; padding-bottom: .9em;
}
.site-header .wrap { max-width: 1280px; }
.brand { text-decoration: none; color: inherit; display: flex; align-items: center; gap: .75rem; }
.brand img { display: block; height: 42px; width: auto; }
.brand-text { display: block; }
.brand-name { display: block; font-weight: 700; font-size: 1.05rem; color: var(--brand); letter-spacing: -.01em; line-height: 1.2; }
.brand-claim { display: block; font-size: .74rem; color: var(--fg-muted); letter-spacing: .07em; text-transform: uppercase; }

.site-nav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: .2em .95em; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .35em 0; text-decoration: none; white-space: nowrap;
  font-size: .92rem; color: var(--fg-muted); border-bottom: 2px solid transparent;
}
/* Platz fuer die fette Schrift der aktiven Seite reservieren, damit die
   Leiste beim Seitenwechsel nicht breiter wird und umbricht */
.site-nav a::after {
  content: attr(data-label);
  display: block; height: 0; overflow: hidden; visibility: hidden;
  font-weight: 600; pointer-events: none;
}
.site-nav a:hover { color: var(--brand); border-bottom-color: var(--brand-light); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; border-bottom-color: var(--accent); }

/* 3 Inhalte ------------------------------------------------------- */
main { display: block; }

.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, #0a74cf 100%);
  color: #fff; padding: clamp(2.6rem, 1.5rem + 5vw, 5rem) 0;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero p { font-size: clamp(1.02rem, .97rem + .4vw, 1.2rem); max-width: 60ch; color: #e6f0fa; }
.hero .btn-row { margin-top: 1.6em; }

.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2.4rem 0 2rem; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--fg-muted); max-width: 62ch; margin: 0; }

.section { padding: 2.6rem 0; }
.section + .section { padding-top: .6rem; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section > .wrap > :first-child { margin-top: 0; }
.prose { max-width: 70ch; }

/* 4 Bausteine ----------------------------------------------------- */
.btn {
  display: inline-block; margin: 0 .6em .6em 0; padding: .72em 1.45em;
  background: var(--green); color: #00365e; font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: var(--radius); border: 2px solid var(--green);
}
.btn:hover { background: #7cb22f; border-color: #7cb22f; color: #00365e; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-secondary:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); }
.btn-blue { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-blue:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.6em 0 0; padding: 0; list-style: none; }
.card {
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow); margin: 0;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link::after { content: " \2192"; }
.card-link:hover { text-decoration: underline; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.7em; }
.checklist li::before {
  content: ""; position: absolute; left: .25em; top: .62em;
  width: .5em; height: .5em; background: var(--accent); border-radius: 50%;
}

.questions { list-style: none; padding-left: 0; max-width: 70ch; }
.questions li {
  background: var(--brand-light); border-left: 4px solid var(--brand);
  padding: .8em 1em; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: .7em;
}

.steps { counter-reset: step; list-style: none; padding-left: 0; max-width: 70ch; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .1em;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}

.table-scroll { overflow-x: auto; margin: 1.4em 0; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .95rem; }
caption { text-align: left; color: var(--fg-muted); font-size: .9rem; padding-bottom: .6em; }
th, td { border: 1px solid var(--border); padding: .7em .8em; text-align: left; vertical-align: top; }
thead th { background: var(--brand-light); color: var(--brand-dark); }
table.figures thead th.group-head { text-align: center; background: var(--brand); color: #fff; }
tbody tr:nth-child(even) { background: var(--surface); }

.callout {
  background: var(--accent-light); border-left: 4px solid var(--accent);
  padding: 1em 1.2em; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }

.cta-band { background: var(--brand-dark); color: #fff; padding: 2.8rem 0; margin-top: 3rem; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #dce9f5; max-width: 60ch; }
.cta-band a:not(.btn) { color: #fff; }

.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.6em 0; padding: 0; list-style: none; }
.contact-grid > li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0; }
.contact-grid .label { display: block; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-muted); }
.contact-grid .value { font-size: 1.08rem; font-weight: 600; }

.linklist { list-style: none; padding-left: 0; columns: 2; column-gap: 2.4rem; }
.linklist li { break-inside: avoid; margin-bottom: .55em; }

.note { font-size: .93rem; color: var(--fg-muted); }

.timeline { list-style: none; padding-left: 0; max-width: 72ch; }
.timeline li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: .2em 1rem;
  padding: .55em 0; border-bottom: 1px solid var(--border);
}
.timeline li:last-child { border-bottom: 0; }
.timeline .year { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

.figures td:not(:first-child), .figures th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
table.figures thead tr:last-child th { text-align: right; }
table.figures thead th[rowspan] { vertical-align: bottom; }

@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; }
  .timeline .year { font-size: .9rem; }
}

/* 5 Fuß ----------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.4rem 0 1.6rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.site-footer h2 { font-size: 1rem; margin: 0 0 .5em; color: var(--brand-dark); }
.site-footer ul { list-style: none; padding-left: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 1.8rem; padding-top: 1rem; color: var(--fg-muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .4em 1.4em; }

/* 6 Responsive ---------------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav ul { gap: .2em .72em; }
  .site-nav a { font-size: .86rem; }
  .brand img { height: 38px; }
  .brand-name { font-size: .98rem; }
}

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-wrap: wrap; }
  .site-nav a { font-size: .92rem; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .brand img { height: 34px; }
  .brand-name { font-size: .98rem; }
  .brand-claim { font-size: .68rem; }
  .header-inner { padding-top: .7em; padding-bottom: .5em; }
  .site-nav ul { gap: .1em .9em; }
  .site-nav a { font-size: .92rem; }
  .linklist { columns: 1; }
  .btn { display: block; text-align: center; margin-right: 0; }
  .hero .btn-row .btn { max-width: 24rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 7 Druck --------------------------------------------------------- */
@media print {
  .site-header, .site-nav, .btn, .cta-band { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .hero { background: none; color: #000; padding: 0 0 1em; }
  .hero h1, .hero p { color: #000; }
  a { color: #000; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
}
