:root {
    --bg-page: #f3f4f6;
    --bg-content: #ffffff;
    --bg-alt: #f9fafb;
    --bg-header: #050816;
    --bg-footer: #050816;

    --text-main: #111827;
    --text-muted: #6b7280;
    --text-on-dark: #f9fafb;

    --accent: #1d87d7;
    --accent-soft: #e0f2ff;

    --radius-card: 18px;
    --shadow-soft: 0 18px 45px rgba(15,23,42,0.25);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}

/* Dark Theme */
body.theme-dark {
    --bg-page: #020617;
    --bg-content: #020617;
    --bg-alt: #020617;
    --bg-header: #00010a;
    --bg-footer: #00010a;

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #38bdf8;
    --accent-soft: #0b1120;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: var(--bg-header);
    color: var(--text-on-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    height: 48px;
    width: auto;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-tagline {
    font-size: 0.8rem;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-on-dark);
    opacity: 0.85;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: background 0.2s, opacity 0.2s, transform 0.15s;
}

.main-nav a:hover {
    background: rgba(248,250,252,0.08);
    opacity: 1;
    transform: translateY(-1px);
}

.nav-cta {
    background: linear-gradient(135deg, #1d87d7, #0ea5e9);
    color: #f9fafb !important;
    opacity: 1 !important;
}

.theme-toggle {
    border: none;
    background: rgba(15,23,42,0.5);
    color: var(--text-on-dark);
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* -------------------------------------------------
   CLEAN MOBILE BURGER MENU FIX
-------------------------------------------------- */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 20px;
    transition: 0.2s ease;
}

/* "X" Animation */
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===========================
      MOBILE ONLY
=========================== */
@media (max-width: 800px) {

    /* Burger sichtbar */
    .nav-toggle {
        display: flex;
    }

    /* Desktop-Nav verstecken */
    .main-nav {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: 60px;
        background: var(--bg-header);
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        z-index: 100;
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.6rem 0;
        font-size: 1.1rem;
        width: 100%;
    }
}


/* Hero */

.hero {
    padding: 3.5rem 0 3rem;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(37,99,235,0.18), transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    margin: 0 0 0.75rem;
}

.hero-sub {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 40rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1d87d7, #0ea5e9);
    color: #f9fafb;
    box-shadow: 0 14px 30px rgba(15,23,42,0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.45);
}

.btn-outline {
    border-color: rgba(148,163,184,0.7);
    color: inherit;
    background: transparent;
}

.btn-whatsapp {
    border-color: #22c55e;
    color: #15803d;
    background: rgba(34, 197, 94, 0.06);
}

body.theme-dark .btn-whatsapp {
    color: #bbf7d0;
    border-color: #22c55e;
    background: rgba(22, 163, 74, 0.16);
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.4);
    background: rgba(34, 197, 94, 0.12);
}


.hero-meta {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-side .hero-card {
    background: rgba(15,23,42,0.86);
    color: #e5e7eb;
    border-radius: var(--radius-card);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

/* Sections */

.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    text-align: left;
    max-width: 640px;
}

.section-head h2 {
    margin-bottom: 0.5rem;
}

.section-head p {
    color: var(--text-muted);
}

/* Cards */

.card-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-content);
    border-radius: var(--radius-card);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 28px rgba(15,23,42,0.10);
}

body.theme-dark .card {
    box-shadow: 0 18px 45px rgba(15,23,42,0.55);
}

.card-muted {
    opacity: 0.9;
}

/* Prozess */

.process-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.process-list h3 {
    margin-top: 0;
}

/* Regionen */

.region-tags {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.region-tags span {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    font-size: 0.85rem;
}

/* FAQ */

.faq-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Footer */

.site-footer {
    background: var(--bg-footer);
    color: var(--text-on-dark);
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.75rem;
    padding: 2.5rem 0 2rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(148,163,184,0.3);
    font-size: 0.85rem;
    opacity: 0.8;
    padding: 0.75rem 0 1rem;
}

/* Responsive */

@media (max-width: 800px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-header);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 1rem 1.5rem 1.4rem;
        box-shadow: 0 18px 45px rgba(15,23,42,0.7);
        border-bottom: 1px solid rgba(148,163,184,0.35);
        z-index: 9;
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-cta {
        margin-top: 0.2rem;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

.hero-small {
    padding: 2.5rem 0 2rem;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0 1.5rem;
}

.pf-btn {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: transparent;
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pf-btn.active,
.pf-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #f9fafb;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.portfolio-card {
    background: var(--bg-content);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15,23,42,0.18);
    display: flex;
    flex-direction: column;
}

body.theme-dark .portfolio-card {
    box-shadow: 0 24px 55px rgba(15,23,42,0.7);
}

.portfolio-image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.portfolio-body {
    padding: 1.3rem 1.4rem 1.5rem;
}

.portfolio-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.portfolio-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.portfolio-services {
    list-style: none;
    padding: 0;
    margin: 0.9rem 0 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.portfolio-services li {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-soft);
}

.portfolio-details summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

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

.portfolio-note {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    opacity: 0.9;
}

.portfolio-seo-text {
    margin-top: 3rem;
    border-radius: 22px;
}

.portfolio-link {
    display: inline-block;
    margin-top: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.portfolio-link:hover {
    opacity: 0.8;
    transform: translateX(2px);
}

.skills-section {
    border-radius: 22px;
    margin-top: 2.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.skills-text p {
    color: var(--text-muted);
}

.skills-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.skills-btn {
    font-size: 0.9rem;
}

.skills-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skills-group h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    white-space: nowrap;
}

body.theme-dark .skill-badge {
    background: rgba(15,23,42,0.9);
    box-shadow: 0 10px 26px rgba(15,23,42,0.7);
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-form-wrap {
    background: var(--bg-content);
    padding: 1.8rem 1.9rem;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.18);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-content);
    padding: 1.4rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.14);
    font-size: 0.95rem;
}

