/* ==============================
   CSS Custom Properties
   ============================== */
:root {
    --dark:   #1B2A3B;
    --mid:    #253547;
    --panel:  #2E4055;
    --red:    #9D0B0E;
    --light:  #EDF4FA;
    --muted:  #8AAAC0;
    --white:  #ffffff;
    --bg:     #F0F4F8;
    --text:   #1C2A38;
    --border: rgba(0,40,80,0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ==============================
   CUSTOM CURSOR
   ============================== */
body.custom-cursor,
body.custom-cursor * { cursor: none !important; }

#cursor-dot,
#cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

#cursor-dot {
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50% !important;
}

#cursor-ring {
    width: 30px; height: 30px;
    border: 2px solid var(--red);
    border-radius: 50% !important;
    opacity: 0.6;
    transition: width 0.2s, height 0.2s, opacity 0.2s, border-color 0.15s;
}

/* Weißer Kreis im Hero-Bereich oder über roten Buttons */
#cursor-ring.cursor-white { border-color: var(--white); opacity: 0.85; }
#cursor-dot.cursor-white  { background: var(--white); }

/* Pulsieren bei Hover auf klickbare Elemente */
#cursor-dot.is-hovering {
    animation: cursorPulse 0.7s ease-in-out infinite;
}
#cursor-ring.is-hovering {
    width: 42px; height: 42px;
    opacity: 0.4;
}
#cursor-ring.cursor-white.is-hovering { opacity: 0.7; }

@keyframes cursorPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
    50%       { transform: translate(-50%, -50%) scale(1.9); opacity: 0.5; }
}

/* ==============================
   GLOBAL OVERRIDES — kein Schnickschnack
   ============================== */
*, *::before, *::after {
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* Ausnahme: Animationen die box-shadow brauchen, werden direkt gesetzt */

body {
    font-family: "DM Sans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--red); }

ul { margin: 0.5em 0; padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

p { margin: 0.5em 0 0.9em; line-height: 1.75; }

h1, h2, h3, h4 {
    font-family: "Bebas Neue", Arial, sans-serif;
    letter-spacing: 0.03em;
}

h1 { font-size: 2.2rem; color: var(--dark); margin: 0 0 0.3em; }
h2 { font-size: 1.5rem; color: var(--dark); margin: 0 0 0.5em; font-family: "DM Sans", Arial, sans-serif; font-weight: 300; font-size: 1rem; color: var(--muted); }
h3 { font-size: 1.6rem; color: var(--dark); margin: 1.5rem 0 0.4rem; }
h4 { font-size: 1.2rem; color: var(--muted); margin: 0.5rem 0; font-family: "DM Sans", Arial, sans-serif; font-weight: 300; }

/* ==============================
   NAVBAR
   ============================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    background: var(--white);
    padding: 0.5rem 0;
    border-bottom: 4px solid var(--red);
}

#navbar.scrolled {
    background: var(--white);
    border-bottom: 4px solid var(--red);
}

.navbar-logo { height: 80px; width: auto; }
#navbar.scrolled .navbar-logo { height: 65px; }

@media (max-width: 991px) {
    .navbar-logo { height: 48px; }
    #navbar.scrolled .navbar-logo { height: 42px; }
}

.nav-link {
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red) !important;
    padding: 0.5rem 1rem !important;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}
.nav-link:hover,
.nav-link.active {
    color: var(--red) !important;
    border-color: var(--red) !important;
    text-decoration: none;
}
.nav-link.scrollspy-active {
    border-bottom-color: var(--red) !important;
}

.btn-nav {
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
    color: var(--red) !important;
    border: 2px solid var(--red);
    padding: 0.5rem 1.3rem;
    transition: background 0.15s, color 0.15s;
}
.btn-nav:hover {
    background: var(--red);
    color: var(--white) !important;
    text-decoration: none;
}

/* Dropdown */
.dropdown-menu {
    background: var(--white);
    border: 2px solid var(--red);
    min-width: 200px;
    padding: 0;
}
.dropdown-item {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark);
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background 0.15s, color 0.15s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--red);
    color: var(--white);
}
.dropdown-divider { display: none; }

/* ==============================
   PAGE BANNER (inner pages)
   ============================== */
#page-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
    color: var(--light);
    padding: 5.5rem 0 2rem;
    border-bottom: 3px solid var(--red);
}

.page-banner-crumb {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.page-banner-crumb a { color: var(--muted); transition: color 0.2s; }
.page-banner-crumb a:hover { color: var(--light); text-decoration: none; }
.page-banner-crumb .sep { margin: 0 0.4rem; opacity: 0.5; }

/* ==============================
   MAIN CONTENT + PAGE CONTAINER
   ============================== */
#page-content {
    min-height: 50vh;
}

