/* ============================================================
   Tausend24 — Horizontal Scroll Theme (Ethereal-inspired)
   ============================================================ */

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

:root {
    --green:   #8BD600;
    --blue:    #00BFFF;
    --orange:  #FFA500;
    --bg:      #242830;
    --bg-dark: #1a1d24;
    --text:    #e6e6e6;
    --dim:     #8a8a96;
    --font:    'Segoe UI', 'Source Sans Pro', system-ui, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text);
    text-decoration: none;
}

/* ============================================================
   Horizontal Scroll Container
   ============================================================ */

#page-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#page-wrapper::-webkit-scrollbar {
    display: none;
}

#page-wrapper.is-dragging {
    cursor: grabbing !important;
    user-select: none;
}

#wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: stretch;
}

/* ============================================================
   Base Panel
   ============================================================ */

.panel {
    flex: 0 0 100vw;
    height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

/* ============================================================
   Panel 1: Banner
   ============================================================ */

.panel.banner {
    background: var(--bg);
    flex-direction: row;
}

.panel.banner .intro {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 5rem 4rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg) 100%);
    position: relative;
    z-index: 1;
}

.panel.banner .intro .logo {
    margin-bottom: 1.5rem;
}

.panel.banner .intro .logo img {
    width: 56px;
    height: 56px;
}

.panel.banner .intro h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.panel.banner .intro .slogan {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--dim);
    margin-bottom: 3rem;
}

.panel.banner .nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.panel.banner .nav-links li a {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(230,230,230,0.18);
    border-radius: 2rem;
    font-size: 0.88rem;
    color: var(--dim);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.panel.banner .nav-links li a:hover {
    border-color: rgba(230,230,230,0.55);
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.panel.banner .portrait {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.panel.banner .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(20%) brightness(0.85);
    display: block;
}

.panel.banner .portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, rgba(36,40,48,0.5) 35%, transparent 70%);
    pointer-events: none;
}

/* ============================================================
   Spotlight Panels (Linux, Webseiten, Mehr)
   ============================================================ */

.panel.spotlight {
    background: var(--bg-dark);
    justify-content: center;
    align-items: center;
}

.panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.panel.spotlight .content {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    padding: 4rem 5rem;
    text-align: center;
}

.panel.spotlight h2 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
}

.accent-green  { color: var(--green); }
.accent-blue   { color: var(--blue); }
.accent-orange { color: var(--orange); }

.panel.spotlight blockquote {
    margin-bottom: 0.75rem;
}

.panel.spotlight blockquote p {
    font-size: 1.3rem;
    line-height: 1.65;
    font-style: italic;
    color: var(--text);
}

.panel.spotlight blockquote cite {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--dim);
    font-style: normal;
}

.panel.spotlight .description {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--dim);
    margin-top: 2rem;
}

.panel.green-accent  { border-left: 3px solid var(--green); }
.panel.blue-accent   { border-left: 3px solid var(--blue); }
.panel.orange-accent { border-left: 3px solid var(--orange); }

/* ============================================================
   Kontakt Panel
   ============================================================ */

.panel.kontakt {
    background: var(--bg-dark);
    flex-direction: row;
}

.panel.kontakt .portrait {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.panel.kontakt .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(30%) brightness(0.8);
    display: block;
}

.panel.kontakt .portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 55%, var(--bg-dark) 100%);
    pointer-events: none;
}

.panel.kontakt .contact-info {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem 3rem 3rem;
}

.panel.kontakt h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

.panel.kontakt address {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--dim);
    margin-bottom: 1.5rem;
}

.panel.kontakt .contact-links {
    font-size: 1rem;
    line-height: 2;
    color: var(--dim);
    margin-bottom: 2rem;
}

.panel.kontakt .contact-links a {
    color: var(--text);
    transition: opacity 0.2s;
}

.panel.kontakt .contact-links a:hover {
    opacity: 0.65;
}

.panel.kontakt .site-footer {
    margin-top: auto;
    padding-top: 2.5rem;
    font-size: 0.82rem;
    color: rgba(230,230,230,0.22);
    line-height: 1.8;
}

.panel.kontakt .site-footer a {
    color: rgba(230,230,230,0.35);
    transition: color 0.2s;
}

.panel.kontakt .site-footer a:hover {
    color: rgba(230,230,230,0.65);
}

/* ============================================================
   Navigation Dots
   ============================================================ */

#nav-dots {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
    z-index: 200;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
}

.nav-dot.active {
    background: rgba(255,255,255,0.75);
    transform: scale(1.5);
}

/* ============================================================
   Scroll Hint Arrow
   ============================================================ */

#scroll-hint {
    position: fixed;
    bottom: 1.6rem;
    right: 2.5rem;
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s;
    z-index: 200;
}

#scroll-hint.hidden {
    opacity: 0;
}

/* ============================================================
   Sub-pages (Impressum, Datenschutz)
   ============================================================ */

body.subpage {
    overflow: auto;
    height: auto;
    min-height: 100%;
}

.subpage-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

.subpage-header {
    padding: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0.5rem;
}

.subpage-header .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.subpage-header .brand img {
    width: 24px;
    height: 24px;
}

.subpage-nav {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.subpage-nav a {
    font-size: 0.88rem;
    color: var(--dim);
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    transition: color 0.2s, background 0.2s;
}

.subpage-nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.subpage-content {
    flex: 1;
    padding: 3rem 0 4rem;
}

.subpage-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

.subpage-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.subpage-content p,
.subpage-content address {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--dim);
    font-style: normal;
    margin-bottom: 1rem;
}

.subpage-content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.subpage-content a:hover {
    opacity: 0.8;
}

.subpage-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--dim);
    font-size: 0.97rem;
    line-height: 1.8;
}

.subpage-footer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.82rem;
    color: rgba(230,230,230,0.25);
    text-align: center;
}

/* ============================================================
   Responsive — Mobile (<= 768px): vertical layout
   ============================================================ */

@media (max-width: 768px) {
    html, body {
        overflow: auto;
        height: auto;
    }

    #page-wrapper {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }

    #wrapper {
        flex-direction: column;
        height: auto;
    }

    .panel {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 100svh;
    }

    .panel.banner {
        flex-direction: column;
    }

    .panel.banner .intro {
        flex: none;
        width: 100%;
        padding: 3rem 1.75rem 2.5rem;
    }

    .panel.banner .intro h1 {
        font-size: 2.4rem;
    }

    .panel.banner .portrait {
        flex: none;
        width: 100%;
        height: 55vw;
        max-height: 380px;
    }

    .panel.banner .portrait::after {
        background: linear-gradient(to bottom, var(--bg) 0%, transparent 25%);
    }

    .panel.spotlight .content {
        padding: 3rem 1.75rem;
    }

    .panel.spotlight h2 {
        font-size: 2.8rem;
    }

    .panel.kontakt {
        flex-direction: column;
    }

    .panel.kontakt .portrait {
        flex: none;
        width: 100%;
        height: 55vw;
        max-height: 380px;
    }

    .panel.kontakt .portrait::after {
        background: linear-gradient(to bottom, transparent 55%, var(--bg-dark) 100%);
    }

    .panel.kontakt .contact-info {
        flex: none;
        width: 100%;
        padding: 3rem 1.75rem 2.5rem;
    }

    #nav-dots,
    #scroll-hint {
        display: none;
    }
}
