/* DECIDE-Landingpage: gemeinsames Stylesheet nach [ui!]-Styleguide (Version 2021-09).
   Quelle der Vorgaben: _Unterlagen/ui-styleguide.pptx
   - Hausschrift Open Sans (Bold/Semibold Ueberschriften, Regular Fliesstext, Italic Metainfos),
     Ersatzschrift Arial. Lokal ausgeliefert, kein Abruf bei Google (Seite bleibt trackingfrei).
   - Primaerfarben Gruen #BED600, Weiss, Schwarz; dunkleres Gruen #90A300 fuer Schrift.
   - Dunkelblau #394256 ist die Textfarbe der [ui!]-Vorlagen (Theme dk1).
   - Logo unveraendert, farbig auf hell, weiss auf dunkel, Schutzzone = halbe Logohoehe.
   Anmutung wie ui.city: weisse Kopfzeile, kantige Flaechen, gruene Balken und Kacheln. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("open-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("open-sans-latin-wght-italic.woff2") format("woff2");
}

:root {
  --green: #bed600;        /* [ui!]-Gruen, Flaechen und Balken */
  --green-ink: #90a300;    /* dunkleres Gruen laut Styleguide, nur fuer grosse Schrift */
  --ink: #394256;          /* Dunkelblau der [ui!]-Vorlagen */
  --ink-soft: #575757;     /* Fliesstext-Grau von ui.city */
  --paper: #ffffff;
  --paper-soft: #f5f6f4;
  --line: #e1e4e8;
  /* Alt-Namen, damit seitenspezifische Regeln weiter greifen */
  --accent: var(--green);
  --accent-ink: var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: "Open Sans", Arial, sans-serif; color: var(--ink-soft);
       background: var(--paper); line-height: 1.65; font-size: 16px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Kopfzeile: weiss, Logo links, Navigation rechts (wie ui.city) */
header.site { background: #fff; position: sticky; top: 0; z-index: 40;
              border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
header.site .logo { display: block; padding: 8px 0; flex: 0 0 auto; }
header.site .logo img { display: block; height: 58px; width: auto; margin-left: -12px; }
header.site nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 22px; }
header.site nav a { color: #303030; font-weight: 600; font-size: .95rem; text-decoration: none;
                    padding: 6px 0; border-bottom: 3px solid transparent; }
header.site nav a:hover, header.site nav a:focus-visible { border-bottom-color: var(--green); text-decoration: none; }

/* Hero: dunkle Flaeche, weisse Headline, gruener Balken mit Kernaussage (ui.city-Muster) */
.hero { background: var(--ink); color: #fff; padding: 72px 0 76px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; top: 40px; bottom: 40px; width: 46px;
                              border: 10px solid var(--green); opacity: .9; }
.hero::before { left: max(16px, calc(50% - 600px)); border-right: 0; }
.hero::after { right: max(16px, calc(50% - 600px)); border-left: 0; }
.hero .wrap { position: relative; padding-left: 64px; padding-right: 64px; }
.hero h1 { font-weight: 700; font-size: 2.35rem; line-height: 1.22; max-width: 30ch; color: #fff; }
.hero .tagline { display: inline-block; background: var(--green); color: #000; font-weight: 600;
                 font-size: .9rem; padding: 5px 10px; margin-bottom: 20px; }
.hero p.lead { margin-top: 20px; max-width: 64ch; color: #e4e8ee; font-size: 1.08rem; }

section { padding: 60px 0; }
section.alt { background: var(--paper-soft); }
h2 { font-weight: 700; font-size: 1.6rem; line-height: 1.3; color: var(--ink); margin-bottom: 22px; }
h2::after { content: ""; display: block; width: 56px; height: 5px; background: var(--green); margin-top: 12px; }
h2 .num { color: var(--green-ink); }
h3 { font-weight: 600; color: var(--ink); font-size: 1.04rem; }
p + p { margin-top: 12px; }
strong, b { font-weight: 700; color: var(--ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

a { color: var(--ink); font-weight: 600; text-decoration: underline;
    text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn { display: inline-block; background: var(--green); color: #000; font-weight: 700;
       padding: 11px 22px; text-decoration: none; margin-top: 18px; }
.btn:hover { background: var(--ink); color: #fff; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--green); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
/* Gruene Kacheln wie die Loesungs-Kacheln auf ui.city */
.cols.tiles .card { background: var(--green); border: 0; color: #1d1d1b; }
.cols.tiles .card h3 { color: #000; font-weight: 700; }
.cols.tiles .card p, .cols.tiles .card code { color: #1d1d1b; }

.meta, .video-note, .caption { font-style: italic; }   /* Italic = Metainformation laut Styleguide */

/* Fusszeile mit Impressum */
footer { background: var(--ink); color: #d5dae3; font-size: .9rem; padding: 46px 0 50px; }
footer .footlogo { display: block; height: 46px; width: auto; margin: 0 0 22px -12px; }
footer h2 { color: #fff; font-size: 1.15rem; }
footer h2::after { width: 40px; height: 4px; margin-top: 10px; }
footer h3 { color: #fff; font-size: .95rem; margin: 18px 0 4px; }
footer a { color: #fff; }
footer strong { color: #fff; }
.imprint p { margin-top: 4px; }
.fineprint { margin-top: 24px; padding-top: 16px; border-top: 1px solid #55607a; color: #b4bccb; font-size: .84rem; }

@media (max-width: 760px) {
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 8px; }
  header.site nav { margin-left: 0; gap: 2px 16px; }
  header.site { position: static; }
  .hero { padding: 48px 0 52px; }
  .hero::before, .hero::after { display: none; }
  .hero .wrap { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: 1.75rem; }
  section { padding: 44px 0; }
}
