/* ==========================================================================
   Rolf Elshoff Unternehmensberatung – statischer Neuaufbau
   Farben aus der Vorlage: Primär #019bc6, Dunkelgrau #525252
   Schriften werden lokal aus schrift/ geladen (keine externen Aufrufe)
   ========================================================================== */

@font-face {
  font-family: "Source Sans Pro";
  src: url("schrift/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("schrift/SourceSans3-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #019bc6;
  --blau-dunkel: #017a9c;
  --grau: #525252;
  --text: #1c1c1c;
  --weiss: #ffffff;
  --breite: 1140px;
  --schrift: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blau); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 2px;
}

.inhalt { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Kopfbereich / Hero ------------------------------------------------- */

.kopf {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--blau);
  background-image: url("bilder/hintergrund.png");
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: contain;
  color: var(--weiss);
  padding: 60px 0;
}

.kopf__logo { width: 260px; margin-bottom: 60px; }

.kopf__titel {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.15;
  font-weight: 400;
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
  max-width: 20ch;
}

@media (max-width: 767px) {
  .kopf {
    background-image: url("bilder/hintergrundmobil.png");
    background-size: cover;
    background-position: 100% 100%;
    min-height: 80vh;
  }
  .kopf__logo { width: 180px; margin-bottom: 40px; }
}

/* --- Sprungnavigation --------------------------------------------------- */

.sprungnav {
  background: var(--blau);
  padding: 23px 0 26px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.sprungnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 17px;
}

.sprungnav a {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid var(--weiss);
  border-radius: 100px;
  background: var(--weiss);
  color: var(--blau);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: background-color .2s, color .2s;
}

.sprungnav a:hover,
.sprungnav a:focus {
  background: var(--blau);
  color: var(--weiss);
}

@media (max-width: 991px) {
  .sprungnav a { letter-spacing: 0; font-size: 15px; padding: 7px 16px; }
}

/* --- Abschnitte --------------------------------------------------------- */

.block { padding: 60px 0; }
.block--blau { background: var(--blau); color: var(--weiss); }
.block--blau a { color: var(--weiss); }

.block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0 0 26px;
}

.block h3 {
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 18px;
}

.block p { margin: 0 0 1.1em; }

.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 767px) {
  .zweispaltig { grid-template-columns: 1fr; gap: 30px; }
}

/* Merkmalslisten („+ …“ in der Vorlage) */
.merkmale { list-style: none; margin: 1.2em 0 0; padding: 0; }
.merkmale li { position: relative; padding-left: 1.6em; margin-bottom: .4em; }
.merkmale li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-weight: 600;
}

/* --- Trennbilder -------------------------------------------------------- */

.trenner {
  height: 380px;
  background-color: #000;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}
.trenner--1 { background-image: url("bilder/spacer1.png"); }
.trenner--2 { background-image: url("bilder/spacer2.png"); }

@media (max-width: 767px) {
  .trenner { height: 200px; }
}

/* --- Akkordeon ---------------------------------------------------------- */

.akkordeon { margin-top: 40px; }

.akkordeon details {
  border-bottom: 1px solid currentColor;
}

.akkordeon summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 400;
  text-transform: uppercase;
}
.akkordeon summary::-webkit-details-marker { display: none; }

.akkordeon summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(-45deg);
  transition: transform .25s;
}
.akkordeon details[open] > summary::after {
  transform: translateY(-30%) rotate(45deg);
}

.akkordeon__text { padding: 0 0 30px; }
.akkordeon__text h3 { margin-top: 0; }

/* Akkordeon „Über mich“ ohne Großschreibung im Fließtext */
.akkordeon--person summary { font-size: 1.3rem; letter-spacing: 1px; }
.akkordeon--person ul { margin: 0 0 10px 1.1em; padding: 0; }
.akkordeon--person li { margin-bottom: .35em; }

/* --- Kontaktbereich ----------------------------------------------------- */

.kontakt {
  background: var(--grau);
  color: var(--weiss);
  padding: 60px 0;
}

.kontakt a { color: var(--weiss); }
.kontakt a:hover { color: var(--blau); }

.kontakt__raster {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 50px;
}

@media (max-width: 767px) {
  .kontakt__raster { grid-template-columns: 1fr; gap: 35px; }
}

.kontakt__daten { font-size: 1rem; }
.kontakt__daten h2 { margin-bottom: 20px; }
.kontakt__rechtliches { margin-top: 26px; }
.kontakt__rechtliches a { display: block; margin-bottom: 4px; }

/* --- Formular ----------------------------------------------------------- */

.formular { display: grid; gap: 20px; }

.formular label {
  display: block;
  font-size: .95rem;
  margin-bottom: 6px;
}

.formular input[type="text"],
.formular input[type="email"],
.formular input[type="tel"],
.formular textarea {
  width: 100%;
  background: var(--grau);
  color: var(--weiss);
  border: 0;
  border-bottom: 1px solid #f9f9f9;
  border-radius: 0;
  padding: 8px 2px;
  font-family: inherit;
  font-size: 1rem;
}

.formular textarea { height: 172px; resize: vertical; }

.formular__einwilligung {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .95rem;
}
.formular__einwilligung input { margin-top: .35em; }

/* Honigtopf – für Menschen unsichtbar, für Bots ein Köder */
.formular__falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular__aktion { text-align: right; }

.knopf {
  display: inline-block;
  background: var(--blau);
  color: var(--weiss);
  border: 0;
  border-radius: 100px;
  padding: 14px 40px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s;
}
.knopf:hover { background: var(--blau-dunkel); }

.hinweis {
  padding: 14px 18px;
  border-left: 4px solid var(--blau);
  background: rgba(255, 255, 255, .08);
  margin-bottom: 24px;
}
.hinweis--fehler { border-left-color: #ff6b5e; }

/* --- Nach-oben-Knopf ---------------------------------------------------- */

.nach-oben {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blau);
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.nach-oben.sichtbar { opacity: 1; pointer-events: auto; }

/* --- Rechtsseiten ------------------------------------------------------- */

.rechtsseite { padding: 50px 0 70px; }
.rechtsseite h1 { font-size: 2rem; margin-top: 0; }
.rechtsseite h2 { font-size: 1.35rem; margin-top: 2em; }
.rechtsseite h3 { font-size: 1.1rem; margin-top: 1.6em; }

.rechtsseite__kopf {
  background: var(--blau);
  padding: 20px 0;
}
.rechtsseite__kopf img { width: 200px; }

.zurueck { display: inline-block; margin-top: 40px; }
