/* ===========================================================================
   Bayram Software — Unternehmensseite
   ===========================================================================

   SCHRIFT: Newsreader (Serife) + Public Sans — DIESELBEN Schriften, die die
   App benutzt (app/pubspec.yaml, „Ledger"-Sprache der PC-Dashboards). Aus
   app/assets/fonts/*.ttf konvertiert, auf die benutzten Zeichen beschnitten,
   als woff2 selbst ausgeliefert. Beide OFL. KEIN Google-Fonts-Aufruf: die
   Seite laedt nichts von fremden Servern, erzwungen per CSP in firebase.json.
   Zusammen 84 KB fuer fuenf Schnitte.

   FARBEN: Marke #0E4C5C — das App-Petrol (kBrandSeed, theme.dart:17) und
   zugleich die Farbe der Bildmarke Bayram Software. Die Website trug bis zum
   23.09. 16:20 das Navy #163F59 des larnea-Logos; nachgezogen wurde die
   WEBSITE, nicht die App — 17 getrackte Dateien tragen Petrol, keine trug
   Navy. Papier ist bewusst WARM (#F6F4F1) gegen das kuehle Petrol; ein
   neutralgraues Papier laesst die Seite technisch wirken.
   Alle Paare sind auf Kontrast gemessen, der schwaechste liegt bei 4,91:1.
   =========================================================================== */

@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('schrift/newsreader-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('schrift/newsreader-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('schrift/publicsans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('schrift/publicsans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('schrift/publicsans-700.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* EINE Farbe fuer alles: #0E4C5C. Das ist `kBrandSeed` aus
     app/lib/core/theme.dart und zugleich die Farbe der Bildmarke Bayram
     Software. Gemessen am 23.09.: 17 getrackte Dateien im Repo tragen dieses
     Petrol, keine einzige trug das Navy ausser dieser Website. Deshalb ist
     die Website nachgezogen — nicht die App.
     #03677D ist kein ausgedachter Ton: genau den leitet `ColorScheme.fromSeed`
     aus dem Seed ab (theme.dart:12). */
  --marke:      #0E4C5C;
  --marke-tief: #07333F;
  --marke-hell: #03677D;

  --tinte:  #14202B;
  --grau:   #5F6C77;
  --papier: #F6F4F1;
  --linie:  #E5DFD8;
  --linie-zart: #EFEAE4;

  --serife: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:   'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --rand: 1120px;
  --weich: 0 1px 2px rgba(20,32,43,.04), 0 8px 24px -12px rgba(20,32,43,.10);
  --gehoben: 0 2px 4px rgba(20,32,43,.05), 0 18px 40px -16px rgba(20,32,43,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--tinte);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.breite { max-width: var(--rand); margin: 0 auto; padding: 0 32px; }

/* ---------------------------------------------------------------- Kopf --- */

header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--linie-zart);
}
.kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding: 20px 0; flex-wrap: wrap;
}

/* Wortmarke: die Bildmarke IST das B von „Bayram" — danach folgt „ayram
   Software" als Schrift. Deshalb kein `gap`, sondern ein feiner optischer
   Abstand, und die Marke sitzt auf der Grundlinie statt mittig.

   ⛔ ZUGAENGLICHKEIT: Fuer Vorlesesoftware waere „ayram Software" Unsinn.
   Der Verweis traegt darum `aria-label="Bayram Software"`, das Bild ein
   leeres `alt`. Wer die Seite hoert, hoert den vollen Namen.

   ⛔ Die Bildmarke ist NUR 93 x 85 px gross — bei dieser Hoehe reicht das,
   fuer Favicon, Social-Bild oder Druck NICHT. Siehe docs/WEBSITE_UND_STORES.md.

   Die Rechtsform steht nicht mehr im Kopf (Flo, 23.09.): sie gehoert ins
   Impressum, nicht in die Marke. */