.page-container {
    background: var(--white);
    max-width: 960px;
    margin: 0 auto;
    padding: 6rem 2.5rem 4rem;
    border-left: 4px solid var(--red);
    border-right: 4px solid var(--red);
}

/* Page heading (within .page-container) */
.page-heading {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--red);
}
.page-heading h1 { margin: 0; }
.page-heading h2 {
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted);
    margin: 0.3rem 0 0;
    letter-spacing: 0;
}

/* ==============================
   HOMEPAGE HERO
   ============================== */
#hero {
    min-height: 82vh;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, #0A2A4A 0%, #04090F 70%);
    display: flex;
    align-items: center;
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(7,20,36,0.60) 0%,
        rgba(4,9,15,0.30) 50%,
        rgba(7,20,36,0.60) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-photo {
    position: absolute;
    z-index: 2;
    opacity: 0.32;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.5s ease, box-shadow 0.4s ease;
    pointer-events: all;
    will-change: transform;
}
.hero-photo img {
    width: 100%;
    display: block;
    border-radius: 6px;
}
.hero-photo:hover,
.hero-photo.is-hovered {
    opacity: 0.95;
    z-index: 4;
    cursor: grab;
}
.hero-photo.is-hovered {
    box-shadow: 0 0 0 3px var(--red);
}
.hero-photo.is-hovered:active {
    cursor: grabbing;
}

@keyframes heroFloat1 {
    0%,100% { transform: translateY(0)     rotate(-2deg); }
    50%      { transform: translateY(-28px) rotate(2deg); }
}
@keyframes heroFloat2 {
    0%,100% { transform: translateY(0)    rotate(2deg); }
    50%      { transform: translateY(24px) rotate(-1.5deg); }
}
@keyframes heroFloat3 {
    0%,100% { transform: translateX(0)    rotate(1deg); }
    50%      { transform: translateX(-22px) rotate(-2deg); }
}

.hero-tag {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #EDF4FA;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.hero-tag::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--red);
    display: block;
    flex-shrink: 0;
}
.hero-tag span { color: var(--red); }

.hero-headline {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    line-height: 0.93;
    letter-spacing: 0.01em;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.hero-red { color: var(--red); }

.hero-headline em {
    font-style: normal;
    color: var(--red);
}

.hero-brand-line {
    font-family: "DM Sans", Arial, sans-serif;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
    background: var(--red);
    display: inline-block;
    padding: 0.1rem 0.45rem;
    margin: 0.4rem 0 0.5rem;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(237,244,250,0.6);
    max-width: 420px;
    font-weight: 300;
    margin-bottom: 2rem;
}

.btn-hero {
    display: inline-block;
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
    padding: 0.85rem 2rem;
    transition: background 0.15s, color 0.15s;
}
.btn-hero:hover {
    background: var(--red);
    color: var(--white);
    text-decoration: none;
}

/* Hero stats block (rechte Spalte, nebeneinander, auf Höhe Button) */
.hero-stats-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-left: -2rem;
}

/* Hero stats */
.hero-stat { text-align: left; }
.hero-stat-value {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.4rem;
    color: var(--white);
    line-height: 1;
    display: block;
    text-align: center;
}
.hero-stat-value span { color: var(--red); }
.hero-stat-label {
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--muted);
    display: block;
    text-align: center;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    font-family: "Space Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(237,244,250,0.25);
    z-index: 3;
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,100% { transform: scaleY(1); opacity: 1; }
    50%      { transform: scaleY(0.25); opacity: 0.2; }
}

/* ==============================
   SLOGAN BLOCK
   ============================== */
.slogan-block {
    background: var(--red);
    padding: 0.55rem 0;
    border-top: 2px solid rgba(255,255,255,0.45);
    border-bottom: 4px solid var(--white);
}
.slogan-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.slogan-brand {
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
}
.slogan-text {
    font-family: "DM Sans", Arial, sans-serif;
    font-size: clamp(0.78rem, 1.5vw, 0.92rem);
    font-weight: 500;
    font-style: normal;
    color: var(--white);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

/* ==============================
   MARQUEE
   ============================== */
.marquee-wrapper {
    background: var(--white);
    border-bottom: 4px solid var(--red);
    padding: 0.85rem 0;
    overflow: hidden;
}
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}
.marquee-item {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--red);
    padding: 0 2rem;
    flex-shrink: 0;
}
.marquee-dot { color: var(--red); padding: 0 0.3rem; }
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==============================
   SECTIONS (one-page layout)
   ============================== */
