html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
   margin: 0;
    font-family: Arial, sans-serif;
    color: #e5e7eb;

    /* einheitlicher Brand-Hintergrund */
    background: radial-gradient(
        circle at top,
        #0f172a 0%,
        #0b0f0c 55%,
        #050607 100%
    );
}

/* Layout */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    background: transparent;
}

.section.dark {
    background: rgba(17, 24, 39, 0.85);
}

.dark {
    background: #111827;
}

.navbar {
  position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
}

/* Menüüüü */

.menu {
     position: relative;
     display: inline-block;
}

/* Button (Hamburger) */
.menu-btn {
    padding: 10px 14px;
    font-size: 20px;
    font-weight: bold;

    background: transparent;
    color: #ffffff;

    border: 2px solid #22c55e;
    border-radius: 8px;

    cursor: pointer;
    transition: 0.2s;
}

.menu-btn:hover {
    background: #22c55e;
    color: #022c22;
}

/* Dropdown */
.menu-content {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;

    background: #111827;
    border: 1px solid #22c55e;
    border-radius: 8px;

    min-width: 150px;
    padding: 10px;
}

/* Links im Menü */
.menu-content a {
    display: block;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
}

.menu-content.show {
  display: block;
}

.menu-content a:hover {
    background: #22c55e;
    color: #022c22;
}




/* DE/EN */

.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

/* Basis Button */
.lang-btn {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    background: transparent;
    color: #ffffff; /* Schrift im EN / DE Button weiss */

    border: 2px solid #22c55e;
    border-radius: 8px;

    transition: 0.2s;
}

/* Hover */
.lang-btn:hover {
    background: #22c55e;
    color: #022c22;
}

/* Aktive Sprache */
.lang-btn.active {
    background: #22c55e;
    color: #022c22;
}

/* WICHTIG: verhindert lila visited Link */
.lang-btn:visited {
    color: inherit;
}


/* HERO */
.hero {
    padding: 140px 0;
    text-align: center;

    background: linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.55)
    ),
     url("/static/pics/shopfloor_digital.png");

    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 52px;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #e7e8eb;
    max-width: 700px;
    margin: auto;
}


/* System */

.system {
    padding: 120px 0;
    text-align: center;
    color: white;
    

    /* Hintergrund wie Hero */
    background: linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.55)
    ),
   url("/static/pics/hall.png");
    
   
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

     /* Schwarz-Weiß Effekt */
    filter: grayscale(0%);
}

.system-intro {
    max-width: 650px;
    margin: 0 auto 60px auto;
    color: #e7e8eb;
   
}

.system h2 {
    font-size: 40px;
}

/* GRID */
.system-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* CARDS */
.card {
    width: 100%;
    height: 100%;

    padding: 30px;
    box-sizing: border-box;

    background: rgba(34, 197, 94, 0.99);
    border: 1px solid #22c55e;

    border-radius: 10px; /* keine Rundung */
    
    text-decoration: none;
    color: inherit;

    color: black;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Hover Effekt */
.card:hover {
    transform: translateY(-8px);

    border-color: #22c55e; /* exakt gleiche Farbe wie Button */
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.25);
}

/* Zentrale (Highlight) Card */
.card.highlight {
    border: 2px solid #22c55e;

    background: rgba(34, 197, 94, 0.08); /* leichte grüne Fläche */
}

.card h3 {
    color: black;
    margin-bottom: 10px;
}


/* RESULT */
.system-result {
    margin-top: 80px;
    color: white;
    font-size: 18px;
}




/* HEADINGS */
h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

/* LIST */
.list {
    list-style: none;
    padding: 0;
}

.list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.list li::before {
    content: "•";
    color: #22c55e;
    position: absolute;
    left: 0;
}

.dashboard-box {
  margin-top: 30px;
  padding: 20px;

  border: 1px solid #22c55e;
  border-radius: 10px;

  background: rgba(34, 197, 94, 0.05);
}

.dashboard-text {
  margin-bottom: 15px;
  color: #e5e7eb;
  opacity: 0.9;
}

.dashboard-link {
  display: inline-block;
  padding: 12px 18px;

  border: 1px solid #22c55e;
  border-radius: 8px;

  color: #22c55e;
  text-decoration: none;

  font-weight: 600;
  transition: 0.2s;
}


