/* SysSoftTec GmbH – Webseite (eigene Styles; css/ ist vendored DevExtreme) */

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('../fonts/nunito-latin.woff2') format('woff2');
}

:root {
    --rot: #e40000;
    --rot-dunkel: #650000;
    --rot-hell: #ff3b3b;
    --text: #f2f2f2;
    --text-gedimmt: #b9b9b9;
    --grund: #0b0b0b;
    --flaeche: rgba(20, 20, 20, .82);
    --kopf-hoehe: 72px;
    --breite: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--kopf-hoehe); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font-family: 'Nunito', 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

/* DevExtreme setzt die Schrift über .dx-viewport – deshalb hier mit höherer Spezifität */
body.dx-viewport,
body.dx-viewport .dx-widget,
body.dx-viewport .dx-widget input,
body.dx-viewport .dx-widget textarea,
.dx-overlay-wrapper .dx-widget { font-family: 'Nunito', 'Segoe UI', Roboto, sans-serif; }

/* body.dx-viewport, weil dx.dark.css Links über .dx-theme-generic-typography a blau färbt */
a, body.dx-viewport a { color: var(--rot-hell); text-decoration: none; }
a:hover, a:focus-visible, body.dx-viewport a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; }

/* ---------- Kopfzeile ---------- */
.kopf {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--kopf-hoehe);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 0 max(16px, calc((100vw - var(--breite)) / 2));
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.kopf-logo img { display: block; width: 220px; height: auto; }
.zurueck { color: var(--text); font-weight: 600; }

/* Begrenzte Breite, damit dxMenu bei Platzmangel auf das Hamburger-Menü umschaltet */
#menue { flex: 1 1 auto; min-width: 0; text-align: right; }
#menue.dx-menu { background: transparent; }
#menue .dx-menu-item { color: var(--text); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
#menue .dx-menu-item.dx-state-hover,
#menue .dx-menu-item.dx-menu-item-expanded,
#menue .dx-menu-item.aktiv { color: var(--rot-hell); background: transparent; }
.dx-menu-base .dx-menu-item.dx-state-focused { background-color: rgba(228, 0, 0, .25); }
.dx-context-menu .dx-menu-item.dx-state-hover,
.dx-treeview-item.dx-state-hover { background-color: rgba(228, 0, 0, .3); }
.dx-menu-adaptive-mode .dx-treeview-item { font-weight: 700; }
#menue .dx-menu-adaptive-mode { background: transparent; border: 0; display: inline-block; }
#menue .dx-menu-hamburger-button.dx-button { background: transparent; border-color: transparent; }
#menue .dx-menu-adaptive-mode .dx-treeview { text-align: left; background: #111; }
.dx-menu-adaptive-mode .dx-treeview .dx-state-focused > .dx-treeview-item,
.dx-menu-adaptive-mode .dx-treeview .dx-treeview-node.dx-state-focused > .dx-treeview-item { background-color: var(--rot-dunkel); color: #fff; }

/* ---------- Sektionen ---------- */
.sektion {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: calc(var(--kopf-hoehe) + 40px) 16px 72px;
    overflow: hidden;
    isolation: isolate;
}
.sektion-inhalt { position: relative; width: 100%; max-width: var(--breite); margin: 0 auto; }

/* Hintergrundvideo + Abdunklung */
.sektion-video { background: #111; }
.sektion-video video {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
}
.sektion-video::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: rgba(0, 0, 0, .68);
}

/* Wabenmuster mit Lichtkegel in der Mitte */
.sektion-waben {
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 45%, #000 75%),
        url('../media/bilder/dark-honeycomb.png') repeat;
}

.sektion-bild { background: url('../media/bilder/kontakt-hintergrund.jpg') center / cover no-repeat; }
.sektion-bild::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .78); }