.section {
    padding: 7rem 0;
}
.section-dark {
    background: var(--dark);
    color: var(--light);
}
.section-mid {
    background: var(--mid);
    color: var(--light);
    border-top: 1px solid rgba(157,11,14,0.2);
}
.section-light {
    background: var(--bg);
    color: var(--text);
}

.section-label {
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.section-label::after {
    content: "";
    width: 55px;
    height: 1px;
    background: linear-gradient(90deg, var(--red), transparent);
    display: block;
}

.section-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin-bottom: 3rem;
}
.section-dark  .section-title,
.section-mid   .section-title { color: var(--white); }
.section-light .section-title { color: var(--dark);  }

.section-dark h3,
.section-mid  h3 {
    color: var(--white);
    border-bottom: 1px solid rgba(157,11,14,0.3);
    padding-bottom: 0.4rem;
    margin-top: 2rem;
}
.section-dark h4,
.section-mid  h4 { color: var(--muted); font-family: "DM Sans", Arial, sans-serif; font-size: 0.9rem; font-weight: 500; }

/* Legal pages (Impressum, Datenschutz) */
.legal-section {
    padding-top: 7rem;
    padding-bottom: 5rem;
}
.legal-content { max-width: 720px; }
.legal-content p  { color: rgba(237,244,250,0.65); font-size: 0.95rem; margin-bottom: 0.9rem; }
.legal-content ul { color: rgba(237,244,250,0.65); font-size: 0.95rem; padding-left: 1.4em; }
.legal-content li { margin-bottom: 0.3em; }
.legal-content a  { color: var(--red); }
.legal-content a:hover { color: var(--light); }
.legal-content strong { color: var(--white); }

/* ==============================
   SERVICE CARDS
   ============================== */
.service-card {
    border: 2px solid rgba(0,0,0,0.12);
    border-top: 4px solid var(--red);
    padding: 2rem;
    background: var(--white);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s;
}
.service-card::after { display: none; }
.service-card:hover {
    border-color: var(--red);
    border-top-color: var(--red);
}

.service-num {
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 1rem;
    opacity: 0.7;
}
.service-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--red);
}
.service-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.55rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.service-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.2rem;
}
.service-link {
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    display: inline-block;
    transition: gap 0.2s;
}
.service-link::after { content: " →"; }
.service-link:hover { text-decoration: none; color: var(--dark); }

/* ==============================
   ÜBER UNS STATS
   ============================== */
.stat-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(157,11,14,0.15);
}
.stat-value {
    font-family: "Bebas Neue", sans-serif;
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1;
    display: block;
}
.stat-value span { color: var(--red); }
.stat-label {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}
.section-dark p {
    color: rgba(237,244,250,0.65);
    font-weight: 300;
}
.ueber-img {
    max-width: 100%;
    height: auto;
    border-left: 4px solid var(--red);
    opacity: 0.9;
}

/* ==============================
   PROZESS STEPS
   ============================== */
.process-step {
    padding: 2rem 0;
    border-top: 1px solid rgba(157,11,14,0.15);
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.step-num {
    font-family: "Bebas Neue", sans-serif;
    font-size: 3.8rem;
    line-height: 1;
    color: var(--red);
}
.step-content {
    border-left: 1px solid var(--white);
    padding-left: 1rem;
}

.step-content h4 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    color: var(--white);
    font-weight: normal;
}
.step-content p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

/* ==============================
   KONTAKT SEKTION (homepage)
   ============================== */
.contact-big {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.2rem, 2.8vw, 2rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
    margin: 1rem 0;
}
.contact-big a {
    color: var(--white);
    border: 2px solid transparent;
    padding: 0.15rem 0.5rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.contact-big a:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    text-decoration: none;
}
.contact-label {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

/* ==============================
   FADE-UP ANIMATION
   ============================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   WIRRWARR SECTION (homepage)
   ============================== */
.wirrarr-section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 1.5rem 0;
}
.wirrarr-section img {
    flex-shrink: 0;
    max-width: 190px;
    height: auto;
}
.wirrarr-text { flex: 1; }
.wirrarr-text h3 { margin-top: 0; }

/* ==============================
   CTA LINK
   ============================== */
.cta-link {
    display: inline-block;
    margin-top: 1rem;
    background: var(--red);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.15s;
}
.cta-link:hover {
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
}

/* ==============================
   SEO PRICING TABLE
   ============================== */
.seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1.5rem 0;
}
.seo-table th {
    background: var(--dark);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.seo-table td {
    border: 1px solid var(--border);
    padding: 1rem;
    vertical-align: top;
}
.seo-price {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--red);
    text-align: center;
    display: block;
    padding: 0.5rem 0 1rem;
}
.seo-table ul { padding-left: 1.2em; }
.seo-table li { padding: 2px 0; }

/* ==============================
   CONTACT FORM
   ============================== */
.contact-form fieldset {
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-form legend {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.4rem;
    color: var(--dark);
    padding: 0 0.5rem;
    letter-spacing: 1px;
}
.field-wrap { margin-bottom: 1.2rem; }
.field-wrap label {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.field-wrap input[type="text"],
.field-wrap input[type="email"],
.field-wrap textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: 0.6rem 0;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s;
    outline: none;
}
.field-wrap input:focus,
.field-wrap textarea:focus { border-color: var(--red); }
.field-wrap textarea { resize: vertical; height: 120px; }

.mandatory { color: var(--red); }

.btn-submit {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
    padding: 0.75rem 2rem;
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-submit:hover { background: var(--red); color: var(--white); }

.msg-success {
    background: #d4edda; border: 1px solid #c3e6cb;
    color: #155724; padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.msg-error {
    background: #f8d7da; border: 1px solid #f5c6cb;
    color: #721c24; padding: 1rem 1.25rem; margin-bottom: 1rem;
}

/* ==============================
   PHONE CTA
   ============================== */
.phone-cta {
    background: var(--dark);
    color: var(--light);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--red);
}
.phone-cta h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: normal;
    margin: 0 0 0.5rem;
    letter-spacing: 1px;
}
.phone-cta p { color: rgba(237,244,250,0.7); margin: 0; }
.phone-number { color: var(--red); font-weight: bold; font-size: 1.1em; }

/* ==============================
   TECH LIST
   ============================== */
.tech-list { columns: 2; column-gap: 2rem; }
.product-list li { padding: 3px 0; }

/* ==============================
   BACK TO TOP
   ============================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1020;
    width: 44px;
    height: 44px;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.15s;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background: transparent;
    color: var(--red);
}

/* ==============================
   FOOTER
   ============================== */
#footer {
    background: var(--white);
    border-top: 2px solid var(--red);
    color: var(--text);
    padding: 2.5rem 0;
}
#footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-logo { height: 42px; width: auto; opacity: 0.75; }
#footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
#footer-links a {
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    border: 2px solid transparent;
    padding: 0.3rem 0.6rem;
    transition: border-color 0.15s, color 0.15s;
    text-decoration: none;
}
#footer-links a:hover {
    color: var(--red);
    border-color: var(--red);
    text-decoration: none;
}

#footer-tags {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}
#footer-tags a {
    font-family: "Space Mono", monospace;
    font-size: 0.52rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
#footer-tags a:hover {
    color: var(--red);
    border-color: var(--red);
    text-decoration: none;
}

#footer-copy {
    font-family: "Space Mono", monospace;
    font-size: 0.57rem;
    letter-spacing: 1px;
    text-align: center;
    color: var(--muted);
}

/* ==============================
   SERVICE OVERLAY
   ============================== */
.service-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4,9,15,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.service-overlay.active { opacity: 1; visibility: visible; }
.service-overlay.active .service-overlay-panel { transform: translateY(0); }

.service-overlay-panel {
    position: relative;
    width: min(820px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--dark);
    transform: translateY(18px);
    transition: transform 0.45s ease;
    border: 2px solid var(--red);
    border-top: 4px solid var(--red);
    padding: 3rem 3rem 3rem 3.5rem;
    transition: transform 0.2s;
    scrollbar-width: thin;
    scrollbar-color: var(--red) transparent;
}
.service-overlay-panel::-webkit-scrollbar { width: 3px; }
.service-overlay-panel::-webkit-scrollbar-thumb { background: var(--red); }

.overlay-close {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    background: transparent;
    border: 2px solid var(--red);
    color: var(--muted);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
    transition: background 0.15s, color 0.15s;
    z-index: 1;
}
.overlay-close:hover { background: var(--red); color: var(--white); }

