@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary: #00ff9d;
    --primary-dark: #00cc7a;
    --dark: #0a0a0a;
    --card: rgba(20, 20, 20, 0.85);
    --text: #f0f0f0;
    --muted: #aaaaaa;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
iframe {
    max-width: 100%;
}

button,
a {
    touch-action: manipulation;
}

/* HEADER */
header {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 157, 0.25);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
}

.logo img {
    width: 86px;
    height: 52px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.5));
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #00ff9d, #7dffc5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    gap: clamp(18px, 2.2vw, 32px);
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

/* PAGE BACKGROUND */
.page-bg {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 100px;
    padding-bottom: 60px;
}

.content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO SMALL */
.hero-small {
    text-align: center;
    margin-bottom: 36px;
}

.hero-small h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 12px;
    background: linear-gradient(90deg, #00ff9d, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-small p {
    color: #ddd;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 22px;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.65);
    background: #7dffc5;
}

/* WIDGET */
.widget-container {
    background: var(--card);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 157, 0.15);
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.widget-container > div[id^="c24pp-"] {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.widget-container iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    border: 0;
}

.widget-placeholder {
    text-align: center;
    padding: 50px 20px;
}

.load-widget-btn {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 16px 42px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
}

.load-widget-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.65);
    background: #7dffc5;
}

/* HOME PAGE */
.home-hero {
    text-align: center;
    padding: 50px 20px 40px;
}

.home-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 16px;
    background: linear-gradient(90deg, #00ff9d, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero p {
    color: #ccc;
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 40px;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Auf breiten Bildschirmen: drei Kacheln oben, zwei mittig darunter. */
@media (min-width: 900px) {
    .tiles-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .tile {
        grid-column: span 2;
    }

    .tile:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .tile:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* Tablets: zwei Spalten, die letzte Kachel mittig darunter. */
@media (min-width: 769px) and (max-width: 899px) {
    .nav-container {
        padding-inline: 16px;
    }

    .logo {
        gap: 10px;
    }

    .logo img {
        width: 76px;
        height: 46px;
    }

    .logo-text {
        font-size: 20px;
    }

    nav ul {
        gap: 14px;
    }

    nav a {
        font-size: 0.84rem;
    }

    .tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tile:nth-child(5) {
        grid-column: 1 / -1;
        width: calc((100% - 28px) / 2);
        justify-self: center;
    }
}

.tile {
    background: rgba(18, 18, 18, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 157, 0.18);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
}

.tile:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 157, 0.5);
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.18);
}

.tile-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.tile h2 {
    color: var(--primary);
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.tile p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FOOTER */
footer {
    background: #050505;
    padding: 50px 24px 28px;
    border-top: 1px solid rgba(0, 255, 157, 0.15);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-content h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.footer-logo {
    display: block;
    width: 138px;
    height: 86px;
    margin: 0 0 14px;
    border: 1px solid rgba(0, 255, 157, 0.12);
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    opacity: 0.72;
    filter: saturate(0.88);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.footer-logo:hover {
    opacity: 0.95;
    filter: saturate(1);
}

.footer-content a {
    color: #999;
    text-decoration: none;
    margin-right: 18px;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    color: #555;
    font-size: 0.9rem;
}

/* IMPRESSUM */
.impressum-box {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 157, 0.12);
}

.impressum-box h1 {
    color: var(--primary);
    margin-bottom: 28px;
    font-size: 2.2rem;
}

.impressum-box h2 {
    color: #fff;
    font-size: 1.3rem;
    margin: 24px 0 12px;
}

.impressum-box p {
    color: #ccc;
    margin-bottom: 14px;
}

.impressum-box a {
    color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        position: sticky;
    }

    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 14px 12px;
        gap: 8px;
    }

    .logo {
        gap: 10px;
    }

    .logo img {
        width: 74px;
        height: 44px;
    }

    .logo-text {
        font-size: 20px;
    }

    nav {
        width: 100%;
        margin-left: 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 4px;
    }

    nav a {
        display: block;
        min-height: 32px;
        padding: 6px 2px;
        font-size: 0.86rem;
        line-height: 1.2;
    }

    .page-bg {
        padding-top: 30px;
        padding-bottom: 42px;
        background-attachment: scroll;
    }

    .content-wrap {
        padding: 0 14px;
    }

    .home-hero {
        padding: 22px 16px 28px;
    }

    .home-hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.4rem);
        line-height: 1.16;
        overflow-wrap: anywhere;
    }

    .home-hero p {
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .hero-small {
        margin-bottom: 26px;
    }

    .hero-small h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
        line-height: 1.16;
        overflow-wrap: anywhere;
    }

    .hero-small p {
        font-size: 1rem;
    }

    .cta-button {
        max-width: 100%;
        min-height: 48px;
        padding: 12px 24px;
        font-size: 1rem;
    }

    .widget-container {
        padding: 12px;
        border-radius: 14px;
    }

    .widget-placeholder {
        padding: 32px 8px;
    }

    .load-widget-btn {
        width: 100%;
        min-height: 48px;
        padding: 14px 16px;
        font-size: 1rem;
    }

    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 14px 48px;
    }

    .tile {
        min-height: 0;
        padding: 28px 20px;
    }

    .tile-icon {
        margin-bottom: 10px;
    }

    .impressum-box {
        padding: 28px 18px;
        border-radius: 14px;
        overflow-wrap: anywhere;
    }

    .impressum-box h1 {
        margin-bottom: 22px;
        font-size: 1.8rem;
    }

    .impressum-box h2 {
        font-size: 1.12rem;
    }

    .legal-notice {
        padding: 14px 12px;
    }

    footer {
        padding: 36px 18px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 22px;
    }

    .copyright {
        margin-top: 28px;
    }
}

@media (max-width: 420px) {
    .nav-container {
        padding-inline: 10px;
    }

    .logo-text {
        font-size: 19px;
    }

    nav ul {
        gap: 2px;
    }

    nav a {
        font-size: 0.8rem;
    }

    .home-hero h1 {
        font-size: clamp(1.7rem, 8.7vw, 2.05rem);
    }

    .hero-small h1 {
        font-size: clamp(1.7rem, 8.5vw, 2.1rem);
    }
}

@media (hover: none) {
    .tile:hover,
    .cta-button:hover,
    .load-widget-btn:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Legal / Powered by */
.legal-notice {
    margin-top: 18px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.12);
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.5;
}

.legal-notice strong {
    color: var(--primary);
    font-weight: 600;
}

.legal-notice a {
    color: var(--primary);
}

@media (max-width: 768px) {
    .legal-notice {
        padding: 14px 12px;
    }
}
