/* ============================================================
   simplesite – Stylesheet
   Copyright 2003–2026, simplesite
   Originallayout, 2026 als responsives HTML5/CSS umgesetzt
============================================================ */

:root {
  --blue: #29a3dc;
  --text: #555;
  --nav: #999;
  --line: #999;
  --sidebar: 194px;   /* Breite linke Spalte inkl. Rand */
  --gap: 35px;        /* Spalte mit der gepunkteten Linie */
  --ring-gap: 12px;   /* Abstand aller Linien zum Kreis */
}

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

body {
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  max-width: 1100px;   /* Seitenbreite */
  margin: 0 auto;      /* zentriert */
  position: relative;
}

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

a { color: var(--nav); text-decoration: none; }
a:hover, a:focus { color: var(--blue); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0 35px 33px; }

/* Hamburger-Button – nur auf dem Handy sichtbar */
.nav-knopf {
  display: none;
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; padding: 0; margin: 0;
  color: #00a6e0; cursor: pointer;
}
.nav-knopf svg { display: block; }

/* ---------- Grundlayout: Sidebar | Linie | Inhalt ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  padding-right: 35px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.swap-image { position: relative; width: 140px; }
.swap-image img { border: 1px solid #aaa; }
.swap-image img + img {
  position: absolute; top: 0; left: 0;
  opacity: 0; transition: opacity .25s ease;
}
.swap-image:hover img + img { opacity: 1; }

.main-nav ul {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  text-align: right;
}
.main-nav li { margin-bottom: 28px; }
.main-nav a { font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--blue); }

.content {
  margin-left: calc(var(--gap) / 2 - 0.5px);   /* Linie exakt über Kreismitte */
  padding: 15px 0 20px calc(var(--gap) / 2);
  border-left: 1px dotted var(--line);
  max-width: 620px;
  box-sizing: content-box;
}
.content h1 {
  color: var(--blue);
  font-size: 24px;
  font-weight: 600;   /* halbfett */
  margin: 0 0 60px;
}
.content h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 40px;
}
.content p { margin: 0 0 1.1em; }
.content p.spaced { margin-top: 3.5em; }
.contact { font-style: normal; margin-top: 1.5em; }

