/* ==========================================================
   Hamann-IT – Stylesheet
   Farben und Schrift zentral hier anpassen:
   ========================================================== */
:root {
  --blue:        #5da9c3;   /* Hamann-IT Stahlblau (aus dem Original-Logo) */
  --blue-dark:   #3f8aa5;
  --blue-light:  #e6f2f6;
  --page-bg:     #e7e7e7;   /* hellgrauer Seitenhintergrund wie im Original */
  --paper:       #ffffff;
  --text:        #2b2f33;
  --muted:       #6b7378;
  --line:        #c9cdd0;
  /* Überschriften & Kopf: Century Gothic wie im Original-Logo */
  --font-head: "Century Gothic", CenturyGothic, "URW Gothic", "Avenir Next", "Segoe UI", Verdana, sans-serif;
  /* Fließtext: Systemschriften mit vollständigen Umlauten/Sonderzeichen, auf jedem Gerät vorhanden */
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --frame-width: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

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

.frame {
  max-width: var(--frame-width);
  margin: 24px auto;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

/* ---------- Kopfbereich ---------- */
.site-header {
  background: var(--blue);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 22px 32px 16px;
}

.brand {
  font-family: var(--font-head);
  color: #fff;
  text-decoration: none;
  display: grid;
  font-weight: 300;
  letter-spacing: .02em;
  padding-left: 12%;
}
.brand:hover { color: #fff; }
.brand-name    { font-size: 2rem; line-height: 1.1; }
.brand-sub     { font-size: 2rem; line-height: 1.1; padding-left: 4.2em; }
.brand-tagline { font-size: .95rem; opacity: .92; margin-top: 8px; margin-left: -12%; }

.contact {
  font-style: normal;
  font-size: .78rem;
  line-height: 1.45;
  text-align: right;
  display: grid;
  opacity: .95;
  white-space: nowrap;
}
.contact a { color: #fff; text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* ---------- Navigation + Inhalt ---------- */
.body {
  display: grid;
  grid-template-columns: 210px 1fr;
  flex: 1;
  padding: 40px 0 48px;
}

.site-nav {
  padding: 0 24px 0 32px;
  border-right: 1px solid var(--line);   /* die senkrechte Trennlinie des Originals */
}
.site-nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 24px; }
.site-nav li { margin: 0 0 4px; }
.site-nav a {
  display: block;
  padding: 7px 12px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.site-nav a:hover { background: var(--blue-light); border-left-color: var(--blue); }
.site-nav a.active { border-left-color: var(--blue); color: var(--blue-dark); font-weight: bold; }

.nav-toggle, .nav-toggle-label { display: none; }

.content {
  padding: 0 48px;
  min-width: 0;
}

/* ---------- Typografie im Inhalt ---------- */
.content > :first-child { margin-top: 0; }
.content h1, .content h2, .content h3, .site-nav { font-family: var(--font-head); }
.content h1 { font-weight: 300; font-size: 2rem; color: var(--blue-dark); margin: 0 0 .6em; line-height: 1.25; }
.content h2 { font-weight: 400; font-size: 1.4rem; color: var(--blue-dark); margin: 1.8em 0 .5em; }
.content h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.content p, .content ul, .content ol { margin: 0 0 1em; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.content blockquote {
  margin: 1.5em 0; padding: .6em 1.2em;
  border-left: 3px solid var(--blue); background: var(--blue-light); color: var(--muted);
}
.content blockquote p:last-child { margin: 0; }
.content code { background: #f1f3f4; padding: .1em .35em; border-radius: 3px; font-size: .9em; }
.content pre { background: #f1f3f4; padding: 1em; overflow-x: auto; border-radius: 4px; }
.content pre code { background: none; padding: 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: .5em .6em; text-align: left; }

/* ---------- Bausteine ( ::: name ) ---------- */
.block-intro { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.5em; }
.block-intro p { margin-bottom: .6em; }

.block-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 1.5em 0 2em;
}
.block-kacheln .card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 18px 20px 6px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.block-kacheln .card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.block-kacheln .card h3 { margin-top: 0; color: var(--blue-dark); }
.block-kacheln .card p { font-size: .95rem; }

.block-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin: 1.5em 0; }

.block-hinweis {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 16px 20px 4px;
  margin: 1.5em 0;
}

.block-button p { margin: 1.5em 0; }
.block-button a {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 3px;
  margin: 0 8px 8px 0;
  transition: background .15s;
}
.block-button a:hover { background: var(--blue-dark); color: #fff; }

/* ---------- Fußbereich ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px 32px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-links a { color: var(--muted); margin-left: 16px; text-decoration: none; }
.footer-links a:first-child { margin-left: 0; }
.footer-links a:hover { color: var(--blue-dark); text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .frame { margin: 0; min-height: 100vh; box-shadow: none; }
  .site-header { flex-direction: column; align-items: flex-start; padding: 20px; }
  .brand { padding-left: 0; }
  .brand-name, .brand-sub { font-size: 1.6rem; }
  .brand-sub { padding-left: 2.5em; }
  .brand-tagline { margin-left: 0; font-size: .85rem; }
  .contact { text-align: left; white-space: normal; }

  .body { grid-template-columns: 1fr; padding: 0 0 32px; }
  .site-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .nav-toggle-label {
    display: block; padding: 12px 20px; cursor: pointer; font-weight: bold; color: var(--blue-dark);
  }
  .nav-toggle-label::after { content: " ☰"; }
  .site-nav ul { display: none; position: static; padding: 0 12px 12px; }
  .nav-toggle:checked ~ ul { display: block; }
  .content { padding: 28px 20px 0; }
  .site-footer { padding: 16px 20px; }
}
