:root {
  --bg-dark: #0a0c10;
  --bg-card: rgba(22, 27, 34, 0.7);
  --border-card: rgba(232, 147, 45, 0.25);
  --border-card-hover: rgba(232, 147, 45, 0.85);
  --primary-orange: #E8932D;
  --primary-glow: rgba(232, 147, 45, 0.5);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --font-title: 'Tektur', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* GLOBALER HINTERGRUND (GILT NUN FÜR ALLE SEITEN) */
body {
  background-color: #060709;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: linear-gradient(rgba(6, 7, 9, 0.72), rgba(6, 7, 9, 0.85)), url('/vernetzt.jpg'), url('/bilder/vernetzt.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }

/* HEADER & MENÜ DESIGN */
.site-header { position: sticky; top: 0; z-index: 1000; background: #060709; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 0.8rem 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.main-nav .nav-list { display: flex; list-style: none; gap: 2rem; align-items: center; margin: 0; padding: 0; }
.nav-link { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.9rem; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--primary-orange); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: #060709;
  border: 1px solid var(--border-card); border-radius: 12px;
  padding: 1rem; min-width: 320px; list-style: none;
  display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.dropdown.active .dropdown-menu { display: block; }

.menu-highlight { list-style: none; margin-bottom: 0.5rem; }
.highlight-link { color: #f97316; text-decoration: none; font-weight: bold; font-size: 0.9rem; display: block; }
.menu-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 0.75rem 0; list-style: none; }
.menu-category { list-style: none; }

.category-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 0.75rem; font-weight: 700; color: #E8932D; letter-spacing: 0.5px;
  padding: 0.5rem 0.5rem; text-transform: uppercase; cursor: pointer; user-select: none;
  border-radius: 6px; transition: background 0.2s ease;
}
.category-header:hover { background: rgba(232, 147, 45, 0.1); }
.category-header .arrow-icon { font-size: 0.7rem; transition: transform 0.3s ease; }
.category-header.active .arrow-icon { transform: rotate(180deg); }

.sub-dropdown { list-style: none; display: none; padding-left: 0.8rem; margin-top: 0.3rem; }
.sub-dropdown.sub-open { display: block !important; }
.sub-dropdown li { margin: 0.3rem 0; }
.sub-dropdown a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.sub-dropdown a:hover { color: var(--primary-orange); }

.mobile-nav-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

/* GRID & CARDS DESIGN */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.glow-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.glow-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.glow-card h3 { 
  font-family: var(--font-title); 
  color: #fff; 
  font-size: 1.05rem; 
  line-height: 1.35;
  margin: 1rem 0 0.8rem 0; 
}
.glow-card p { 
  color: var(--text-muted); 
  font-size: 0.82rem; 
  line-height: 1.5;
}
.glow-card .icon-wrap { font-size: 2rem; color: var(--primary-orange); }
.glow-card:hover { 
  border-color: var(--border-card-hover); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px var(--primary-glow);
}

/* FLIP CARD EFFEKT (DESKTOP: BILD ZUERST -> HOVER ZEIGT TEXT) */
.flip-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.flip-card-front {
  display: none; /* Standard auf Mobile: Bild ausgeblendet, Text direkt sichtbar */
}

@media (min-width: 901px) {
  .glow-card-link {
    perspective: 1000px;
    min-height: 240px;
  }

  .flip-card-inner {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
  }

  .glow-card-link:hover .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front,
  .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 18px;
  }

  .flip-card-front {
    display: block;
    border: 1px solid var(--border-card);
    overflow: hidden;
    background: #060709;
  }

  .flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .flip-card-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,12,16,0.1), rgba(10,12,16,0.5));
  }

  .flip-card-back {
    transform: rotateY(180deg);
  }
}

