/* styles.css */
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    text-wrap: pretty;
}

::selection {
    background: var(--positive);
    color: var(--negative);
}

.btn,
.input {
    border-top-left-radius: 15px 24px;
    border-bottom-right-radius: 15px 24px;
    corner-shape: bevel;
    transition: border-radius 0.2s;
}

.color-wrapper {
    border-top-left-radius: 5px 8px;
    border-bottom-right-radius: 5px 8px;
    corner-shape: bevel;
    transition: border-radius 0.2s;
}

.btn:hover {
    border-top-left-radius: 0px 0px;
    border-bottom-right-radius: 0px 0px;
    border-top-right-radius: 15px 24px;
    border-bottom-left-radius: 15px 24px;
}

.striped-spacer,
.about-spacer {
    background: repeating-linear-gradient(45deg,
            #cebebe 0 1px,
            transparent 1px 14px);
}

.banner-inner-wrapper {
    opacity: 0;
    transform: translateX(-20px);
    animation: bannerFadeSlideIn 1s ease-out forwards;
}

@keyframes bannerFadeSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Code Banner: Floating Windows ── */
.code-banner-container {
    position: relative;
    width: 166%;
    margin-left: -33%;
    height: 320px;
    margin-top: 32px;
    overflow: hidden;
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    background: #d8d4ce;    /* minimal dunkler als Seiten-BG #e8e4df */
}

.code-win {
    position: absolute;
    width: 240px;
    background: var(--win-bg, #1e1e2e);
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.45);
    transform: translate(-50%, -50%) scale(0.7);
    will-change: transform;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.07);
    /* z-index wird per JS gesetzt */
}

.code-win-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--win-title-bg, #16161e);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-filename {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    flex: 1;
}

.code-wm-btns {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.code-wm-btns i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 14px;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.1);
}

.code-win-body {
    padding: 8px 10px;
    margin: 0;
    font-family: "DM Mono", monospace;
    font-size: 9.5px;
    line-height: 1.5;
    color: var(--win-text, #a9b1d6);
    white-space: pre;
    overflow: hidden;
    max-height: 155px;
}

@media (max-width: 767px) {
    .code-banner-container { height: 130px; }
    .code-win { width: 180px; }
    .code-win-body { font-size: 7.5px; max-height: 100px; }
}

.rich-text figcaption,
.rich-text blockquote {
    font-size: 14px;
    line-height: 1.5em;
    border: none;
    padding: 0;
    text-align: center;
    font-style: italic;
}

@media (max-width: 991px) {
    .news-posts-wrapper .w-dyn-item:first-child .news-post-link-block {
        border-top: none;
    }
}

@media (min-width: 992px) {
    .news-posts-wrapper.with-2::after {
        content: "";
        display: block;
        background: repeating-linear-gradient(45deg,
                #cebebe 0 1px,
                transparent 1px 14px);
    }
}

/* ── Variables ── */
:root {
    --negative: #e8e4df;
    --positive: #262c35;
    --positive-bold: #12151a;
    --positive-muted: #4c5159;
    --negative-muted: #cebebe;
    --accent: #d1aa3a;
    --accent-glow: rgba(209, 170, 58, 0.4);
}

/* ── Base Styles ── */
body {
    background-color: var(--negative);
    color: var(--positive);
    font-family: "Rethink Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5em;
    width: 100%;
    overflow-x: hidden;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section ── */
.section {
    padding: 48px 0;
    border-bottom: 1px solid var(--positive);
}

/* ── Section Headlines: dezenter Gold-Akzent ── */
.services-wrapper > h2,
.projekte-wrapper > h2,
.kontakt-wrapper > h2 {
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}

/* ── Navigation ── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 90px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-family: "DM Mono", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--positive-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--positive);
}

/* ── Hero Section ── */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 0;
}

.hero-intro-wrapper {
    max-width: 500px;
}

.hero-stats-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.icon-and-text-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-wrapper {
    background-color: var(--negative-muted);
    padding: 8px;
    border-radius: 5px 8px;
}

.sm-icon {
    width: 24px;
    height: 24px;
}

.mono {
    font-family: "DM Mono", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--positive-muted);
}