/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 28px;
    background: #22c55e;
    color: #022c22;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.2s;
    cursor: pointer;
}

.btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn.big {
    font-size: 18px;
    padding: 16px 32px;
}

/* CTA */
.cta {
    text-align: center;
    padding: 120px 20px;
}

.cta h2 {
    margin-bottom: 20px;
}


/* Pfeile die wieder nach oben scrollen */
.back-arrow {
  display: block;
  text-align: right;
  margin-top: 30px;

  font-size: 14px;
  text-decoration: none;
  color: #22c55e;
  font-weight: bold;
}

.back-arrow:hover {
  transform: translateY(-3px);
  color: #16a34a;
}

.wir {
  font-size: 18px;   /* probier 18–22px */
  line-height: 1.6;  /* sorgt für bessere Lesbarkeit */
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

.wir .back-arrow {
  display: block;
  margin: 20px 0 10px 0;
}


/* MODAL BACKGROUND */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* MODAL BOX */
.modal-content {
  background: #111827;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;

  border: 1px solid #22c55e;
  animation: fadeIn 0.3s ease;
}

/* CLOSE BUTTON */
.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

/* FORM */
.modal-content input,
.modal-content textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px;

  background: #0b0f0c;
  border: 1px solid #22c55e;
  border-radius: 8px;
  color: white;
}

.kpi-hint a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #22c55e;
    font-weight: 700;
    text-decoration: none;

    padding: 8px 14px;
    border-radius: 12px;

    /* ✨ Glas Effekt */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(34, 197, 94, 0.35);

    /* 💡 subtiler Shadow */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 0 10px rgba(34, 197, 94, 0.05);

    transition: all 0.25s ease;
}

/* Hover = „lebt“ */
.kpi-hint a:hover {
    transform: translateY(-3px) scale(1.03);

    background: rgba(34, 197, 94, 0.12);

    border-color: #22c55e;

    box-shadow:
        0 15px 35px rgba(34, 197, 94, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(34, 197, 94, 0.2);

    color: #ffffff;
}

/* Klick */
.kpi-hint a:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 8px 20px rgba(34, 197, 94, 0.2);
}

.call-text {
  margin-top: 30px;
  font-size: 14px;
  color: #9ca3af;
  text-align: center;
}

.call-text a {
  color: #22c55e;
  text-decoration: none;
  font-weight: 600;
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;

    background: #22c55e;
    color: #022c22;

    padding: 14px 20px;
    border-radius: 10px;

    font-weight: 600;
    z-index: 99999;

    animation: fadeIn 0.3s ease;
}

