/* Verwaltung Callenius – Webseite
   Farben und Schriften nach dem Markenauftritt (Stand Juli 2026).
   Schriften liegen lokal (keine Verbindung zu Google). */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ozean: #1D4D63;
  --meer: #4E8AA0;
  --weiss: #F7FAFB;
  --tinte: #1E2A30;
  --eis: #DCE7EB;
  --hell: #9CC4D4;
  --text: #3E525C;
  --grau: #71838C;
  --linie: #D9E2E6;
  --karte: #FDFEFE;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --breite: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ozean); text-underline-offset: 3px; }
a:hover { color: var(--meer); }
:focus-visible { outline: 2px solid var(--meer); outline-offset: 3px; }

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

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marke svg { width: 34px; height: 34px; flex: none; }
.marke-name { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.15; color: var(--ozean); }
.marke-zeile { font-size: 9px; letter-spacing: .22em; color: var(--meer); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--tinte); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ozean); text-decoration: underline; }
.knopf {
  display: inline-block; background: var(--ozean); color: var(--weiss) !important;
  font-size: 14px; font-weight: 500; padding: 11px 22px; border-radius: 3px;
  text-decoration: none !important; border: 0; cursor: pointer;
}
.knopf:hover { background: #163e50; }
.knopf.hell { background: var(--meer); color: #10222B !important; font-weight: 600; }
.knopf.aus { background: transparent; color: var(--hell) !important; border: 1px solid rgba(247,250,251,.35); cursor: default; }
.nav .knopf.aus { color: var(--grau) !important; border-color: var(--linie); padding: 8px 16px; }

/* Überschriften */
.oberzeile { font-size: 11.5px; letter-spacing: .28em; color: var(--meer); font-weight: 500; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ozean); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 50px); }
h2 { font-size: clamp(27px, 3.4vw, 34px); }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text); text-wrap: pretty; }

/* Startbereich */
.start { padding: 72px 0 64px; }
.start .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.start-text { display: flex; flex-direction: column; gap: 20px; }
.start-text p { font-size: 16.5px; max-width: 34em; margin: 0; }
.aktionen { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.aktionen a:not(.knopf) { font-size: 14.5px; font-weight: 500; }
.bildflaeche {
  background: var(--eis); border-radius: 4px; aspect-ratio: 5 / 4;
  display: flex; align-items: center; justify-content: center;
}
.bildflaeche svg { width: 42%; height: auto; }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 72px; }
.karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: 4px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px; text-decoration: none;
}
a.karte:hover { border-color: var(--meer); }
.karte p { font-size: 14.5px; margin: 0; }
.karte .mehr { font-size: 14px; font-weight: 500; color: var(--ozean); margin-top: auto; }
.bogen { width: 16px; height: 20px; border: 1.5px solid var(--meer); border-radius: 999px 999px 0 0; }