.wortmarke {
  text-decoration: none; color: var(--tinte);
  display: flex; align-items: baseline; white-space: nowrap;
  /* Die Schriftgroesse steht HIER, nicht auf dem <b>: das Bild rechnet seine
     Hoehe in em, und em bezieht sich auf das Element selbst. Stand sie nur
     auf dem <b>, erbte das Bild die 17px des Koerpers — die Marke war dann
     2,3px zu kurz (gemessen 23.09., nachdem genau das passiert war). */
  font-size: 21px;
}
.wortmarke > img {
  /* Die Marke ist ein „B" und gehoert auf die Versalhoehe — Unterkante auf
     der Grundlinie, Oberkante auf der Versallinie. In em, damit es beim
     Aendern der Schriftgroesse mitwandert.

     ⛔ ABGEMESSEN, NICHT GESCHAETZT. Flo bemerkte es am 23.09. am Bildschirm
     („der schriftzug liegt zu hoch"); gemessen wurde es an den Pixelzeilen
     eines 6-fach gerenderten Bildschirmfotos, Marke gegen das „S" von
     Software:

       Fassung                  oben      unten
       15px + translateY(.5px)  +0,83px   +0,50px   ← Flos Befund
       .733em (falscher Bezug)  +2,33px    0,00px   ← em erbte 17px vom Koerper
       .73em                    −0,67px    0,00px
       .70em  (diese)           +0,33px    0,00px

     Unten sitzt es exakt. Die verbleibende Drittelpixel oben ist Absicht:
     eine flache Form wirkt bei gleicher Hoehe groesser als ein Buchstabe. */
  height: .70em; width: auto; display: block; flex: none;
  margin-right: 2.5px;
}
/* ⛔ SANS, NICHT SERIFE — und das ist gemessen, nicht Geschmack:
   Fuenf Fassungen nebeneinander gerendert (23.09.). Die Bildmarke ist ein
   geometrisches Balken-B; gegen Newsreader stossen flache Abschluesse auf
   modulierte Striche, das liest sich als zwei Schriften. Public Sans ist
   derselbe Formenkreis. Die Ueberschriften bleiben Serife — ein Kopf darf
   anders gesetzt sein als eine Ueberschrift, solange es Absicht ist. */
.wortmarke b {
  font-family: var(--sans); font-weight: 600; font-size: 1em;
  letter-spacing: -0.35px; line-height: 1.15;
}

nav { display: flex; gap: 30px; flex-wrap: wrap; }
nav a {
  position: relative; color: var(--grau); text-decoration: none;
  font-size: 15.5px; padding: 3px 0;
}
nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -1px;
  height: 1.5px; background: var(--marke); transition: right .22s ease;
}
nav a:hover { color: var(--marke); }
nav a:hover::after, nav a.hier::after { right: 0; }
nav a.hier { color: var(--marke); font-weight: 600; }

/* -------------------------------------------------------------- Flaechen - */

section { padding: 104px 0; }
section.getoent {
  background: var(--papier);
  border-block: 1px solid var(--linie);
}
section.dunkel {
  background: linear-gradient(160deg, var(--marke) 0%, var(--marke-tief) 100%);
  color: #fff;
}

/* --------------------------------------------------------------- Schrift - */

h1 {
  font-family: var(--serife); font-weight: 400;
  font-size: clamp(38px, 5vw, 60px); line-height: 1.08;
  letter-spacing: -1.4px; margin: 0 0 24px; max-width: 16ch;
}
h2 {
  font-family: var(--serife); font-weight: 400;
  font-size: clamp(27px, 3vw, 36px); line-height: 1.22;
  letter-spacing: -0.7px; margin: 0 0 20px; max-width: 26ch;
}
h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.1px;
  margin: 0 0 9px; color: var(--tinte);
}
p { margin: 0 0 18px; max-width: 64ch; color: var(--tinte); }
.vorspann {
  font-size: 20.5px; line-height: 1.58; color: var(--grau);
  max-width: 52ch; margin-bottom: 32px;
}
.augenbraue {
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--marke-hell);
  margin: 0 0 20px; display: flex; align-items: center; gap: 12px;
}
.augenbraue::after {
  content: ''; flex: 0 0 40px; height: 1px; background: currentColor; opacity: .38;
}
em { font-family: var(--serife); font-style: italic; }

/* Ueberschrift, die aus der Wortmarke besteht (larnea-Seite). Als Bild statt
   als Schrift, weil die Wortmarke eine gezeichnete Form ist und keine
   Schriftart — nachgesetzt saehe sie aehnlich aus, aber nicht gleich. */
h1.wortbild { margin: 0 0 12px; max-width: none; }
h1.wortbild img { width: 242px; height: auto; display: block; }
@media (max-width: 640px) { h1.wortbild img { width: 198px; } }