.pipe {
    width: 1px;
    height: 24px;
    background-color: var(--positive);
    opacity: 0.3;
}

/* ── Buttons ── */
.btn-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: "DM Mono", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--negative);
    background-color: var(--positive);
    border: none;
    border-radius: 15px 24px;
    text-decoration: none;
    transition: border-radius 0.2s, background-color 0.2s;
}

.btn:hover {
    border-radius: 0px 0px;
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn.outline {
    background-color: transparent;
    color: var(--positive);
    border: 1px solid var(--positive);
}

.btn.outline:hover {
    background-color: var(--positive);
    color: var(--negative);
}

/* ── Einleitung Section ── */
.einleitung-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 24px 0;
}

.einleitung-wrapper h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--positive);
}

.einleitung-wrapper p {
    font-size: 18px;
    line-height: 1.6em;
    color: var(--positive-muted);
}

.einleitung-wrapper p + p {
    margin-top: 16px;
}

.einleitung-accent {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 28px;
    border-left: 3px solid var(--accent);
    background: linear-gradient(90deg, rgba(209,170,58,0.07) 0%, transparent 100%);
    font-family: "DM Mono", sans-serif;
    font-size: 14px;
    line-height: 1.6em;
    color: var(--positive);
    text-align: left;
}

/* ── Services Section ── */
.services-wrapper {
    padding: 48px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.service-card {
    background-color: var(--negative-muted);
    padding: 24px;
    border-radius: 5px 8px;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-left: 4px solid var(--accent);
    box-shadow: 0 8px 20px rgba(209, 170, 58, 0.15);
}

.service-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    color: var(--positive);
    transition: color 0.2s;
}

.service-card:hover .service-icon {
    color: var(--accent);
}

.service-card h3 {
    font-family: "Rethink Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--positive);
    letter-spacing: -0.01em;
    line-height: 1.4em;
    margin-bottom: 8px;
}

.service-card p {
    font-family: "DM Mono", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--positive-muted);
}

/* ── Projekte Section ── */
.projekte-wrapper {
    padding: 48px 0;
}

.projekte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.projekt-card {
    background-color: var(--negative-muted);
    padding: 24px;
    border-radius: 5px 8px;
    transition: transform 0.2s;
}

.projekt-card:hover {
    transform: translateY(-4px);
    border-left: 4px solid var(--accent);
    box-shadow: 0 8px 20px rgba(209, 170, 58, 0.15);
}

.projekt-card h3 {
    font-family: "Rethink Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--positive);
    letter-spacing: -0.01em;
    line-height: 1.4em;
    margin-bottom: 8px;
}

.projekt-card p {
    font-family: "DM Mono", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--positive-muted);
}

/* ── Kontakt Section ── */
.kontakt-wrapper {
    padding: 48px 0;
}

.kontakt-formular {
    max-width: 600px;
    margin-top: 24px;
}

.inputs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input {
    width: 100%;
    padding: 12px 16px;
    font-family: "DM Mono", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--positive);
    background-color: var(--negative);
    border: 1px solid var(--positive);
    border-radius: 15px 24px;
    outline: none;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.success-message,
.error-message {
    display: none;
    padding: 16px;
    margin-top: 16px;
    border-radius: 5px 8px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
}

/* ── Impressum Section ── */
.impressum-wrapper {
    padding: 48px 0;
}

.impressum-content {
    max-width: 600px;
    margin-top: 24px;
}

.impressum-content p {
    font-family: "DM Mono", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--positive-muted);
    margin-bottom: 8px;
}

/* ── Footer ── */
.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

.footer-wrapper .nav-logo img {
    height: 48px;
}

.small {
    font-family: "DM Mono", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--positive-muted);
}

/* ── Responsive Design ── */
@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 24px 0;
    }

    .nav {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-wrapper {
        padding: 24px 0;
    }

    .hero-stats-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .services-grid,
    .projekte-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .einleitung-accent {
        padding: 10px 16px;
    }
}