/* Roter Abschnittstitel ("Wir sind…", "Team…") */
.label {
    display: inline-block;
    margin: 0 0 32px;
    padding: 4px 48px 6px 10px;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--rot-dunkel) 0%, #b00000 60%, rgba(228, 0, 0, .55) 100%);
    border-radius: 2px 26px 26px 2px;
}

/* ---------- Wir sind… ---------- */
#wirsind .label { font-size: clamp(32px, 4.5vw, 52px); }
.wirsind-zeilen { min-height: 9em; }
.wirsind-zeile {
    margin: 0 0 18px;
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 600;
    opacity: 0;
    transform: translateY(14px);
    animation: einblenden .9s ease forwards;
    animation-delay: calc(.6s + var(--i) * 1.4s);
}
@keyframes einblenden { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wirsind-zeile { animation: none; opacity: 1; transform: none; } }

/* ---------- Firmendaten ---------- */
.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; text-align: center; }
.zahl-wert { color: var(--rot); font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.zahl-text { margin-top: 6px; text-transform: uppercase; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--text-gedimmt); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { background: rgba(0, 0, 0, .45); border-left: 3px solid var(--rot); padding: 14px 18px; border-radius: 4px; }
.person h3 { margin: 0; text-transform: uppercase; font-size: 18px; letter-spacing: .03em; }
.person-rolle { color: var(--rot-hell); text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.person-beginn { margin-bottom: 10px; font-size: 15px; color: var(--text-gedimmt); }
.person-kontakt { font-size: 15px; }

/* ---------- Werdegang ---------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitleiste::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
    background: linear-gradient(var(--rot), rgba(228, 0, 0, .15));
}
.zeitleiste-eintrag { position: relative; width: 50%; padding: 0 40px 28px 0; }
.zeitleiste-eintrag:nth-child(even) { margin-left: 50%; padding: 0 0 28px 40px; }
.zeitleiste-eintrag::after {
    content: ''; position: absolute; top: 18px; right: -9px; width: 18px; height: 18px;
    border-radius: 50%; background: var(--rot-dunkel); border: 3px solid var(--rot);
}
.zeitleiste-eintrag:nth-child(even)::after { right: auto; left: -9px; }
.zeitleiste-jahr { font-size: 22px; font-weight: 800; color: var(--rot-hell); }
.zeitleiste-eintrag:nth-child(odd) { text-align: right; }
.zeitleiste-text { background: #f5f5f5; color: #333; padding: 12px 16px; border-radius: 4px; font-size: 15px; text-align: left; }

/* ---------- Was wir leisten ---------- */
.leistungen { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.leistungen li { display: flex; gap: 14px; margin-bottom: 18px; font-size: clamp(17px, 1.6vw, 20px); }
.leistungen .dx-icon-check { flex: none; color: var(--rot); font-size: 26px; line-height: 1.1; }

/* ---------- Produkte ---------- */
.produkte { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.produkt {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 40px 32px 32px;
    background: rgba(101, 0, 0, .86);
    border-radius: 12px;
    font-size: 15px;
}
.produkt-icon { font-size: 42px; color: #fff; }
.produkt h3 { margin: 14px 0 10px; font-size: 22px; }
.produkt p { margin: 0 0 8px; }
.produkt-knopf { margin-top: auto; }
.produkt-knopf-rahmen { margin-top: auto; padding-top: 18px; }
.produkt-knopf.dx-button-mode-outlined { border-color: #fff; color: #fff; }
.produkt-knopf.dx-button-mode-outlined .dx-icon { color: #fff; }
.produkt-knopf.dx-button-mode-outlined.dx-state-hover { background-color: rgba(255, 255, 255, .15); }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.buerozeiten { border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.buerozeiten th { text-align: left; padding: 3px 24px 3px 0; font-weight: 700; }
.buerozeiten td { padding: 3px 0; }
.kontakt-formular { background: var(--flaeche); padding: 24px; border-radius: 8px; }
#kontakt-senden { margin-top: 20px; }
.honigtopf { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.einwilligung-text { font-size: 13px; line-height: 1.5; color: var(--text-gedimmt); }

/* ---------- Fuß ---------- */
.fuss { background: #000; border-top: 1px solid #222; font-size: 15px; }
.fuss-spalten {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    max-width: var(--breite); margin: 0 auto; padding: 40px 16px 24px;
}
.fuss h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.fuss-leiste {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    max-width: var(--breite); margin: 0 auto; padding: 16px 16px 72px;
    border-top: 1px solid #222; color: var(--text-gedimmt);
}
.fuss-leiste nav { display: flex; gap: 24px; }
.karte { background: #1c1c1c; border-radius: 6px; padding: 16px; font-size: 13px; color: var(--text-gedimmt); }
.karte p { margin: 0 0 12px; }
.karte iframe { display: block; width: 100%; height: 220px; border: 0; border-radius: 4px; }
.karte-link { display: inline-block; margin-top: 8px; }

/* ---------- Nach oben ---------- */
#nach-oben { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
#nach-oben.sichtbar { opacity: 1; pointer-events: auto; }
#nach-oben.dx-button { border-radius: 50%; }

/* ---------- Buttons im Rot der Seite ---------- */
.dx-button-mode-contained.dx-button-danger { background-color: #b00000; }
.dx-button-mode-contained.dx-button-danger.dx-state-hover { background-color: var(--rot); }
.dx-checkbox-checked .dx-checkbox-icon { background-color: var(--rot) !important; border-color: var(--rot) !important; }
.dx-editor-outlined.dx-state-focused, .dx-editor-filled.dx-state-focused { border-color: var(--rot-hell) !important; }
.dx-texteditor.dx-state-focused::after { border-bottom-color: var(--rot-hell); }

/* ---------- Popups (Produkte, Rechtstexte) ---------- */
.popup-inhalt { font-size: 16px; line-height: 1.6; }
.popup-inhalt h3 { color: var(--rot-hell); margin: 28px 0 10px; }
.popup-inhalt .dx-accordion-item-title { font-weight: 700; }
.popup-inhalt .dx-accordion-item-body ul { margin: 0; padding-left: 20px; }
.popup-inhalt .dx-accordion-item-body li { margin-bottom: 4px; }
.galerie-bild { display: block; max-width: 100%; max-height: 100%; margin: 0 auto; object-fit: contain; cursor: zoom-in; }

.rechtstext h3 { font-size: 20px; margin: 28px 0 8px; color: var(--rot-hell); }
.rechtstext h4 { font-size: 17px; margin: 20px 0 6px; }
.rechtstext h5 { font-size: 16px; margin: 16px 0 4px; }
.rechtstext p, .rechtstext li { overflow-wrap: anywhere; }

/* Eigenständige Impressum-/Datenschutzseite */
.rechtsseite main.rechtstext { max-width: 900px; margin: 0 auto; padding: calc(var(--kopf-hoehe) + 24px) 16px 48px; }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
    .team { grid-template-columns: repeat(2, 1fr); }
    .kontakt { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
    :root { --kopf-hoehe: 60px; }
    body { font-size: 16px; }
    .kopf-logo img { width: 170px; }
    .sektion { min-height: 0; padding-top: calc(var(--kopf-hoehe) + 32px); padding-bottom: 56px; }
    .zahlen { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
    .zahl-wert { font-size: 30px; }
    .zahl-text { font-size: 12px; }
    .team, .produkte, .fuss-spalten { grid-template-columns: 1fr; }
    .zeitleiste::before { left: 9px; }
    .zeitleiste-eintrag, .zeitleiste-eintrag:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 24px 36px; text-align: left; }
    .zeitleiste-eintrag::after, .zeitleiste-eintrag:nth-child(even)::after { left: 0; right: auto; }
    .kontakt-formular { padding: 16px; }
    .wirsind-zeilen { min-height: 0; }
    #nach-oben { left: auto; right: 14px; transform: none; }
}