/* Abschnitte */
.abschnitt { padding: 64px 0; }
.abschnitt.eis { background: var(--eis); }
.abschnitt .kopfzeile { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 42em; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.orte { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ort { background: var(--karte); border: 1px solid var(--linie); border-radius: 4px; padding: 26px 28px; }
.ort h3 { margin-bottom: 8px; }
.ort p { margin: 0; font-size: 15px; }

/* Dunkles Band: Mieterportal */
.band { background: var(--ozean); padding: 60px 0; }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band .oberzeile { color: var(--hell); }
.band h2 { color: var(--weiss); margin: 12px 0 14px; }
.band p { color: #AECBD8; margin: 0 0 22px; max-width: 30em; }
.liste-hell { list-style: none; margin: 0; padding: 0; }
.liste-hell li { display: flex; justify-content: space-between; padding: 15px 4px; border-bottom: 1px solid rgba(247,250,251,.18); color: var(--weiss); font-size: 14.5px; }
.liste-hell li:last-child { border-bottom: 0; }
.liste-hell li span:last-child { color: var(--hell); }

/* Inhaltsseiten */
.seitenkopf { padding: 56px 0 8px; }
.seitenkopf .wrap { display: flex; flex-direction: column; gap: 14px; }
.seitenkopf p { font-size: 16.5px; max-width: 40em; margin: 0; }
.inhalt { padding: 32px 0 72px; }
.inhalt .wrap > * + * { margin-top: 0; }
.block { background: var(--karte); border: 1px solid var(--linie); border-radius: 4px; padding: 30px 32px; margin-bottom: 20px; }
.block h2 { font-size: 26px; margin-bottom: 14px; }
.block h3 { margin: 22px 0 8px; font-size: 19px; }
.block p:last-child, .block ul:last-child, .block ol:last-child { margin-bottom: 0; }
.block ul, .block ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--text); }
.block li { margin-bottom: .35em; }
.hinweis { border-left: 3px solid var(--meer); background: var(--eis); padding: 18px 22px; border-radius: 0 4px 4px 0; margin: 0 0 20px; }
.hinweis p { margin: 0; color: var(--tinte); }
.hinweis.warnung { border-left-color: #B5533C; background: #F6E9E4; }
details { border-top: 1px solid var(--linie); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--linie); }
summary { cursor: pointer; font-weight: 500; color: var(--tinte); list-style-position: outside; }
details p { margin: 10px 0 0; }
.recht p, .recht li { font-size: 15px; }
.recht h2 { font-size: 24px; margin: 28px 0 10px; }
.recht h2:first-child { margin-top: 0; }
.recht h3 { font-size: 18px; margin: 20px 0 6px; }

/* Fuß */
.fuss { background: var(--tinte); color: #8AA0AB; font-size: 13px; line-height: 1.7; }
.fuss .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; flex-wrap: wrap; }
.fuss a { color: #AECBD8; }
.fuss nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .start .wrap, .band .wrap, .zwei, .orte { grid-template-columns: 1fr; gap: 32px; }
  .karten { grid-template-columns: 1fr; }
  .bildflaeche { aspect-ratio: 16 / 7; }
  .bildflaeche svg { width: 22%; }
  .start { padding: 44px 0 40px; }
  .nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .block { padding: 22px 20px; }
  .nav .knopf.aus { display: none; }
}

/* Freie Wohnungen (seit 08.10.2026) */
.angebote { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.angebot { background: var(--karte); border: 1px solid var(--linie); border-radius: 4px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
a.angebot:hover { border-color: var(--meer); }
.angebot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.angebot-text { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.angebot-text h3 { font-size: 22px; }
.angebot .mehr { font-size: 14px; font-weight: 500; color: var(--ozean); }
.eckdaten-kurz { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 18px; margin: 4px 0 2px; justify-content: start; }
.eckdaten-kurz dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.eckdaten-kurz dd { margin: 0; font-weight: 500; color: var(--tinte); }
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.galerie a:first-child { grid-column: span 2; grid-row: span 2; }
.galerie img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--eis); }
.galerie a:first-child img { aspect-ratio: auto; }
.expose { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.eckdaten { margin: 0 0 16px; }
.eckdaten div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.eckdaten dt { color: var(--grau); font-size: 14.5px; }
.eckdaten dd { margin: 0; text-align: right; font-weight: 500; color: var(--tinte); font-size: 14.5px; }
.merkmale { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 8px 0 0 !important; }
.merkmale li { background: var(--eis); color: var(--ozean); font-size: 13.5px; padding: 4px 12px; border-radius: 999px; margin: 0; }
.klein { font-size: 14px; }
.knopf.breit { display: block; text-align: center; margin: 4px 0 14px; }
.seitenkopf .oberzeile a { color: var(--meer); text-decoration: none; }
@media (max-width: 860px) {
  .angebote, .expose { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .eckdaten-kurz { grid-template-columns: repeat(2, auto); }
}

/* Formulare (seit 0.29.4) */
.formulare { list-style: none; padding: 0 !important; margin: 0 !important; }
.formulare li { padding: 14px 0; border-bottom: 1px solid var(--linie); margin: 0 !important; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; }
.formulare li:first-child { padding-top: 4px; }
.formulare li:last-child { border-bottom: 0; padding-bottom: 0; }
.formulare a { font-weight: 500; }
.formulare .art { font-size: 13px; color: var(--grau); white-space: nowrap; }
.formulare p { grid-column: 1 / -1; margin: 0; font-size: 14.5px; }
@media (max-width: 520px) {
  .formulare li { grid-template-columns: 1fr; }
  .formulare .art { white-space: normal; }
}

/* Runde Boxen (0.31.1, Wunsch Tobias 09.10.2026: „schöne Boxen mit abgerundeten Kanten“) */
:root { --rund: 14px; --schatten: 0 1px 2px rgba(28,50,60,.05), 0 8px 24px rgba(28,50,60,.06); }
.block, .karte, .ort, .angebot { border-radius: var(--rund); box-shadow: var(--schatten); }
.bildflaeche { border-radius: var(--rund); }
.hinweis { border-radius: 0 var(--rund) var(--rund) 0; }
.knopf { border-radius: 8px; }
.inhalt .zwei { gap: 20px; align-items: start; }
.angebot { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.angebot:hover { box-shadow: 0 2px 4px rgba(28,50,60,.06), 0 14px 36px rgba(28,50,60,.12); transform: translateY(-2px); }
.angebot .bild { aspect-ratio: 3 / 2; background: var(--eis); overflow: hidden; }
.angebot .bild img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.angebot .bild.leer { display: flex; align-items: center; justify-content: center; }
.angebot .bild.leer img { width: 22%; height: auto; object-fit: contain; opacity: .55; }
.angebot-text { padding: 22px 26px 26px; flex: 1; }
.angebot .mehr { margin-top: auto; padding-top: 4px; }
.galerie img { border-radius: 10px; }
.grundriss-bild { display: block; background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 12px; }
.grundriss-bild + .grundriss-bild { margin-top: 12px; }
.grundriss-bild img { display: block; width: 100%; height: auto; max-height: 760px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .angebot { transition: none; } a.angebot:hover { transform: none; } }
