/* =========================================================================
   buero-zu-vermieten-wiesloch.de — Barrierefreie Ansicht
   Maximaler Kontrast, große Schrift, klare Struktur, ein-spaltig.
   Ausgerichtet auf WCAG 2.1 AA/AAA (Kontrast ≥ 7:1, große Touch-Ziele).
   ========================================================================= */

:root {
  --ink:    #14181c;   /* fast schwarz */
  --bg:     #ffffff;
  --blue:   #0b3a66;   /* dunkles Blau, Kontrast >7:1 auf Weiß */
  --green:  #14622e;   /* dunkles Grün */
  --line:   #14181c;
  --focus:  #b8002e;   /* kräftiger Fokus-Rahmen */
  --soft:   #eef3f8;
  --font:   system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 20px; }                 /* große Basis-Schrift */
html[data-textsize="large"]  { font-size: 23px; }
html[data-textsize="xlarge"] { font-size: 27px; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); line-height: 1.7; font-size: 1rem;
}

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

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; margin-top: 1.6em; border-bottom: 3px solid var(--blue); padding-bottom: .2em; }
h3 { font-size: 1.25rem; margin-top: 1.2em; }
p, li, th, td { font-size: 1.05rem; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* Skip-Link */
.skip-link {
  position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 100; font-weight: 700; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* sichtbarer, kräftiger Fokus für ALLE interaktiven Elemente */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 4px solid var(--focus); outline-offset: 3px;
}

/* Kopfzeile */
.bf-header { border-bottom: 4px solid var(--blue); background: var(--soft); }
.bf-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 16px; padding-bottom: 16px; }
.bf-header img { height: 40px; width: auto; }
.bf-header .title { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.bf-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bf-tools span { font-weight: 700; }
.bf-btn {
  font: inherit; font-weight: 700; cursor: pointer;
  background: #fff; color: var(--blue); border: 3px solid var(--blue);
  border-radius: 8px; padding: 8px 14px; min-height: 48px; min-width: 48px;
}
.bf-btn:hover { background: var(--blue); color: #fff; }
.bf-btn[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* Inhalt */
main { padding: 8px 0 40px; }
.intro { background: var(--soft); border-left: 8px solid var(--green); padding: 20px 22px; margin: 24px 0; }
.intro p { margin: 0; font-size: 1.15rem; }

.block { padding: 12px 0; }
.big-list { list-style: none; padding: 0; margin: 16px 0; }
.big-list li {
  border: 2px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px;
}
.big-list li strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }

/* Eckdaten-Tabelle */
.bf-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.bf-table th, .bf-table td {
  border: 2px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top;
}
.bf-table th { background: var(--soft); width: 42%; }

/* großer Telefon-/Aktions-Button */
.action {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.15rem; padding: 16px 26px; border-radius: 10px; margin: 8px 8px 8px 0;
  border: 3px solid var(--green); min-height: 56px;
}
.action:hover { background: #0e4a22; color: #fff; }
.action--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.action--blue:hover { background: #082a4d; }

/* Bilder */
figure { margin: 18px 0; }
figure img { width: 100%; height: auto; border: 2px solid var(--line); border-radius: 8px; }
figcaption { font-size: .98rem; margin-top: 6px; color: var(--ink); }

/* Formular */
form { margin-top: 16px; }
fieldset { border: 3px solid var(--blue); border-radius: 10px; padding: 18px 20px; margin: 0 0 18px; }
legend { font-weight: 800; font-size: 1.2rem; padding: 0 8px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 1.05rem; }
input, select, textarea {
  width: 100%; font: inherit; padding: 14px; min-height: 52px;
  border: 3px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 150px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check input { width: 28px; height: 28px; min-height: 28px; flex: 0 0 auto; margin-top: 4px; }
.check label { margin: 0; font-weight: 600; }
.req { color: var(--focus); }
.submit {
  font: inherit; font-weight: 800; font-size: 1.15rem; cursor: pointer;
  background: var(--green); color: #fff; border: 3px solid var(--green);
  border-radius: 10px; padding: 16px 30px; min-height: 56px;
}
.submit:hover { background: #0e4a22; }

.alert { border: 3px solid; border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; font-weight: 700; }
.alert--ok  { border-color: var(--green); background: #e7f3ec; color: var(--green); }
.alert--err { border-color: var(--focus); background: #fbe7eb; color: var(--focus); }

/* Rechtstexte direkt eingebettet (keine Modals) */
.legal-section { border-top: 4px solid var(--blue); margin-top: 28px; padding-top: 8px; }
.legal-section h3 { color: var(--blue); }
.legal-section h4 { color: var(--ink); margin: 1.1em 0 .2em; }

/* Fußzeile */
.bf-footer { border-top: 4px solid var(--blue); background: var(--soft); padding: 24px 0; margin-top: 30px; }
.bf-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.bf-footer a { font-weight: 700; }
.bf-footer .b2b { flex-basis: 100%; margin: 0; font-weight: 600; }

.toplink { display: inline-block; margin-top: 20px; font-weight: 700; }