.contact-card-muted {
    opacity: 0.95;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.contact-list li {
    margin-bottom: 0.35rem;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.contact-whatsapp {
    margin-top: 0.75rem;
    width: 100%;
    box-sizing: border-box;  /* damit Padding im 100% drin ist */
    justify-content: center;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 2rem;
}

.contact-hero-image img {
    width: 100%;
    max-width: 340px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    object-fit: cover;
}

@media (max-width: 900px) {
    .contact-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-hero-image img {
        margin: 0 auto;
        max-width: 260px;
    }
}

.bullet-list {
    padding-left: 1.1rem;
    margin: 0.25rem 0 0;
}

.bullet-list li {
    margin-bottom: 0.35rem;
}

/* Form */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.7);
    padding: 0.55rem 0.75rem;
    font: inherit;
    background: var(--bg-content);
    color: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.form-field-inline {
    margin-top: 0.25rem;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox input {
    margin-top: 0.15rem;
}

.form-actions {
    margin-top: 0.25rem;
}

/* Alerts */

.alert {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.09);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.alert-error ul {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.86rem;
}

/* Responsive */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.region-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 2.5rem;
}

.region-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
    .region-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .region-image img {
        margin: 0 auto;
        max-width: 260px;
    }
}

/* Leistungen / Services */

.services-hero {
    padding-top: 3rem;
}

.services-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.services-hero-meta {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.services-hero-meta span {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
}

.services-hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.services-logo img {
    max-width: 150px;
    display: block;
}

.services-hero-image img {
    max-width: 260px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.35);
    object-fit: cover;
}

/* Service Cards */

.service-grid {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background: var(--bg-content);
    border-radius: 20px;
    padding: 1.6rem 1.7rem;
    box-shadow: 0 16px 40px rgba(15,23,42,0.16);
    font-size: 0.95rem;
}

.service-card-primary {
    border: 1px solid rgba(56,189,248,0.6);
}

.service-list {
    margin: 0.9rem 0 0.9rem;
    padding-left: 1.1rem;
}

.service-list li {
    margin-bottom: 0.35rem;
}

.service-cta-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-cta-row .btn {
    align-self: flex-start;
}

.service-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Beispiele */

.service-examples-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    font-size: 0.95rem;
}

/* CTA unten */

.services-cta-center {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

/* Responsive */

@media (max-width: 900px) {
    .services-hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .services-hero-side {
        align-items: flex-start;
    }
}

.services-hero-image-lower {
    display: flex;
    justify-content: center;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.services-hero-image-lower img {
    width: 180px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

@media(max-width: 900px) {
    .services-hero-image-lower img {
        width: 150px;
    }
}



.services-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.services-intro-image img {
    width: 100%;
    max-width: 260px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
    .services-intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .services-intro-image img {
        margin: 0 auto;
        max-width: 220px;
    }
}


#chat-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
}

#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  height: 460px;
  background: #0f0f0f;
  color: #fff;
  border-radius: 18px;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  z-index: 10000;
}

#chat-header {
  padding: 14px;
  background: #161616;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 18px 18px 0 0;
}

#chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

#chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-msg {
  margin-bottom: 10px;
  line-height: 1.4;
}

.user {
  text-align: right;
  color: #4fd1c5;
}

.bot {
  text-align: left;
  color: #e5e5e5;
}

#chat-input {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #222;
}

#chat-input input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #1c1c1c;
  color: #fff;
}

#chat-input button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #4fd1c5;
  cursor: pointer;
  font-weight: bold;
}
#chat-input button:hover {
  background: #38b2ac;
}