.overlay-service-num {
    font-family: "Space Mono", monospace;
    font-size: 0.6rem; letter-spacing: 3px;
    color: var(--red); opacity: 0.7;
    margin-bottom: 0.5rem;
}
.overlay-service-icon {
    font-size: 2.8rem; color: var(--red);
    display: block; margin-bottom: 0.6rem;
}
.overlay-service-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2rem,5vw,3.5rem);
    color: var(--white); letter-spacing: 0.02em;
    line-height: 1; margin: 0 0 1.25rem;
}
.overlay-divider {
    width: 55px; height: 3px;
    background: var(--red); margin-bottom: 2rem;
}
.overlay-body { color: rgba(237,244,250,0.68); font-size: 0.95rem; line-height: 1.8; }
.overlay-body .page-heading { display: none; }
.overlay-body h3 {
    color: var(--white); font-family: "Bebas Neue", sans-serif;
    font-size: 1.35rem; letter-spacing: 0.5px;
    margin: 1.5rem 0 0.4rem; border: none; padding: 0;
}
.overlay-body p  { color: rgba(237,244,250,0.65); margin-bottom: 0.85rem; }
.overlay-body ul { color: rgba(237,244,250,0.65); padding-left: 1.4em; margin-bottom: 1rem; }
.overlay-body li { margin-bottom: 0.3em; }
.overlay-body strong { color: rgba(237,244,250,0.85); }
.overlay-body .cta-link {
    background: transparent; color: var(--red);
    border: 1.5px solid var(--red); padding: 0.65rem 1.5rem;
    font-family: "Space Mono", monospace; font-size: 0.65rem;
    letter-spacing: 2px; text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
}
.overlay-body .cta-link:hover { background: var(--red); color: var(--white); text-decoration: none; }

.overlay-loading {
    display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
    padding: 4rem 0; color: var(--muted);
    font-family: "Space Mono", monospace;
    font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase;
}
.overlay-scanner {
    width: 220px; height: 1px;
    position: relative; background: rgba(157,11,14,0.15); overflow: hidden;
}
.overlay-scanner::after {
    content: "";
    position: absolute; top: 0; left: -60px;
    width: 60px; height: 100%;
    background: var(--red);
    animation: scanLine 1.1s ease-in-out infinite;
}
@keyframes scanLine { 0% { left: -60px; } 100% { left: 220px; } }

.service-card[data-service-url] { cursor: pointer; }

/* ==============================
   KONTAKT OVERLAY — weißes Panel
   ============================== */
#contactOverlay,
#pageOverlay {
    background: rgba(4,9,15,0.72);
}
#contactOverlay .service-overlay-panel,
#pageOverlay .service-overlay-panel {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(6px);
    border-color: var(--red);
}
#contactOverlay .overlay-close,
#pageOverlay .overlay-close {
    color: var(--text);
}
#contactOverlay .overlay-service-num,
#pageOverlay .overlay-service-num {
    opacity: 1;
}
#contactOverlay .overlay-service-title {
    color: var(--red);
}
#pageOverlay .overlay-service-title {
    color: var(--red);
}
#contactOverlay .overlay-divider,
#pageOverlay .overlay-divider {
    background: var(--red);
}
#pageOverlay .overlay-body h3   { color: var(--text); }
#pageOverlay .overlay-body p,
#pageOverlay .overlay-body ul,
#pageOverlay .overlay-body li   { color: var(--text); }
#pageOverlay .overlay-body strong { color: var(--dark); }

/* ==============================
   KONTAKT OVERLAY FORM
   ============================== */
.co-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}
.co-field { margin-bottom: 1.5rem; }
.co-field--full { grid-column: 1 / -1; }

.co-field label {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0;
}
.co-field input,
.co-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,40,80,0.35);
    padding: 0.5rem 0;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}
.co-field input:focus,
.co-field textarea:focus,
.co-field select:focus { border-color: var(--dark); outline: none; }

.co-field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,40,80,0.35);
    padding: 0.5rem 0;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239D0B0E' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
}
.co-field textarea { resize: vertical; min-height: 110px; }

.co-captcha-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.co-captcha-q {
    font-family: "Space Mono", monospace;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
}
.co-captcha-wrap input {
    max-width: 90px;
}

.co-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.co-hint {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--red);
}

.co-msg {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.co-msg--success { border-left: 4px solid #4caf50; padding-left: 1rem; color: #2e7d32; background: rgba(76,175,80,0.08); }
.co-msg--error   { color: var(--white); font-weight: 700; background: var(--red); border: none; padding: 0.6rem 1rem; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .page-container { padding: 1.5rem 1rem 3rem; }
    .wirrarr-section { flex-direction: column; }
    .wirrarr-section img { max-width: 100%; }
    .tech-list { columns: 1; }
    .hero-stat { text-align: left; }
    .seo-table { font-size: 0.78rem; }
    #footer-inner { padding: 0 1rem; }
    .co-fields { grid-template-columns: 1fr; }
    .co-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