/* SCHRITTE SCHABLONE */
.steps-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  padding: 2rem;
  border-radius: 18px;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.steps-header {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.8rem;
  letter-spacing: 0.5px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.step-num {
  background: linear-gradient(135deg, #E8932D 0%, #c47317 100%);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.step-text strong {
  color: #fff;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.step-text span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  display: block;
}

/* FOOTER DESIGN */
.site-footer { background: #060709; border-top: 1px solid rgba(255,255,255,0.08); padding: 3rem 0 2rem 0; margin-top: 3rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-brand { font-family: var(--font-title); color: var(--primary-orange); font-size: 1.2rem; margin-bottom: 0.8rem; }
.footer-block h3 { font-size: 0.95rem; margin-bottom: 0.6rem; color: #fff; }
.footer-block p, .footer-legal-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.footer-legal-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-legal-links a:hover { color: var(--primary-orange); }
.footer-copyright { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* FLOATING & STICKY BUTTONS */
.floating-btn { position: fixed; bottom: 25px; right: 25px; width: 50px; height: 50px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 99; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.mobile-sticky-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: #060709; border-top: 1px solid rgba(232, 147, 45, 0.25); padding: 0.6rem 0.8rem; z-index: 9999; box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.9); }
.sticky-btns { display: flex; gap: 0.6rem; }
.sticky-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 0.4rem; font-size: 0.85rem; font-weight: 700; border-radius: 10px; text-decoration: none; text-align: center; }
.sticky-call { background: linear-gradient(135deg, #E8932D 0%, #c47317 100%); color: #fff; box-shadow: 0 2px 10px rgba(232, 147, 45, 0.5); }
.sticky-wa { background: #25D366; color: #fff; }

/* RESPONSIVE DESIGNS */
@media (min-width: 901px) {
  .dropdown.active .dropdown-menu,
  .dropdown:hover .dropdown-menu { display: block !important; }
}

@media (max-width: 900px) {
  .mobile-nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #060709; border-bottom: 1px solid var(--border-card); padding: 1.5rem; }
  .main-nav.nav-open { display: block; }
  .main-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .dropdown-menu { position: static; width: 100%; box-shadow: none; border: none; background: rgba(255, 255, 255, 0.03); }
  
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 600px) {
  body { padding-bottom: 65px; }
  .mobile-sticky-bar { display: block; }
  .floating-btn { display: none; }

  .card-grid-4 { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; gap: 1.2rem; }
  .step-item { flex-direction: row; align-items: flex-start; }
}

/* COOKIE BANNER STYLES */
.cookie-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(6, 7, 9, 0.85); backdrop-filter: blur(12px);
  z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.cookie-modal {
  background: var(--bg-dark, #0a0c10); border: 1px solid var(--border-card, rgba(232, 147, 45, 0.3));
  border-radius: 20px; width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
  padding: 2rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(232, 147, 45, 0.2);
  color: var(--text-main, #f0f6fc); font-family: var(--font-body, 'Inter', sans-serif);
}
.cookie-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.cookie-icon { font-size: 2rem; color: var(--primary-orange, #E8932D); }
.cookie-header h2 { font-family: var(--font-title, 'Tektur', sans-serif); font-size: 1.5rem; margin: 0; color: #fff; }
.cookie-intro { font-size: 0.85rem; color: var(--text-muted, #8b949e); margin-bottom: 1.2rem; line-height: 1.5; }
.cookie-tabs { border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 1rem; }
.cookie-tab { background: var(--primary-orange, #E8932D); color: #fff; border: none; padding: 0.5rem 1.2rem; border-top-left-radius: 8px; border-top-right-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.cookie-quick-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 1rem; }
.cookie-btn-subtle { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.78rem; cursor: pointer; transition: all 0.2s; }
.cookie-btn-subtle:hover { background: rgba(232, 147, 45, 0.2); border-color: var(--primary-orange); }
.cookie-categories { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.cookie-category-item { background: var(--bg-card, rgba(22, 27, 34, 0.7)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 1rem; }
.cookie-category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.cookie-checkbox-wrapper { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.95rem; user-select: none; }
.cookie-checkbox-wrapper.disabled { cursor: not-allowed; opacity: 0.8; }
.cookie-checkbox-wrapper input { accent-color: var(--primary-orange, #E8932D); width: 18px; height: 18px; cursor: pointer; }
.cookie-tag { font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 600; }
.cookie-tag.required { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.cookie-desc { font-size: 0.8rem; color: var(--text-muted, #8b949e); margin: 0; line-height: 1.4; }
.cookie-footer-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem; }
.btn-cookie { padding: 0.75rem 0.5rem; border-radius: 10px; font-weight: 600; font-size: 0.82rem; cursor: pointer; border: none; text-align: center; transition: all 0.2s ease; }
.btn-cookie.btn-outline { background: transparent; border: 1px solid var(--primary-orange); color: #fff; }
.btn-cookie.btn-outline:hover { background: rgba(232, 147, 45, 0.15); }
.btn-cookie.btn-orange { background: linear-gradient(135deg, #E8932D 0%, #c47317 100%); color: #fff; }
.btn-cookie.btn-orange:hover { box-shadow: 0 4px 15px rgba(232, 147, 45, 0.5); }
.btn-cookie.btn-blue { background: #1e6091; color: #fff; }
.btn-cookie.btn-blue:hover { background: #184e77; }
.cookie-legal-links { text-align: center; font-size: 0.75rem; color: var(--text-muted); }
.cookie-legal-links a { color: var(--text-muted); text-decoration: none; }
.cookie-legal-links a:hover { color: var(--primary-orange); }

.cookie-floating-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card, rgba(22, 27, 34, 0.9));
  border: 1px solid var(--border-card, rgba(232, 147, 45, 0.4));
  color: var(--primary-orange, #E8932D);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.cookie-floating-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary-orange, #E8932D);
  box-shadow: 0 0 20px rgba(232, 147, 45, 0.6);
  background: #0a0c10;
}

@media (max-width: 650px) {
  .cookie-footer-actions { grid-template-columns: 1fr; }
  .cookie-floating-btn { bottom: 75px; left: 15px; width: 38px; height: 38px; font-size: 1rem; }
}