a { color: var(--marke); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--marke-hell); }

/* --------------------------------------------------------------- Knoepfe - */

.knopf {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-family: var(--sans);
  font-size: 15.5px; font-weight: 600; letter-spacing: .1px;
  background: var(--marke); color: #fff;
  padding: 14px 26px; border-radius: 9px;
  box-shadow: var(--weich);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.knopf:hover {
  background: var(--marke-tief); color: #fff;
  transform: translateY(-1px); box-shadow: var(--gehoben);
}
.knopf svg { width: 15px; height: 15px; }
.knopf.leer {
  background: transparent; color: var(--marke); box-shadow: none;
  box-shadow: inset 0 0 0 1px var(--linie);
}
.knopf.leer:hover {
  background: #fff; color: var(--marke);
  box-shadow: inset 0 0 0 1px var(--marke-hell), var(--weich);
}
.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

/* --------------------------------------------------------------- Karten -- */

.raster {
  display: grid; gap: 22px; margin-top: 44px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.karte {
  background: #fff; border: 1px solid var(--linie-zart);
  border-radius: 14px; padding: 30px 28px 32px;
  box-shadow: var(--weich);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.karte:hover {
  transform: translateY(-3px); box-shadow: var(--gehoben);
  border-color: var(--linie);
}
.karte p { font-size: 15.5px; line-height: 1.62; color: var(--grau); margin: 0; max-width: none; }
.karte .ring {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(22,63,89,.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.karte .ring svg { width: 21px; height: 21px; color: var(--marke); display: block; }

/* ------------------------------------------------------------ Markenfeld - */

.markenfeld {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, #1B4C6B 0%, var(--marke) 46%, var(--marke-tief) 100%);
  border-radius: 20px; padding: 60px 44px 50px;
  color: #fff; text-align: center;
  box-shadow: 0 30px 60px -28px rgba(15,44,63,.55);
}
/* Feiner Lichtbogen oben links — gibt der Flaeche Tiefe, ohne Muster */
.markenfeld::before {
  content: ''; position: absolute; inset: -60% 40% 60% -30%;
  background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent);
  pointer-events: none;
}
.markenfeld > * { position: relative; }
.markenfeld img { display: block; margin: 0 auto 4px; width: 200px; max-width: 70%; height: auto; }
.markenfeld img.nur-marke { width: 86px; margin-bottom: 22px; }
.markenfeld .strich {
  width: 44px; height: 1px; background: rgba(255,255,255,.34);
  margin: 22px auto 20px;
}
.markenfeld p {
  margin: 0; max-width: 34ch; margin-inline: auto;
  color: rgba(255,255,255,.80); font-size: 15.5px; line-height: 1.6;
}

/* Mittig gesetzter Abschnitt. Nicht jeder Abschnitt vertraegt einen
   Zweispalter; ohne Gegenueber wirkt eine linksbuendige Spalte auf 1280px
   wie eine halbleere Seite. Mittig gesetzt liest es sich als Absicht. */
.mitte { max-width: 760px; margin-inline: auto; text-align: center; }
.mitte h2, .mitte p { max-width: none; }
.mitte .augenbraue { justify-content: center; }
.mitte .augenbraue::before {
  content: ''; flex: 0 0 40px; height: 1px; background: currentColor; opacity: .38;
}
.mitte .knopfreihe { justify-content: center; }
.mitte .hinweis {
  border-left: 0; border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  padding: 22px 0; margin: 32px auto; max-width: 54ch; text-align: center;
}

/* ------------------------------------------------------------ Zweispalter- */

.zwei {
  display: grid; gap: 64px; align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}
.zwei > div > p:last-child, .zwei > div > .knopfreihe:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------- Datenlisten - */

/* 168px, nicht 112: „GESCHÄFTSFÜHRER" lief sonst in den Wert hinein
   (gemessen im Rendern, 23.09.). `hyphens` faengt ab, was noch laenger wird. */
dl.daten { margin: 0; display: grid; grid-template-columns: 168px 1fr; gap: 14px 28px; }
dl.daten dt {
  color: var(--grau); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding-top: 5px;
  line-height: 1.4; hyphens: auto; overflow-wrap: anywhere;
}
dl.daten dd { margin: 0; }
dl.daten + h2 { margin-top: 56px; }

.hinweis {
  border-left: 2px solid var(--marke-hell);
  padding: 4px 0 4px 22px; margin: 28px 0;
  font-size: 16px; color: var(--grau); max-width: 60ch;
  font-family: var(--serife); font-size: 18px; line-height: 1.6;
}

/* Rechtstexte: schmalere Spalte, groessere Zwischenraeume */
.rechtstext h2 { font-size: 22px; margin: 52px 0 14px; max-width: none; }
.rechtstext h2:first-of-type { margin-top: 36px; }
.rechtstext p { font-size: 16px; color: var(--tinte); }

/* ---------------------------------------------------------------- Fuss --- */

footer { border-top: 1px solid var(--linie); padding: 52px 0 56px; background: var(--papier); }
.fuss { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.fuss-links { display: flex; gap: 26px; flex-wrap: wrap; }
.fuss a { color: var(--grau); text-decoration: none; font-size: 15px; }
.fuss a:hover { color: var(--marke); text-decoration: underline; }
.fuss .klein { color: var(--grau); font-size: 14px; max-width: 34ch; }

/* -------------------------------------------------------------- Kleiner -- */

@media (max-width: 880px) {
  .zwei { grid-template-columns: 1fr; gap: 44px; }
  .markenfeld { padding: 46px 30px 40px; }
  .markenfeld img { width: 168px; }
  .markenfeld img.nur-marke { width: 74px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .breite { padding: 0 22px; }
  section { padding: 66px 0; }
  h1 { max-width: none; letter-spacing: -1px; }
  h2 { max-width: none; }
  .vorspann { font-size: 18.5px; }
  .kopf { padding: 16px 0; gap: 14px; }
  nav { gap: 20px; }
  nav a { font-size: 15px; }
  dl.daten { grid-template-columns: 1fr; gap: 3px 0; }
  dl.daten dt { margin-top: 18px; }
  .knopf { padding: 13px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .karte:hover, .knopf:hover { transform: none; }
}

/* ===========================================================================
   Projekte — die Startseite gehoert seit dem 23.09. der Firma, nicht larnea
   =========================================================================== */

/* Zwei grosse Karten statt drei kleinen: ein Projekt braucht mehr Luft als
   ein Stichpunkt, und bei zwei Eintraegen wirkt ein Dreierraster leer. */
.raster.zweispalt { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.karte.projekt {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  padding: 34px 32px 30px;
}
.karte.projekt h3 { font-size: 19px; margin: 14px 0 10px; }
.karte.projekt > p { flex: 1 0 auto; }
.karte.projekt .projektmarke { width: 132px; height: auto; display: block; }
.karte.projekt .projektname {
  font-family: var(--sans); font-weight: 700; font-size: 25px;
  letter-spacing: -0.5px; color: var(--marke); margin: 0; line-height: 1.1;
}

/* Status — sagt beim ersten Blick, woran man ist. Ein Projekt ohne
   Statusangabe liest sich als laufend, auch wenn es das nicht ist. */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; margin: 16px 0 0 !important; flex: none !important;
}
.status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.status.live { color: var(--marke-hell); }
.status.vorbereitung { color: var(--grau); }

.weiter {
  display: flex; align-items: center; gap: 8px;
  color: var(--marke); font-weight: 600; font-size: 15.5px;
  margin: 22px 0 0 !important; flex: none !important;
}
.weiter svg { width: 15px; height: 15px; transition: transform .2s ease; }
.karte.projekt:hover .weiter svg { transform: translateX(3px); }

/* Firmenname im Markenfeld der Startseite. Die Bildmarke liegt nur in
   93 x 85 px vor — sie wird deshalb NICHT vergroessert, der Name traegt. */
.markenfeld .firmenname {
  font-family: var(--sans); font-weight: 700; font-size: 26px;
  letter-spacing: -0.5px; color: #fff; margin: 18px 0 0; max-width: none;
}
.markenfeld .symbol {
  width: 82px; height: 82px; margin: 0 auto; color: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
}
.markenfeld .symbol svg { width: 100%; height: 100%; }

@media (max-width: 640px) {
  .karte.projekt { padding: 28px 24px 26px; }
  .karte.projekt .projektmarke { width: 112px; }
  .karte.projekt .projektname { font-size: 22px; }
  .markenfeld .firmenname { font-size: 22px; }
  .markenfeld .symbol { width: 68px; height: 68px; }
}