/* ---------- Referenzliste ---------- */
.content h1.compact { margin-bottom: 30px; }
.refs { list-style: none; margin: 0; padding: 0; }
.refs li {
  display: flex; align-items: flex-start;
  margin-bottom: 30px;
}
.refs li > a { flex: 0 0 140px; margin-right: 20px; }
.refs img { border: 1px solid #ddd; transition: opacity .2s; }
.refs li > a:hover img { opacity: .8; }
.refs p { margin: 0 0 .8em; }

/* ---------- Empfehlungen ---------- */
.recs { list-style: none; margin: 0; padding: 0; }
.recs li { margin-bottom: 45px; }
.recs li > a { display: inline-block; margin-bottom: 12px; }
.recs p { margin: 0; }

/* ---------- Fehlerseite ---------- */
.tips { margin: 0 0 1.1em; padding-left: 1.3em; }
.tips li { margin-bottom: .5em; }
.tips a { color: var(--blue); }
.contact a[href^="tel"] { color: inherit; }

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: var(--sidebar) var(--gap) 1fr;
  align-items: center;
  padding: var(--ring-gap) 35px 0 0;
}
.footer-line { border: 0; border-top: 1px solid #888; margin: 0; }
/* Kreis ist 21px breit, Spalte 35px -> 7px Rest, plus Margin = --ring-gap */
.footer-line:first-child { margin-right: calc(var(--ring-gap) - 7px); }
.footer-line:nth-child(3) { margin-left: calc(var(--ring-gap) - 7px); }
.to-top {
  justify-self: center;
  display: block;
  width: 21px; height: 21px;
  border: 1px solid #aaa; border-radius: 50%;
  color: #777;                /* Farbe des ^ (SVG verwendet currentColor) */
  font-size: 0; line-height: 0;
  -webkit-transition: border-color .2s, color .2s;
  transition: border-color .2s, color .2s;
}
.to-top svg { display: block; width: 19px; height: 19px; }
.to-top:hover, .to-top:focus { border-color: var(--blue); color: var(--blue); outline: none; }
.footer-dots {
  justify-self: center;
  align-self: start;
  margin-top: var(--ring-gap);
  height: 30px;
  border-left: 1px dotted var(--line);
}
.copyright { margin: 8px 0 0; align-self: start; text-align: right; font-size: 13px; white-space: nowrap; }

/* ---------- Handy: alles untereinander ---------- */
@media (max-width: 640px) {
  /* Logo hat links eigenen Weissraum – Wert ggf. anpassen */
  .site-header {
    padding: 20px 16px 30px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .logo img { margin-left: -21px; }

  /* Hamburger als SVG – funktioniert auch in alten Browsern */
  .nav-knopf { display: block; width: 40px; height: 40px; }
  .nav-knopf svg { margin: 8px auto; }
  .nav-knopf .ico-close { display: none; }
  .nav-open .nav-knopf .ico-menu { display: none; }
  .nav-open .nav-knopf .ico-close { display: block; }

  /* Ausklappbares Menü rechts unter dem Button */
  .js .main-nav {
    display: none;
    position: absolute; top: 80px; right: 16px; z-index: 5;
    background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,.08);
    padding: 12px 20px;
  }
  .js .nav-open .main-nav { display: block; }
  .js .main-nav ul { display: block; margin: 0; text-align: right; }
  .js .main-nav li { margin: 8px 0; }
  .js .main-nav a { font-size: 17px; }
  .js .sidebar { margin-bottom: 25px; }
  .layout { grid-template-columns: 1fr; padding: 0 16px; }
  .sidebar { align-items: flex-start; }
  .main-nav ul {
    display: flex; justify-content: flex-start;
    margin: 20px 0 30px;
  }
  .main-nav li { margin: 0 20px 0 0; }
  .content { margin: 0; padding: 0; border: 0; max-width: none; }
  .content h1 { margin-bottom: 25px; }
  .content h2 { margin-bottom: 20px; }
  .content p.spaced { margin-top: 1.1em; }
  .refs li { flex-direction: column; }
  .refs li > a { flex: none; margin: 0 0 10px; }
  .site-footer { padding: 20px 16px 10px; }
  .site-footer { grid-template-columns: 1fr 35px 1fr; }
  .footer-dots { display: none; }
  .copyright { grid-column: 1 / -1; margin-top: 8px; }
}

/* ---------- Datenschutz ---------- */
.legal h2 { font-size: 16px; margin: 2em 0 .6em; }
.legal .contact { margin-top: 0; }
.legal .stand { margin-top: 2.5em; font-size: 13px; color: var(--nav); }
.copyright a { color: var(--nav); }
.copyright a:hover, .copyright a[aria-current="page"] { color: var(--blue); }

/* ---------- Drucklayout ---------- */
@media print {
  @page { margin: 18mm 20mm; }

  body {
    max-width: none;
    font-size: 11pt;
    color: #000;
  }

  /* Bildschirm-Elemente ausblenden */
  .skip-link,
  .nav-knopf,
  .sidebar,
  .to-top,
  .footer-line,
  .footer-dots { display: none !important; }

  .site-header { padding: 0 0 10mm; display: block; }
  .logo img { margin-left: -21px; }   /* Weissraum im Logo ausgleichen */

  /* Eine Spalte, ohne gepunktete Linie */
  .layout { display: block; padding: 0; }
  .content {
    margin: 0; padding: 0; border: 0;
    max-width: none;
  }
  .content h1 { font-size: 18pt; margin-bottom: 8mm; }
  .content h2 { font-size: 13pt; margin-bottom: 6mm; color: #000; }
  .content p.spaced { margin-top: 1.1em; }

  a { color: #000; }
  .refs a, .recs a, .contact a { text-decoration: underline; }

  /* Einträge nicht über einen Seitenumbruch zerreissen */
  .refs li, .recs li, .contact { break-inside: avoid; }
  h1, h2 { break-after: avoid; }

  .site-footer {
    display: block;
    margin-top: 10mm; padding: 3mm 0 0;
    border-top: 0.5pt solid #000;
  }
  .copyright { text-align: left; font-size: 9pt; margin: 0; }
}
