/* DevDex Play Bootstrap Styles — selbst gehostet, ohne externen Request und ohne Cookies.
 *
 * W-19: Diese Datei ist ein abgeleitetes Werk der Vorlage "Play" von UIdeck
 * (https://uideck.com), veroeffentlicht unter der MIT-Lizenz; die Klassenpraefixe `ud-*`
 * stammen von dort. Copyright (c) UIdeck. Die MIT-Lizenz verlangt, dass der
 * Urhebervermerk in abgeleiteten Werken erhalten bleibt — er hat hier gefehlt und ist am
 * 12.09.2026 nachgetragen worden. Aenderungen von DevDex: Farben, Abstaende, Schrift
 * (Nunito, lokal), Entfernen aller externen Verweise.
 */

:root {
    --font: "Nunito", sans-serif;
    --body-color: #637381;
    --heading-color: #212b36;
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --white: #ffffff;
    --gray-100: #f8f9fc;
    --gray-200: #e3e6f0;
    --gray-600: #637381;
    --gray-700: #495057;
    --gray-800: #212b36;
    --gray-900: #1a202c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--body-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    color: var(--heading-color);
}

p {
    line-height: 1.8;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
}

.h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Text Colors */
.text-gray-600 {
    color: #637381;
}

.text-gray-700 {
    color: #495057;
}

.text-gray-800 {
    color: #212b36;
}

.text-gray-900 {
    color: #1a202c;
}

.bg-light {
    background-color: #f8f9fc;
}

/* Header/Navigation - transparent over hero, white on scroll */
.ud-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.ud-header .navbar {
    padding: 1.25rem 0;
    transition: padding 0.3s ease;
}

.ud-header.ud-header-scrolled {
    background-color: var(--white);
    box-shadow: 0 0.25rem 1rem rgba(33, 43, 54, 0.08);
}

.ud-header.ud-header-scrolled .navbar {
    padding: 0.75rem 0;
}

.ud-header .navbar-brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--white);
    transition: color 0.3s ease;
}

.ud-header.ud-header-scrolled .navbar-brand-text {
    color: var(--primary-color);
}

.ud-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.ud-header .navbar-nav .nav-link:hover,
.ud-header .navbar-nav .nav-link.active {
    color: var(--white);
}

.ud-header.ud-header-scrolled .navbar-nav .nav-link {
    color: var(--heading-color);
}

.ud-header.ud-header-scrolled .navbar-nav .nav-link:hover,
.ud-header.ud-header-scrolled .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.ud-menu-scroll {
    scroll-behavior: smooth;
}

/* Mobile menu: while the collapse is open the whole header turns into one
   solid white panel (class `ud-nav-open`, gesetzt in play-scripts.js). Ohne
   das liegt die aufgeklappte Liste ueber dem Seiteninhalt und verschmilzt
   optisch damit, weil der Header ueber dem Hero transparent ist. */
@media (max-width: 991.98px) {
    .ud-header.ud-nav-open {
        background-color: var(--white);
        box-shadow: 0 0.25rem 1rem rgba(33, 43, 54, 0.08);
    }

    .ud-header.ud-nav-open .navbar-brand-text {
        color: var(--primary-color);
    }

    .ud-header .navbar-collapse {
        background-color: var(--white);
        margin-top: 0.75rem;
        padding: 0.25rem 0 0.5rem;
        border-top: 1px solid var(--gray-200);
        /* sehr kleine Displays: Liste scrollt statt ueber den Rand zu laufen */
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
    }

    .ud-header .navbar-collapse .nav-link {
        color: var(--heading-color);
        margin: 0;
        padding: 0.75rem 0;
    }

    .ud-header .navbar-collapse .nav-link:hover,
    .ud-header .navbar-collapse .nav-link.active {
        color: var(--primary-color);
    }
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 0.375rem;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
    font-family: var(--font);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section - solid DevDex blue, white centered text, matches template */
.ud-hero {
    background: var(--primary-color);
    padding: 180px 0 100px;
    text-align: center;
}

.ud-hero-title {
    color: var(--white);
    font-weight: 700;
    font-size: 45px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.ud-hero-desc {
    font-weight: normal;
    font-size: 20px;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 30px;
}

.ud-hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ud-main-btn {
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    padding: 15px 25px;
    border: 1px solid transparent;
    color: var(--white);
    cursor: pointer;
    background: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.ud-white-btn {
    background: var(--white);
    color: var(--primary-color);
}

.ud-white-btn:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.ud-link-btn {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.ud-link-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: var(--white);
}

/* Section Spacing */
.section-spacing {
    padding: 5rem 0;
}

/* Features/Products */
.ud-features {
    background-color: var(--gray-100);
}

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.75rem 2rem 0 rgba(78, 115, 223, 0.15) !important;
}

/* About Section */
.ud-about {
    background-color: var(--white);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.bg-success {
    background-color: #13c296 !important;
}

.bg-secondary {
    background-color: #9ca3af !important;
}

.badge.bg-light {
    background-color: #f3f4f6 !important;
    color: var(--primary-color) !important;
}

/* Contact Section - matches template's ud-contact layout */
.ud-contact {
    background-color: var(--white);
    padding: 120px 0;
}

.ud-contact-title span {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ud-contact-title h2 {
    font-weight: 600;
    font-size: 35px;
    line-height: 1.3;
    margin-bottom: 40px;
}

.ud-single-info {
    display: flex;
    max-width: 100%;
    margin-bottom: 30px;
}

.ud-info-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-right: 24px;
    flex-shrink: 0;
}

.ud-info-meta h5 {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}

.ud-info-meta p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--body-color);
    margin-bottom: 0;
}

.ud-contact-card {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: var(--white);
    padding: 3rem;
    text-align: center;
}

.ud-contact-form-title {
    font-weight: 600;
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

/* Footer - dark, matches template's ud-footer */
.ud-footer {
    background-color: var(--heading-color);
    padding-top: 100px;
}

.ud-widget-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--white);
}

