/* MBP Clean – einfaches Layout: feste Seite, Menüleiste, Banner, Inhalt + Seitenleiste.
   Schriften: Systemschriften (Verdana / Trebuchet MS), nichts wird von Dritten geladen. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #dfe6ed linear-gradient(#bccbdb, #dfe6ed 320px) no-repeat;
  color: #333;
  font: 14px/1.6 Verdana, Geneva, "DejaVu Sans", sans-serif;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: #1d5fb0; }
a:hover { color: #e07b00; }
:focus-visible { outline: 2px solid #ee7f00; outline-offset: 2px; }
[hidden] { display: none !important; }
abbr { text-decoration: none; color: #c0392b; }
.muted { color: #6b7785; font-weight: normal; }

h1, h2, h3 { font-family: "Trebuchet MS", "Lucida Grande", Arial, sans-serif; line-height: 1.25; }
h2 { color: #1d4f91; font-size: 20px; margin: 26px 0 10px; padding-bottom: 4px; border-bottom: 1px dotted #aebfd1; }
h3 { color: #16325c; font-size: 16px; margin: 0 0 4px; }
p { margin: 0 0 10px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 6px 10px; z-index: 50; }

/* Seite */
.page {
  max-width: 980px; margin: 20px auto;
  background: #fff; border: 1px solid #aebfd1;
  box-shadow: 0 0 10px rgba(0, 0, 0, .12);
}

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo img { display: block; width: 294px; }
.top-note { margin: 0; text-align: right; font-size: 12px; color: #6b7785; line-height: 1.5; }
.top-note strong { color: #16325c; font-size: 13px; }

/* Menü */
.menu { background: linear-gradient(#3a7fcc, #1d4f91); border-top: 1px solid #16427a; border-bottom: 3px solid #ee7f00; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu a {
  display: block; padding: 9px 18px;
  color: #fff; font: bold 14px "Trebuchet MS", Arial, sans-serif; text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, .25);
}
.menu a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.menu a.on { background: #ee7f00; }

/* Banner mit Bildwechsel */
.banner { position: relative; height: 300px; overflow: hidden; background: #c9d6e3; border-bottom: 1px solid #aebfd1; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.slide.is-on { opacity: 1; }
.banner-text {
  position: absolute; left: 20px; bottom: 20px; max-width: 560px;
  background: rgba(16, 40, 72, .8); color: #fff; padding: 12px 16px;
  border-left: 4px solid #ee7f00;
}
.banner-text h1 { margin: 0 0 4px; font-size: 22px; }
.banner-text p { margin: 0; font-size: 13px; color: #d7e3f0; }
.pager { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 4px; }
.pager button {
  width: 24px; height: 24px; padding: 0; cursor: pointer;
  font: bold 11px Verdana, sans-serif; color: #fff;
  background: rgba(0, 0, 0, .45); border: 1px solid #fff;
}
.pager button.is-on { background: #ee7f00; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Spalten */
.cols {
  display: grid; grid-template-columns: 1fr 300px; column-gap: 24px;
  grid-template-areas: "intro side" "rest side"; grid-template-rows: auto 1fr;
  padding: 4px 20px 24px;
}
.intro { grid-area: intro; }
.side { grid-area: side; padding-top: 20px; }
.rest { grid-area: rest; }
.jump { font-weight: bold; }
.jump a { text-decoration: none; }
.jump a:hover { text-decoration: underline; }

/* Leistungen */
.svc { display: flex; gap: 14px; padding: 12px 8px; border-bottom: 1px solid #e3e9ef; }
.svc:hover { background: #f3f7fb; }
.svc > a:first-child { flex: 0 0 auto; }
.thumb {
  flex: 0 0 150px; width: 150px; height: 110px; object-fit: cover;
  padding: 3px; background: #fff; border: 1px solid #c5d3e0; box-shadow: 1px 1px 3px rgba(0, 0, 0, .15);
}
.svc p { margin-bottom: 4px; }
.svc a { font-weight: bold; text-decoration: none; font-size: 13px; }
.svc a:hover { text-decoration: underline; }

/* Farbtabelle */
.colors { width: 100%; border-collapse: collapse; margin: 8px 0 6px; font-size: 13px; }
.colors th { text-align: left; background: #e8f0f8; color: #16325c; padding: 5px 8px; border: 1px solid #c5d3e0; }
.colors td { padding: 5px 8px; border: 1px solid #c5d3e0; vertical-align: top; }
.colors td:first-child { font-weight: bold; }
.colors-farben td:first-child { width: 90px; white-space: nowrap; }
.colors tbody tr:nth-child(even) td { background: #f7f9fb; }
.sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid rgba(0, 0, 0, .3); vertical-align: -1px; }
.sw-red { background: #d0443a; }
.sw-yellow { background: #f0c030; }
.sw-blue { background: #2f6db5; }
.sw-green { background: #2e8b57; }

/* Ablauf */
.steps { counter-reset: s; list-style: none; margin: 8px 0 12px; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 3px 0 10px 38px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(#3a7fcc, #1d4f91); color: #fff;
  font: bold 13px/26px "Trebuchet MS", Arial, sans-serif; text-align: center;
}

/* Kästen in der Seitenleiste */
.box { border: 1px solid #c5d3e0; background: #f4f8fb; margin-bottom: 18px; }
.box-head {
  margin: 0; padding: 6px 10px; border: 0;
  background: linear-gradient(#3a7fcc, #2466b3); color: #fff; font-size: 15px;
}
.box-body { padding: 12px; font-size: 13px; }
.box-body p:last-child { margin-bottom: 0; }
.box-form { border-color: #ee7f00; }
.box-form .box-head { background: linear-gradient(#f7a233, #e07b00); }

/* Formular */
.group { border: 0; margin: 0 0 10px; padding: 0; }
.group legend { font-weight: bold; padding: 0; margin-bottom: 3px; color: #16325c; }
.opt-line { display: block; padding: 1px 0; cursor: pointer; }
.opt-line input { margin: 0 5px 0 0; vertical-align: -1px; }
.field { margin: 0 0 10px; }
.field label { display: block; font-weight: bold; color: #16325c; margin-bottom: 2px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 5px 6px;
  font: 13px Verdana, Geneva, "DejaVu Sans", sans-serif; color: #333;
  background: #fff; border: 1px solid #9fb3c8; border-radius: 2px;
}
input.short { width: 90px; }
#rhythmus-box { margin: 8px 0 4px; }
.nowrap { white-space: nowrap; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #2466b3; background: #fffef3; }
.group.has-error legend, .field.has-error label { color: #c0392b; }
[aria-invalid="true"] { border-color: #c0392b !important; background: #fff4f3 !important; }
.err { color: #c0392b; font-size: 12px; font-weight: bold; margin: 2px 0 0; }

.summary { background: #fff; border: 1px dashed #aebfd1; padding: 6px 8px; margin: 12px 0; font-size: 12px; }
.summary-label { display: block; font-weight: bold; color: #16325c; }
#summary.is-empty { color: #8a96a3; font-style: italic; }
#summary .fresh { background: #fff3c4; transition: background-color 1.5s; }
#summary .fresh.faded { background: transparent; }

.btn-send, .sticky-cta {
  display: block; width: 100%; padding: 8px 12px; cursor: pointer;
  font: bold 15px "Trebuchet MS", Arial, sans-serif; color: #fff; text-align: center; text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
  background: linear-gradient(#f7a233, #e07b00); border: 1px solid #c56a00; border-radius: 4px;
}
.btn-send:hover, .sticky-cta:hover { background: linear-gradient(#f9b04d, #e98600); color: #fff; }
.fine { font-size: 11px; color: #6b7785; margin: 8px 0 0; }

.result { margin-top: 10px; padding: 8px 10px; background: #fff; border: 1px solid #aebfd1; font-size: 12px; }
.result.ok { border-color: #2e8b57; background: #f1faf4; }
.result h3 { font-size: 14px; }
.mailtext { width: 100%; box-sizing: border-box; font: 11px/1.4 Verdana, sans-serif; margin-top: 4px; }
.btn-copy { font-size: 12px; margin-top: 4px; }

/* Fuß */
.foot { background: #eef2f6; border-top: 1px solid #c5d3e0; padding: 10px 20px; font-size: 11px; color: #6b7785; text-align: center; }
.foot a { color: #6b7785; }

/* Rechtsseiten */
.legal { padding: 4px 20px 24px; max-width: 760px; }
.legal h1 { color: #1d4f91; font-size: 24px; margin: 20px 0 6px; }
.legal h2 { font-size: 16px; }
.todo { background: #fff3c4; padding: 0 3px; }

/* Mobil */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  body { background: #fff; }
  .page { margin: 0; border: 0; box-shadow: none; }
  .top { padding: 10px 12px; }
  .logo img { width: 210px; }
  .top-note { display: none; }
  .menu a { padding: 8px 12px; font-size: 13px; }
  .banner { height: 230px; }
  .banner-text { left: 0; right: 0; bottom: 0; max-width: none; padding: 10px 12px; }
  .banner-text h1 { font-size: 18px; }
  .pager { top: 10px; bottom: auto; }
  .cols { grid-template-columns: 1fr; grid-template-areas: "intro" "side" "rest"; padding: 0 12px 16px; }
  .side { padding-top: 6px; }
  .intro .jump { display: none; }
  .svc { padding: 12px 0; }
  .thumb { flex-basis: 110px; width: 110px; height: 84px; }
  .sticky-cta {
    display: block; position: fixed; left: 10px; right: 10px; bottom: 10px; width: auto; z-index: 20;
    padding: 11px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    transition: transform .25s, opacity .25s;
  }
  .sticky-cta.is-away { transform: translateY(150%); opacity: 0; }
  .foot { padding-bottom: 70px; }
}

/* Unterseiten */
.crumbs { font-size: 11px; color: #6b7785; margin: 16px 0 0; }
.crumbs a { color: #6b7785; }
.intro h1 { color: #1d4f91; font-size: 26px; margin: 8px 0 8px; }
.lead { font-size: 15px; color: #444; }
.rest ul { padding-left: 20px; }
.rest li { margin-bottom: 3px; }
.post-img { margin: 18px 0 6px; }
.post-img .wide {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  padding: 4px; background: #fff; border: 1px solid #c5d3e0; box-shadow: 1px 1px 3px rgba(0, 0, 0, .15);
}
.post-img figcaption { font-size: 11px; color: #6b7785; margin-top: 3px; }
.post-meta { font-size: 11px; color: #6b7785; margin-top: 18px; }
.post-cta { background: #fff7ea; border: 1px solid #f3c27a; padding: 10px 12px; margin: 16px 0; }
.post-cta p { margin: 0 0 6px; }
.post-cta p:last-child { margin: 0; }
.cta, .post-cta a[data-art], .post-cta a[data-objekt] { font-weight: bold; }
.links li { margin-bottom: 4px; }
.svc h3 a { color: #16325c; text-decoration: none; font-size: inherit; }
.svc h3 a:hover { text-decoration: underline; }
.svc a.more { font-weight: normal; }
.steps-small li { padding-left: 32px; }
.steps-small li::before { width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
@media (max-width: 760px) {
  .cols-form { grid-template-areas: "intro" "rest" "side"; }
  .intro h1 { font-size: 22px; }
}

/* Vorschau-Datei */
.legal-overlay { position: fixed; inset: 0; z-index: 60; background: #fff; overflow: auto; }
.legal-close { position: sticky; top: 0; text-align: right; padding: 8px 20px; background: #eef2f6; border-bottom: 1px solid #c5d3e0; }
.legal-close button { width: auto; display: inline-block; }
