/* =============================================================================
   Grundgestaltung wie Live (Astra 4.13 + Kundeneinstellungen), auf UIkit aufgesetzt.
   Quelle der Werte: reference/css/…astra…frontend.min.css, inline__home__astra-theme-css-inline-css.css,
   gegengeprüft mit tools/global-probe.mjs (Computed Styles Live gegen Staging).

   Spezifität bewusst niedrig (Tag-Selektoren): UIkit-Klassen (.uk-button, .uk-h1, .uk-input …)
   und Seiten-CSS gewinnen. Listen, Buttons und Formularfelder MIT uk-Klasse bleiben unberührt
   (:where(:not([class*="uk-"])) hat Spezifität 0).

   Breakpoints wie Live:  ≤ 921 (Astra Tablet)  ·  ≤ 544 (Astra Mobile)
                          ≤ 1024 / ≤ 767 (Elementor Tablet/Mobile) – für Seiten-CSS
   ============================================================================= */

:root {
    --nb-gold: #b5a580;          /* Astra-Akzent: Links, Buttons */
    --nb-gold-el: #b69e59;       /* Elementor-Gold: Trennlinien, Icons */
    --nb-yellow: #e8c204;        /* Menü aktiv/hover */
    --nb-heading: #001007;       /* Überschriften, Hover */
    --nb-text: #252827;          /* Fliesstext */
    --nb-topbar: #262a2b;
    --nb-border: #dddddd;        /* --ast-border-color */
    --nb-bg-grey: #f5f5f5;       /* Astra «separate container» */
    --nb-font-body: 'Source Sans Pro', sans-serif;
    --nb-font-heading: 'Playfair Display', serif;
    --nb-font-heading-small: 'Montserrat', sans-serif;
    --nb-font-menu: 'Roboto Slab', sans-serif;
}

/* --- Box-Modell: Live rechnet überall mit border-box (UIkit sonst content-box) --- */
*, ::before, ::after { box-sizing: border-box; }
hr { box-sizing: content-box; }

