/* === Schrift: Libre Franklin (Regular, Italic) === */
@font-face {
  font-family: "Libre Franklin";
  src:
    local("Libre Franklin"),
    local("LibreFranklin-Regular"),
    url("../fonts/LibreFranklin-Regular.woff2") format("woff2"),
    url("../fonts/LibreFranklin-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Farben zentral */
:root {
  --text: #444;
  --link: #00796b;
  --gap: 16px;
  --box: #FF7518;
   --accent: var(--box); 
}

/* Grundtext */
html { font-size: 16px; }
body {
  margin: 0;
  padding: 16px;
  font-family: "Libre Franklin", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #f7f7f7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* === Header & Menü === */
header {
  background: white;
  padding: 16px;
  border-bottom: 1px solid #eee;
  margin-left: auto;  /* Zentriert horizontal */
  margin-right: auto; /* Zentriert horizontal */
  max-width: 1200px;  /* Gleiche Breite wie <main> */
  width: 90%;        /* Füllt die verfügbare Breite (bis max. 1200px) */
  box-sizing: border-box;
  border-radius: 16px;
}

/* Titel + Logo (obere Zeile) */
.header-top {
  display: flex;
  justify-content: space-between; /* Titel links, Logo rechts */
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

header h1 {
  color: #FF7518;
  font-size: 1.5em;
  margin: 0 0 0 48px; /* Abstand links */;
}

header img {
  height: 50px;
  display: block;
  margin: 0 48px 0 0; /* Abstand rechts */
}

/* Hamburger (Mobile) */
.hamburg {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Checkbox verstecken */
.hamburg-checkbox {
  display: none;
}

/* Mobile: Menü versteckt */
.menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  background: white;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Menü anzeigen, wenn Checkbox aktiv */
.hamburg-checkbox:checked ~ .menu {
  display: flex;
}

/* Menü-Links (Mobile) */
.menu a {
  display: block;
  color: var(--link, #00796b);
  text-decoration: none;
  padding: 0.5rem 1rem;
  text-align: center;
  background: #f8f8f8;
  border-radius: 8px;
  margin: 0.2rem 0;
}

/* Desktop: Menü horizontal UND zentriert */
@media (min-width: 769px) {
  .menu {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Zentriert unter Titel/Logo */
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .menu a {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 120px;
    transition: background 0.2s;
  }

  .menu a:hover {
    background: #e8e8e8;
  }

  /* Hamburger ausblenden */
  .hamburg {
    display: none;
  }
}

/* Main: Volle Breite, unter dem Header */
main {
  background: white;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 16px;
}

.highlight-box {
  background: #f5f5f5;
  border-left: 5px solid #FF7518;
  padding: 1em;
  margin: 0.5em 0.3em 0.5em 3em;
  border-radius: 6px;
  max-width: 88%
}

.highlight-box h3 {
  font-size: 1.25rem;
  margin: 0 0 0.15rem;
  color: #FF7518;
}

.highlight-box p {
  margin: 0 0 0.3em;
  color: #444;
}
@media (max-width: 600px) {
  .highlight-box {
    margin-left: 1em; /* Weniger Abstand auf kleinen Bildschirmen */
  }
}

/* Überschriften */
h2, h3, h4, h5, h6 {
  font-size: 1em;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: #00796b;
}

/* Lesebreite & Fließtext */
article {
  max-width: 70ch;
  margin: 0 auto;
  padding: 16px;
}
p { margin: 0 0 1em; }

/* Links */
a {
  color: var(--link);
  text-decoration: none;
}
a:visited { color: inherit; }

/* Inline-Betonung */
strong, b { font-weight: 700; }
em, i { font-style: italic; }



/* Linie */
hr {
  border: 0;
  height: 1.2em;
  margin: 0;
  background: none;
}

/* Byline (Datum) */
.byline {
  margin: 0.25rem 0 1rem;
  font-size: 0.95rem;
  color: #6b6f76;
}
.byline time { white-space: nowrap; }
article > h1 { color: #000 !important; }

/* Postlist (falls genutzt) */
.postlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.postlist a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #1f4aa3;
  font-weight: 400;
}
.postlist a:hover { background: #f0f0f0; }
.postlist a.active { background: #e8f0ff; }


/* Cards (falls genutzt) */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}
@media (min-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

footer {
  background: #f7f7f7; /* Grau wie Seitenhintergrund */
  width: 86%;          /* Gleiche Breite wie Header/Main */
  max-width: 1200px;   /* Begrenzung */
  margin: 0.3em auto 0;  /* 2em Abstand oben, auto = zentriert */
  padding: 1em 0;    /* Innenabstand oben/unten */
  text-align: center;  /* Text zentrieren */
  box-sizing: border-box;
}
  
