/*
 * ImotSite – Grundstile (eigene Datei). Ersetzt die Grundstile, auf die das Theme „obyavi“ von imot.immo sonst
 * aufbaut (Rücksetzung, Schrift, Überschriften, Formulare), ohne fremdes Framework.
 */

/* ---------- Schrift Literata (SIL OFL 1.1, siehe fonts/literata/OFL.txt) ---------- */
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url("../fonts/literata/literata-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url("../fonts/literata/literata-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url("../fonts/literata/literata-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/literata/literata-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/literata/literata-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/literata/literata-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("../fonts/literata/literata-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("../fonts/literata/literata-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("../fonts/literata/literata-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
    --ob-font: var(--site-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    --ob-serif: "Literata", Georgia, "Times New Roman", serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--ob-font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 700;
    text-wrap: balance;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; }

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

a { text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea {
    font: inherit;
    color: inherit;
    margin: 0;
}

button { cursor: pointer; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

:focus-visible { outline: 2px solid var(--ob-accent, #2c4bbb); outline-offset: 2px; }

/* nur für Screenreader sichtbar */
.ob-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* „Zum Inhalt springen“ – erscheint nur bei Bedienung mit der Tastatur */
.ob-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: #10242b;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(16, 36, 43, .18);
}
.ob-skip:focus { top: 12px; }

.ob-svg-icon { width: 1em; height: 1em; flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