/* --- Dokument --- */
html {
    font-family: "Times New Roman", serif;   /* Live setzt die Schrift erst auf body */
    font-size: 106.25%;                       /* 17px; rem-Werte skalieren wie Live */
    font-weight: 400;
    line-height: normal;
    color: #000;
    background: none;
    text-rendering: auto;                     /* UIkit: optimizeLegibility → andere Rasterung */
    -webkit-font-smoothing: auto;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (max-width: 921px) { html { font-size: 96.9%; } }   /* 15.504px */

body {
    position: relative;
    margin: 0;
    font-family: var(--nb-font-body);
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5em;
    color: var(--nb-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Astra-Seiten (Beiträge, Archive, Suche, 404, Termin buchen): grauer Grund, weisse Karten.
   Elementor-Seiten (Home, Impressum) bleiben weiss. */
body.single-post, body.archive, body.search, body.error404, body.blog,
body.page-id-883, body.page-id-882 { background-color: var(--nb-bg-grey); }

::selection { background-color: var(--nb-gold); color: #000; }

/* --- Überschriften --- */
h1, h2, h3, h4, h5, h6 {
    clear: both;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--nb-font-heading-small);
    font-style: inherit;
    font-weight: 500;
    line-height: 1.1em;
    color: var(--nb-heading);
    text-transform: none;
}
h1, h2, h3 { font-family: var(--nb-font-heading); font-weight: 700; }
h1 { font-size: 14.117647058824rem; line-height: 1.4em; }   /* 240px */
h2 { font-size: 4.2352941176471rem; line-height: 1.3em; }   /* 72px */
h3 { font-size: 2.3529411764706rem; line-height: 1.3em; }   /* 40px */
h4 { font-size: 1.4117647058824rem; }                       /* 24px */
h5 { font-size: 1.0588235294118rem; }                       /* 18px */
h6 { font-size: 0.82352941176471rem; }                      /* 14px */
@media (max-width: 921px) {
    h1 { font-size: 128px; }
    h2 { font-size: 64px; }
    h3 { font-size: 32px; }
    h4 { font-size: 1.2941176470588rem; }
}
@media (max-width: 544px) {
    h1 { font-size: 56px; }
    h2 { font-size: 40px; }
    h3 { font-size: 32px; }
    h4 { font-size: 1.0588235294118rem; }
}

/* --- Fliesstext --- */
p { margin: 0; padding: 0; }
address, dl, dt, figure, pre, fieldset, legend, li, iframe { margin: 0; padding: 0; border: 0; font-style: inherit; font-weight: inherit; }
b, strong { font-weight: 700; }
cite, dfn, em, i { font-style: italic; color: inherit; }
small { font-size: 80%; }
big { font-size: 125%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -.5em; }
sub { bottom: -.25em; }
ins, mark { background: none; text-decoration: none; }
mark { color: #000; }
code, kbd, tt, var, samp, :not(pre) > code, :not(pre) > kbd, :not(pre) > samp {
    font: 1em Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    color: inherit; background: none; padding: 0; white-space: normal;
}
pre {
    background: #eee; font: 1em "Courier 10 Pitch", Courier, monospace; line-height: inherit; color: inherit;
    margin-bottom: 1.6em; overflow: auto; max-width: 100%; padding: 1.6em; border: 0; border-radius: 0;
    tab-size: 8; white-space: pre;
}
address { margin: 0 0 1.5em; font-style: italic; }
abbr, acronym { border-bottom: 1px dotted #666; cursor: help; text-decoration: none; }
blockquote {
    quotes: "" ""; margin: 1.5em 1em 1.5em 3em; padding: 1.2em; border: 0; border-left: 5px solid var(--nb-border);
    font-size: 1.1em; font-style: italic; font-weight: inherit; line-height: inherit; color: #000; position: relative;
}
hr {
    height: 1px; margin: 0 0 1.5em; padding: 0; border: 0; background-color: #ccc; overflow: hidden;
}
dt { font-weight: 600; }
dd { margin: 0 1.5em 1em; padding: 0; }

/* Listen ohne uk-Klasse (uk-nav, uk-grid, uk-subnav … behalten die UIkit-Vorgaben) */
ul:where(:not([class*="uk-"])), ol:where(:not([class*="uk-"])) { margin: 0 0 1.5em 3em; padding: 0; }
ul:where(:not([class*="uk-"])) { list-style: disc; }
ol:where(:not([class*="uk-"])) { list-style: decimal; }
li > ul:not([class*="uk-"]), li > ol:not([class*="uk-"]) { margin-bottom: 0; margin-left: 1.5em; }

/* --- Links --- */
a { color: var(--nb-gold); background-color: transparent; text-decoration: none; transition: all .2s linear; }
a:hover, a:focus { color: var(--nb-heading); text-decoration: none; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }

/* --- Medien --- */
img { height: auto; max-width: 100%; border: 0; vertical-align: middle; }
/* UIkit erzwingt das Seitenverhältnis der width/height-Attribute und object-fit: cover. Live (Browser-
   Standard): Attribute nur als Platzhalter, nach dem Laden gilt das Verhältnis der geladenen Datei
   (WordPress-Grössen weichen um Bruchteile vom Original ab → sonst andere Bildhöhe). */
img { aspect-ratio: auto attr(width type(<number>)) / attr(height type(<number>)); object-fit: fill; }
embed, iframe, object { max-width: 100%; }
iframe, video, svg:where(:not([class*="uk-"])):where(:not([class*="uk-"] > *)) { vertical-align: baseline; }
video, svg:where(:not([class*="uk-"])):where(:not([class*="uk-"] > *)) { max-width: none; }
figure { margin: 0; }

/* --- Tabellen (ohne uk-Klasse) --- */
table:where(:not([class*="uk-"])) {
    border-collapse: separate; border-spacing: 0; border: 1px solid var(--nb-border); border-width: 1px 0 0 1px;
    margin: 0 0 1.5em; width: 100%;
}
table:where(:not([class*="uk-"])) :where(td, th) { border: 1px solid var(--nb-border); border-width: 0 1px 1px 0; padding: .7em 1em; }
table:where(:not([class*="uk-"])) th { font-weight: 600; }

/* --- Formularfelder ohne uk-Klasse (Astra) --- */
input:where(:not([class*="uk-"])), select:where(:not([class*="uk-"])), textarea:where(:not([class*="uk-"])) {
    margin: 0; color: #808285; font-family: var(--nb-font-body); font-size: 1rem; font-weight: 400;
    line-height: 1.5em; vertical-align: baseline;
}
input:where(:not([class*="uk-"])) { outline: none; }
textarea:where(:not([class*="uk-"])) { width: 100%; overflow: auto; }
input:where([type="email"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"]):where(:not([class*="uk-"])),
select:where(:not([class*="uk-"])), textarea:where(:not([class*="uk-"])) {
    color: #666; padding: .75em; height: auto; border: 1px solid var(--nb-border); border-radius: 2px;
    background: #fafafa; box-shadow: none; transition: all .2s linear;
}
input:where([type="email"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"]):where(:not([class*="uk-"])),
textarea:where(:not([class*="uk-"])) { -webkit-appearance: none; appearance: none; }
input:where([type="email"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"]):where(:not([class*="uk-"])):focus,
select:where(:not([class*="uk-"])):focus, textarea:where(:not([class*="uk-"])):focus {
    color: #111; background-color: #fff; border: thin dotted; border-color: inherit; outline: none;
}
fieldset:where(:not([class*="uk-"])) { border: 1px solid var(--nb-border); margin: 0; padding: .35em .625em .75em; }
fieldset:where(:not([class*="uk-"])) legend { margin-bottom: 1.5em; padding: 0 .5em; }

/* --- Buttons (global, Astra): button, input[type=submit|button|reset] ohne uk-Klasse --- */
button:where(:not([class*="uk-"])),
input:where([type="button"], [type="submit"], [type="reset"]):where(:not([class*="uk-"])) {
    margin: 0;
    padding: 14px 32px;
    border: 1px solid var(--nb-gold);
    border-radius: 0;
    background: var(--nb-gold);
    color: #fff;
    font-family: var(--nb-font-heading-small);
    font-size: 0.70588235294118rem;           /* 12px, ≤ 921: 10.944px */
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 4px;
    text-transform: uppercase;
    vertical-align: baseline;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
    -webkit-appearance: button;
}
button:where(:not([class*="uk-"])):hover, button:where(:not([class*="uk-"])):focus,
input:where([type="button"], [type="submit"], [type="reset"]):where(:not([class*="uk-"])):hover,
input:where([type="button"], [type="submit"], [type="reset"]):where(:not([class*="uk-"])):focus {
    color: var(--nb-heading); background-color: #fff; border-color: var(--nb-gold); outline: 0;
}

/* Derselbe Stil als Klasse für Builder-Buttons: <a class="nb-button">, .uk-button.nb-button */
.nb-button, a.nb-button, .uk-button.nb-button {
    display: inline-block;
    margin: 0;
    padding: 14px 32px;
    border: 1px solid var(--nb-gold);
    border-radius: 0;
    background-color: var(--nb-gold);
    color: #fff;
    fill: #fff;
    font-family: var(--nb-font-heading-small);
    font-size: 0.70588235294118rem;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 4px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: none;
    transition: all .3s;
}
.nb-button:hover, .nb-button:focus, a.nb-button:hover, a.nb-button:focus,
.uk-button.nb-button:hover, .uk-button.nb-button:focus {
    color: var(--nb-heading); background-color: #fff; border-color: var(--nb-gold); text-decoration: none;
}

/* --- Hilfsklasse wie WordPress/Astra --- */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
