/* Schrift lokal gehostet (keine Verbindung zu Google).
   Dateien z. B. aus dem WP-Theme bzw. via google-webfonts-helper nach wwwroot/fonts legen. */
@font-face {
    font-family: "Titillium Web";
    src: url("/fonts/titillium-web-400.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Titillium Web";
    src: url("/fonts/titillium-web-600.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}

:root {
    --c-brand: #2b2181;       /* TAE-Violett: Logo, Titel, Links, Nav */
    --c-text: #333333;
    --c-muted: #747474;
    --c-input-bg: #f3f3f3;
    --c-input-border: #9a9a9a;
    --c-btn-bg: #e2e2e2;
    --c-page-bg: #d6d6d6;     /* Grau unterhalb des Footers */
    --c-error: #b3261e;
    --font: "Titillium Web", "Helvetica Neue", Arial, sans-serif;
    --maxw: 1100px;
}

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

html { background: var(--c-page-bg); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.85;
    color: var(--c-text);
}

.wrapper { background: #fff; }

a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }

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

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}
.logo img { display: block; height: 72px; width: auto; }
.main-nav a { font-size: 17px; color: var(--c-brand); letter-spacing: .01em; }
.main-nav a:hover { text-decoration: none; opacity: .75; }

/* Seitentitel */
.page-title {
    margin: 30px 0 45px;
    text-align: center;
    font-weight: 400;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.2;
    color: var(--c-brand);
}

/* Inhalt: 2/3-Spalte wie im Avada-Original */
.content { width: 66.6667%; padding-bottom: 25px; }
@media (max-width: 800px) { .content { width: 100%; } }

/* Formular */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 2px; }
.field input, .field textarea {
    display: block;
    width: 100%;
    font: inherit;
    color: var(--c-text);
    background: var(--c-input-bg);
    border: 1px solid var(--c-input-border);
    border-radius: 4px;
    padding: 0 12px;
    height: 45px;
}
.field textarea { height: 137px; padding: 8px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-brand); }
.input-validation-error { border-color: var(--c-error) !important; }

.hint { margin: 18px 0 38px; }

.consent { margin-bottom: 10px; }
.consent input { margin: 0 6px 0 3px; vertical-align: -1px; }

.btn {
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--c-brand);
    text-transform: uppercase;
    background: var(--c-btn-bg);
    border: 0;
    border-radius: 2px;
    padding: 7px 26px;
    cursor: pointer;
}
.btn:hover { background: #d2d2d2; }

.error { display: block; color: var(--c-error); font-size: 14px; line-height: 1.4; margin-top: 3px; }
.error:empty { display: none; }
.alert { color: var(--c-error); margin-bottom: 20px; }
.alert:empty, .alert.validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-left: 18px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { font-size: 18px; min-height: 200px; }

/* Rechtstexte */
.legal h4 { font-size: 18px; font-weight: 600; margin: 32px 0 6px; color: var(--c-text); scroll-margin-top: 20px; }
.legal h4:first-child { margin-top: 0; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }

/* Footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 22px;
}
.footer-nav { font-size: 13px; }
.footer-nav a { color: var(--c-muted); }
.footer-nav a.active { color: var(--c-brand); }
.footer-nav a + a::before { content: "/"; color: var(--c-muted); margin: 0 6px; display: inline-block; }
.linkedin { color: var(--c-muted); font-weight: 600; font-size: 18px; }
.linkedin:hover { color: var(--c-brand); text-decoration: none; }
