/* =========================================
   GLOBAL / BASE
========================================= */
:root {
    --bg-body: #050816;
    --bg-elevated: rgba(15, 23, 42, 0.9);
    --bg-elevated-soft: rgba(15, 23, 42, 0.75);
    --accent: #6EC3D9;
    --accent-soft: rgba(110, 195, 217, 0.25);
    --accent-strong: #45A6BE;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-soft: rgba(148,163,184,0.15);
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 45px rgba(0,0,0,0.45);
    --shadow-subtle: 0 10px 30px rgba(15,23,42,0.45);
    --glass-blur: 18px;
    --transition-fast: 0.18s ease-out;
    --transition-normal: 0.28s ease-out;
    --container-width: 1100px;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background:
        radial-gradient(circle at 0% 0%, rgba(110,195,217,0.14), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56,189,248,0.12), transparent 55%),
        #020617;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* =========================================
   HEADER / LOGO
========================================= */
.site-header {
    position: fixed;
    inset-inline-start: 24px;
    inset-block-start: 22px;
    z-index: 40;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148,163,184,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.55);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}

@media (max-width: 600px) {
    .logo {
        height: 32px;
    }

    .site-header {
        inset-inline-start: 12px;
        inset-block-start: 12px;
        padding-inline: 10px;
    }
}

/* =========================================
   HERO SECTION (Full viewport)
========================================= */
:root {
    --hero-img: ""; /* Kannst du per inline-style überschreiben */
}

.hero {
    position: relative;
    min-height: 40vh;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(110,195,217,0.25), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(56,189,248,0.22), transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    mix-blend-mode: soft-light;
    opacity: 0.18;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 26px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(15,23,42,0.95),
        rgba(15,23,42,0.72)
    );
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Buttons */
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-yellow {
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #111827;
    box-shadow: 0 16px 35px rgba(250,204,21,0.35);
}

.btn-yellow:hover {
    box-shadow: 0 20px 40px rgba(250,204,21,0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(148,163,184,0.5);
    box-shadow: 0 14px 30px rgba(15,23,42,0.5);
}

.btn-outline:hover {
    background: rgba(15,23,42,0.75);
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

/* Glass CTA Variante */
.btn-glass {
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.65);
    background: radial-gradient(circle at 0 0, rgba(148,163,184,0.32), transparent 55%),
                rgba(15,23,42,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #e5e7eb;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        background var(--transition-normal),
        border-color var(--transition-normal);
}

.btn-glass:hover {
    background: radial-gradient(circle at 0 0, rgba(148,163,184,0.45), transparent 55%),
                rgba(15,23,42,0.95);
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 50px rgba(0,0,0,0.75);
}

.btn-glass:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* =========================================
   SERVICES SECTION
========================================= */
.services {
    position: relative;
    padding: 120px 20px 80px;
    background:
        radial-gradient(circle at top, rgba(15,23,42,0.85), #020617 56%);
}

.services::before {
    content: "";
    position: absolute;
    inset-inline: 10%;
    inset-block-start: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(148,163,184,0.5),
        transparent
    );
    opacity: 0.5;
}

.services-icon img {
    width: 70px;
    display: block;
    margin: 0 auto 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards;
}

.services h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.12s;
}

.services > p {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.25s;
}

/* Animated Underline */
.services h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 16px auto 24px;
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
    animation: underlineGrow 0.7s ease forwards;
    animation-delay: 0.35s;
}

/* Keyframes */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineGrow {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Service Grid */
.service-grid-new {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    max-width: var(--container-width);
    margin: 40px auto 0;
}

@media (max-width: 900px) {
    .service-grid-new {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .service-grid-new {
        grid-template-columns: 1fr;
    }
}

/* Outer card: handles visibility + perspective */
.service-card-new {
    display: block;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
    perspective: 1200px;
}

.service-card-new.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Inner card: actual panel */
.card-inner {
    position: relative;
    background: radial-gradient(circle at 0 0, rgba(148,163,184,0.32), transparent 55%),
                var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 26px 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-soft);
    transform-style: preserve-3d;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal);
    overflow: hidden;
}

/* Glare */
.card-inner .glare {
    position: absolute;
    inset: -40%;
    pointer-events: none;
    background: radial-gradient(
        circle at center,
        rgba(255,255,255,0.28),
        transparent 60%
    );
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
}

/* Icon */
.card-inner .icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.32), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-inner .icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(8px) translateZ(28px);
    transition:
        opacity 0.6s ease-out,
        transform 0.3s ease-out,
        filter 0.3s ease-out;
}

.service-card-new.visible .card-inner .icon img {
    opacity: 1;
    transform: translateY(0) translateZ(28px);
}

.card-inner h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.card-inner p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Hover states */
.service-card-new:hover .card-inner {
    box-shadow: 0 22px 55px rgba(15,23,42,0.85);
    border-color: rgba(148,163,184,0.55);
    background: radial-gradient(circle at 0 0, rgba(148,163,184,0.45), transparent 55%),
                var(--bg-elevated-soft);
}

.service-card-new:hover .glare {
    opacity: 0.6;
}