.ud-widget-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #f3f4fe;
    max-width: 280px;
}

.ud-widget-links li {
    margin-bottom: 12px;
}

.ud-widget-links a {
    font-size: 15px;
    line-height: 1.6;
    color: #f3f4fe;
    text-decoration: none;
}

.ud-widget-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.ud-widget-text {
    font-size: 15px;
    line-height: 1.6;
    color: #f3f4fe;
}

.ud-footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ud-footer-bottom-left {
    display: flex;
    gap: 1.5rem;
}

.ud-footer-bottom-left a {
    font-size: 15px;
    color: #f3f4fe;
    text-decoration: none;
}

.ud-footer-bottom-left a:hover {
    color: var(--white);
    text-decoration: underline;
}

.ud-footer-bottom-right {
    text-align: right;
    font-size: 15px;
    color: #f3f4fe;
}

@media (max-width: 767.98px) {
    .ud-footer-bottom-right {
        text-align: left;
        margin-top: 1rem;
    }
}

.navbar-logo {
    object-fit: contain;
}

/* Cards */
.card {
    border: 1px solid #e3e6f0;
}

.card-body {
    padding: 2rem;
}

/* Animations */
/* W-07: OHNE JavaScript ist alles sichtbar.
 *
 * Bis zum 12.09.2026 stand hier `opacity: 0` unbedingt — ohne JavaScript (oder bei einem
 * Skript- oder CSP-Fehler) blieben Hero, Produkte, Ueber uns und Kontakt damit dauerhaft
 * unsichtbar, also die ganze Seite. Jetzt ist die Voreinstellung sichtbar, und erst die
 * Klasse `js` am <html> (gesetzt von js/js-erkennung.js) schaltet das Verstecken ein,
 * damit WOW.js die Bloecke beim Scrollen einblenden kann.
 */
.wow {
    opacity: 1;
}

html.js .wow {
    opacity: 0;
    animation-duration: 1s;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

.fadeInRight {
    animation-name: fadeInRight;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.25rem;
    }

    .h2 {
        font-size: 1.75rem;
    }

    /* Kopfleiste ist auf dem Handy ca. 90px hoch – genug Luft darunter lassen,
       damit die Ueberschrift nicht am Logo/Balken klebt. */
    .ud-hero {
        padding: 9.5rem 0 4rem;
        min-height: auto;
    }

    .ud-hero-title {
        font-size: 34px;
        margin-bottom: 20px;
    }

    .ud-hero-desc {
        font-size: 17px;
    }

    .section-spacing {
        padding: 3rem 0;
    }

    .ud-header .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }

    .ud-hero-buttons {
        flex-direction: column;
    }

    .ud-hero-buttons .btn {
        width: 100%;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Gap utilities (Bootstrap 5 compatibility) */
.gap-3 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

/* Text utilities */
.font-weight-bold {
    font-weight: 700;
}

.text-decoration-none {
    text-decoration: none;
}

/* Utilities */
.overflow-hidden {
    overflow: hidden;
}

.object-fit-contain {
    object-fit: contain;
}

/* Shadow utilities */
.shadow-lg {
    box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.15);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.075);
}

/* Borders */
.border-0 {
    border: 0;
}

.border-top {
    border-top: 1px solid #e3e6f0;
}

/* Spacing utilities */
.ms-auto {
    margin-left: auto;
}

.ms-1 {
    margin-left: 0.25rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

/* W-07, zweite Haelfte: wer reduzierte Bewegung eingestellt hat, bekommt keine.
 * Sichtbar bleibt trotzdem alles — die Regel hebt das Verstecken mit auf, sonst waere
 * eine Seite ohne Animation eine leere Seite. */
@media (prefers-reduced-motion: reduce) {
    html.js .wow,
    html.js .wow.animated {
        opacity: 1;
    }

    .wow,
    .animated {
        animation: none !important;
        transition: none !important;
    }
}