/* raus animieren */
.toast.hide {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* rein animieren */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.highlight-link {
  font-size: 16px;
  font-weight: 700;
  color: #22c55e;

  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.more-about {
  margin-top: 30px;
}

.about-link {
  display: inline-block;
  padding: 12px 18px;

  border: 1px solid #22c55e;
  border-radius: 8px;

  color: #22c55e;
  text-decoration: none;
  font-weight: 600;

  transition: 0.2s;
}

.about-link:hover {
  background: #22c55e;
  color: #022c22;
  transform: translateY(-2px);
}

/* ========================= */
/* ABOUT PAGE */
/* ========================= */

.about-section {
    padding: 120px 0;

    /* kein eigener Hintergrund -> nutzt globales body (#0b0f0c) */
}

/* GRID LAYOUT */
.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 70px;
    align-items: center;
}

/* BILD */
.about-image img {
    width: 100%;
    max-width: 560px;

    border-radius: 16px;
    border: 2px solid #22c55e;

    box-shadow: 0 15px 40px rgba(0,0,0,0.6);

    object-fit: cover;
}

/* LABEL (kleiner grüner Text oben) */
.about-label {
    color: #22c55e;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;

    margin-bottom: 12px;
}

/* INTRO (großer Einstiegssatz) */
.about-intro {
    font-size: 22px;
    line-height: 1.6;

    color: #ffffff;

    margin-bottom: 20px;
}

/* TEXT BLOCK */
.about-text {
    color: #d1d5db;
    line-height: 1.8;

    max-width: 750px;
}

/* TEXT CARD */

.about-card {

    background: rgba(255,255,255,0.03);

    border: 1px solid rgba(34, 197, 94, 0.25);

    border-radius: 18px;

    padding: 40px;

    backdrop-filter: blur(6px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* NAME */

.about-name {
    font-size: 34px;
    color: white;

    margin-bottom: 20px;
    margin-top: 0;
}


.about-signature {

    margin-top: 30px;

    color: #22c55e;

    font-weight: 600;

    letter-spacing: 0.5px;
}


.partners {
    margin-top: 10px;
    padding-top: 20px;
    padding-bottom: 60px;
    text-align: center;
}

.partners .container {
    text-align: center;
}

.partners-title {
    font-size: 30px;
    font-weight: 600;

    color: #22c55e;

    margin-bottom: 45px;
    margin-top: 10;
    letter-spacing: 0.5px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 55px;
    flex-wrap: wrap;
}

.partners-grid a {
    display: inline-block;
    transition: 0.3s;
}

.partners-grid img {
    max-height: 55px;

    filter: grayscale(100%);
    opacity: 0.7;

    transition: 0.3s ease;
}

.partners-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;

    transform: translateY(-3px) scale(1.05);
}

.about-footer {
    padding: 80px 0 40px 0;
}

.about-hint {
    margin: 0;

    font-size: 16px;
    color: #6b7280;

    text-align: center;
    line-height: 1.6;

    opacity: 0.85;
}

.contact_hint {

    margin-left: 8px;

    color: #22c55e;

    text-decoration: none;

    font-weight: 600;

    transition: 0.2s;
}

.contact_hint:hover {

    opacity: 0.8;

    text-decoration: underline;
}



.no-border {
  border: none;
}



.footer-small {
  text-align: center;
  padding: 30px 0;
  font-size: 12px;
  color: #6b7280;
}

.footer-small a {
  color: #6b7280;
  text-decoration: none;
  margin: 0 6px;
}

.footer-small a:hover {
  color: #22c55e;
}


.impressum {
    max-width: 800px;
    margin: 80px 0 0 60px;
    padding-right: 20px;

    color: #cbd5e1;
    line-height: 1.8;
    text-align: left;
}

.impressum h2 {
    color: #ffffff;
    font-size: 18px;
    margin-top: 35px;
    margin-bottom: 10px;
}

.impressum p.impressum-small {
    font-size: 12px !important;
    color: #9ca3af !important;
}



/* OPTIONAL: falls du später Buttons darunter hast */
.about-section .btn {
    margin-top: 30px;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .about-image img {
        max-width: 400px;
        margin: auto;
    }

    .about-intro {
        font-size: 18px;
    }

    .about-text {
        margin: auto;
    }
}


/* ========================= */
/* RESPONSIVE FIX MOBILE + TABLET */
/* ========================= */

/* TABLET */
@media (max-width: 900px) {

    .system-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .system h2 {
    font-size: 30px;          /* 🔥 größer */
    line-height: 1.2;
    text-align: center;

    padding: 0 15px;

    /* verhindert Abschneiden */
    overflow-wrap: break-word;
    hyphens: auto;
    }

   .system-intro {
    font-size: 16px;
    line-height: 1.5;
    padding: 0 15px;
    }



    .card {
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        min-width: 0;
    }

    .section-title {
        white-space: normal;
    }

    .hero h1 {
        font-size: 32px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero p {
        font-size: 16px;
    }
}


/* MOBILE */
@media (max-width: 768px) {

    /* Layout fix */
    .container {
        padding: 0 15px;
    }

    /* NAVBAR fix */
    .navbar {
        position: fixed;
        top: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(8px);
        padding: 10px 15px;
        z-index: 1000;
    }

    /* HERO */
    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    :root {
        --gap: 15px;
    }


    /* GRID → 1 Spalte */
    .system-grid {
        grid-template-columns: 1fr;
    }

    /* CARDS */
    .card {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    /* SECTIONS weniger padding */
    .section {
        padding: 60px 0;
    }

    /* TEXT */
    h2 {
        font-size: 24px;
    }

    /* BACK ARROW kleiner */
    .back-arrow {
        text-align: center;
        display: block;
    }

    /* MODAL */
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    /* LANG SWITCH + MENU enger */
    .lang-switch {
        top: 10px;
        right: 10px;
        transform: scale(0.9);
    }

    .why {
        padding: 80px 20px;
        margin-top: 40px;
    }

     .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-box {
        min-height: 280px;
        padding: 15px;
    }

    h1 {
        font-size: 18px;
    }
}