.service-card-new:hover .card-inner .icon img {
    transform: translateY(-4px) translateZ(36px) scale(1.05);
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.9));
}

/* =========================================
   DROPDOWNS / ACCORDIONS
========================================= */
.dropdown {
    position: relative;
    margin: 18px auto;
    max-width: 900px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(15,23,42,0.82);
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 18px 45px rgba(15,23,42,0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));

    opacity: 0;
    transform: translateY(28px) scale(0.98);
    filter: blur(4px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s ease,
        box-shadow 0.7s ease;
}

.dropdown.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    box-shadow: 0 22px 55px rgba(15,23,42,0.9);
}

.dropdown-btn {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    position: relative;
    padding-right: 46px;
    opacity: 1;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-btn span {
    flex: 1;
}

.dropdown-btn .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
    opacity: 0.8;
}

.dropdown-btn:hover .arrow {
    border-color: var(--accent);
}

.dropdown.open .arrow {
    transform: translateY(-50%) rotate(225deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    background: rgba(15,23,42,0.96);
    border-top: 1px solid rgba(148,163,184,0.25);
    transition: max-height 0.35s ease;
}

.dropdown-content p,
.dropdown-content ul {
    padding: 14px 0 18px;
    font-size: 0.97rem;
    color: var(--text-muted);
}

/* =========================================
   GENERISCHE CONTENT-SECTIONS
========================================= */
.content-section {
    max-width: var(--container-width);
    margin: 70px auto;
    padding: 0 20px;
    text-align: center;
}

.value-section h2,
.team-section h2,
.strength-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
}

/* Value Grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.value-card {
    background: rgba(15,23,42,0.9);
    padding: 26px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 42px rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.35);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(15,23,42,0.95);
    border-color: var(--accent);
    background: rgba(15,23,42,0.96);
}

.value-card img {
    width: 54px;
    margin-bottom: 10px;
}

.value-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Team */
.team-section p {
    max-width: 760px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 1rem;
}

.team-images {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.team-images img {
    width: 280px;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(15,23,42,0.9);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        filter var(--transition-normal);
    filter: saturate(1.05);
}

.team-images img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 26px 70px rgba(15,23,42,1);
}

/* Strength List */
.strength-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: left;
    max-width: 720px;
}

.strength-list li {
    position: relative;
    font-size: 1rem;
    margin: 12px 0;
    padding-left: 30px;
    color: var(--text-main);
}

.strength-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.05rem;
}

/* Scroll Animation generisch */
.content-section.fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   DEVICE IMAGES
========================================= */
.device-images {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.device-images img {
    width: 32%;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(15,23,42,0.95);
    object-fit: cover;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: #020617;
    color: var(--text-muted);
    padding: 60px 20px 32px;
    margin-top: 80px;
    border-top: 1px solid rgba(31,41,55,0.9);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 8px 0;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.footer-logo img {
    width: 130px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Kontakt-Icons */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 38px;
    padding-top: 16px;
    border-top: 1px solid rgba(31,41,55,0.9);
    color: #6b7280;
    font-size: 0.82rem;
}

/* Mobile Footer */
@media (max-width: 600px) {
    .footer {
        text-align: center;
    }
}

/* =========================================
   IMPRESSUM / DATENSCHUTZ
========================================= */
.small-hero {
    background: radial-gradient(circle at top, rgba(15,23,42,0.9), #020617);
    padding: 150px 20px 70px;
    text-align: center;
}

.small-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.small-hero p {
    font-size: 1rem;
    color: var(--text-muted);
}

.impressum-text h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.impressum-text h3 {
    margin-top: 22px;
    font-size: 1.1rem;
    font-weight: 700;
}

.impressum-text p,
.datenschutz-text p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.datenschutz-text h2 {
    margin-top: 34px;
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

/* =========================================
   CONTACT PAGE
========================================= */
.contact-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-section p {
    max-width: 780px;
    margin: 0 auto 36px;
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 34px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 18px;
}

.contact-info li {
    margin: 8px 0;
    font-size: 0.98rem;
    color: var(--text-main);
}

.contact-info a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.7);
    font-size: 0.98rem;
    background: rgba(15,23,42,0.85);
    color: var(--text-main);
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(148,163,184,0.8);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(110,195,217,0.4);
    background: rgba(15,23,42,0.95);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.form-success {
    margin-top: 10px;
    color: #4ade80;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Kontakt CTA Button */
.btn-contact {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #0b1120;
    padding: 12px 26px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(56,189,248,0.4);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(56,189,248,0.7);
    filter: brightness(1.05);
}

.btn-contact:active {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(56,189,248,0.55);
}

/* Karte */
.map-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 18px;
}

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

.map-frame {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15,23,42,1);
    border: 1px solid rgba(148,163,184,0.4);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Contact / Map */
@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 24px 18px;
    }

}

/* =========================================
   BODY ANIMATED SUPPORT
========================================= */
body.animated .value-card,
body.animated .team-images img,
body.animated .strength-list li,
body.animated .content-section.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.animated .visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Utility: Visible */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
