/* ═══════════════════════════════════════════════════
   RABETOOLS – Shared Design System (Comic Style)
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Relief:wght@400;700&display=swap');

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --purple: #9146FF;
    --purple2: #7B2FBE;
    --purple3: #B06AFF;
    --light: #F0EAFF;
    --white: #ffffff;
    --text: #1a0533;
    --muted: #6b5c8a;
    --accent: #FFD700; /* Gold/Yellow */
    --border-width: 3px;
}

html, body { 
    min-height: 100%; 
    background: var(--purple); 
    color: var(--white); 
    font-family: 'Comic Relief', sans-serif; 
    overflow-x: hidden; 
}

body{
background: linear-gradient(160deg, #7B2FBE 0%, #9146FF 40%, #6441A5 100%);
}
    
/* ── Background Grid (Optional, subtle) ── */
.bg-grid {
    position: fixed; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none; z-index: 0;
}
#c { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* ── Header & Nav ── */
.header-fixed {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}

/* Netzwerk-Leiste (Top Bar) */
.network-bar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.network-bar a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.network-bar a:hover { color: var(--white); }
.network-bar a.active { color: var(--accent); }
.network-bar .sep { color: rgba(255,255,255,0.1); }

nav {
    height: 70px; display: flex; align-items: center; padding: 0 2rem;
    background: rgba(100, 40, 200, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-width) solid var(--purple2);
}
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 2rem; }

.brand { 
    font-family: 'Bangers', cursive; font-size: 2.2rem; letter-spacing: 0.08em; text-decoration: none; color: var(--white); 
    line-height: 1; display: flex; align-items: center; gap: 0.75rem;
}
.brand img { height: 40px; width: auto; display: block; filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.2)); }
.brand-text { display: flex; flex-direction: column; justify-content: center; }
.brand-main { line-height: 0.9; }
.brand-sub {
    font-family: 'Comic Relief', sans-serif;
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 0;
    text-transform: lowercase;
    opacity: 0.9;
    margin-top: -2px;
    font-weight: 700;
}
.brand .r { color: var(--accent); }
.brand .t { color: var(--white); }

.nav-links { display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.nav-link { 
    display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 99px; 
    text-decoration: none; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; 
    text-transform: uppercase; color: rgba(255,255,255,0.8); transition: all 0.2s; 
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.15); transform: translateY(-1px); }
.nav-link.active { color: var(--accent); background: rgba(0,0,0,0.2); }
.nav-link i { font-size: 14px; }
.nav-right { margin-left: auto; }

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { 
    display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 99px; 
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; 
    color: rgba(255,255,255,0.8); transition: all 0.2s; cursor: pointer; background: none; border: none; font-family: inherit; 
}
.nav-dropdown-btn:hover, .nav-dropdown.open .nav-dropdown-btn { color: var(--white); background: rgba(255,255,255,0.15); }
.nav-dropdown-btn .caret { font-size: 11px; transition: transform .2s; margin-left: 2px; }
.nav-dropdown.open .nav-dropdown-btn .caret { transform: rotate(180deg); }

.nav-dropdown-menu { 
    position: absolute; top: calc(100% + 12px); left: 0; min-width: 200px; 
    background: var(--white); border: var(--border-width) solid var(--purple); 
    border-radius: 20px; padding: 0.75rem; display: none; z-index: 200; 
    box-shadow: 8px 8px 0 rgba(0,0,0,0.15); 
}
.nav-dropdown.open .nav-dropdown-menu { display: block; animation: comicPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes comicPop { from { opacity: 0; transform: scale(0.9) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.nav-dropdown-section { font-family: 'Bangers', cursive; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--purple); padding: 0.5rem 0.75rem 0.25rem; }
.nav-dropdown-item { 
    display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 12px; 
    text-decoration: none; font-size: 0.9rem; font-weight: 700; color: var(--text); transition: all 0.2s; white-space: nowrap; 
}
.nav-dropdown-item:hover { background: var(--light); color: var(--purple); transform: translateX(4px); }
.nav-dropdown-item i { font-size: 14px; flex-shrink: 0; color: var(--purple2); }
.nav-dropdown-sep { height: 2px; background: var(--light); margin: 0.4rem 0; }

/* ── Page Wrapper ── */
.page { position: relative; z-index: 1; padding-top: 100px; }
.container { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 6rem; }

/* ── Hero & Eyebrow ── */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-image { order: -1; } /* Bild oben auf Mobile */
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-image::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2; filter: blur(40px); z-index: -1;
}

.comic-img {
    max-width: 100%;
    height: auto;
    border-radius: 28px;
    border: var(--border-width) solid var(--white);
    box-shadow: 12px 12px 0 rgba(0,0,0,0.2);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}
.comic-img:hover { transform: rotate(0deg) scale(1.02); }

.hero-eyebrow { 
    display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 800; 
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; 
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 30px; height: 3px; background: var(--accent); border-radius: 3px; }

/* ── Comic Cards ── */
.card {
    background: var(--white); border: var(--border-width) solid var(--purple); border-radius: 28px;
    padding: 2.5rem; margin-bottom: 2.5rem; box-shadow: 8px 8px 0 rgba(0,0,0,0.1);
    position: relative; transition: transform 0.2s, box-shadow 0.2s;
    color: var(--text);
}
.card:hover { transform: translateY(-4px); box-shadow: 12px 12px 0 rgba(0,0,0,0.15); }

.card-title { font-family: 'Bangers', cursive; font-size: 2.2rem; color: var(--purple); margin-bottom: 1rem; letter-spacing: 0.04em; line-height: 1.1; }
.card-desc { font-size: 1rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; font-weight: 700; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.8rem; 
    border-radius: 99px; font-weight: 800; font-family: 'Comic Relief', sans-serif;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; 
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; border: none;
}
.btn:hover { transform: scale(1.05) translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--text); box-shadow: 0 4px 0 #b29600; }
.btn-primary:hover { box-shadow: 0 6px 0 #b29600; }

.btn-white { background: var(--white); color: var(--purple); box-shadow: 0 4px 0 #ddd; }
.btn-white:hover { box-shadow: 0 6px 0 #ddd; }

.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: var(--white); }

/* ── Inputs ── */
.comic-input {
    width: 100%; background: var(--light); border: var(--border-width) solid var(--purple); 
    border-radius: 16px; padding: 0.8rem 1.25rem; font-family: inherit; font-weight: 700;
    color: var(--text); outline: none; transition: all 0.2s;
}
.comic-input:focus { border-color: var(--purple3); background: var(--white); box-shadow: 0 0 0 4px rgba(145,70,255,0.1); }

/* ── Grid/Layout Helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Footer ── */
footer { 
    background: var(--purple2); color: rgba(255,255,255,0.7); 
    text-align: center; padding: 3rem 2rem; font-weight: 700; border-top: var(--border-width) solid var(--purple);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fadeIn { animation: fadeIn 0.4s ease-out both; }
/* ── SHARED FOOTER DESIGN ── */
footer { 
    background: var(--purple2, #7B2FBE);
    color: rgba(255,255,255,0.5); 
    text-align: center; 
    padding: 2rem; 
    font-size: 0.85rem; 
    font-weight: 700;
    font-family: 'Comic Relief', sans-serif;
    margin-top: 4rem;
}

footer a { 
    color: var(--accent, #FFD700); 
    text-decoration: none; 
}

footer a:hover { 
    text-decoration: underline; 
}

.footer-logo { 
    height: 18px !important; 
    width: auto !important; 
    vertical-align: middle; 
    margin-right: 4px; 
    filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.1)); 
}


  #totop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--purple);
    color: white;
    border: 3px solid var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
  }
  #totop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  #totop:hover {
    background: #FFD700;
    color: var(--purple);
    transform: scale(1.1);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
  }

  /* ── LEGAL PAGES (tos / privacy) ── */
  .legal-page {
    background: linear-gradient(160deg, #7B2FBE 0%, #9146FF 40%, #6441A5 100%);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
  }
  .legal-container { max-width: 1000px; margin: 0 auto; padding: 120px 20px 60px; }
  .legal-section { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px; 
    padding: 40px; 
    margin-bottom: 30px; 
    backdrop-filter: blur(10px);
  }
  .legal-section h2 { 
    font-family: 'Roboto', sans-serif; 
    font-size: 1.5rem; 
    font-weight: 700;
    color: #FFD700; 
    margin-bottom: 20px; 
    border-bottom: 2px solid rgba(255, 215, 0, 0.3); 
    padding-bottom: 10px; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .legal-section h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin: 20px 0 10px;
    font-weight: 700;
  }
  .legal-section p, .legal-section li { 
    color: rgba(255,255,255,0.9); 
    line-height: 1.7; 
    margin-bottom: 15px; 
    font-size: 1rem;
  }
  .legal-section ul { padding-left: 25px; margin-bottom: 15px; }
  .legal-section ul li { margin-bottom: 10px; }
  
  .badge { 
    display: inline-block; 
    background: rgba(255, 215, 0, 0.1); 
    border: 1px solid rgba(255, 215, 0, 0.3); 
    padding: 6px 14px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    color: #FFD700; 
    margin-bottom: 20px; 
    letter-spacing: 0.1em;
  }
  .highlight-box { 
    background: rgba(255, 255, 255, 0.1); 
    border-left: 5px solid #FFD700; 
    padding: 25px; 
    margin-bottom: 35px; 
    border-radius: 4px; 
  }
  .highlight-box p { margin-bottom: 0; font-weight: 500; color: #fff; font-size: 1.1rem; }
  
  .page-hero { text-align: center; margin-bottom: 60px; }
  .legal-hero-title { 
    font-family: 'Bangers', cursive; 
    font-size: clamp(3rem, 10vw, 5rem); 
    line-height: 1; 
    letter-spacing: 0.05em; 
    margin-bottom: 10px;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  }
  .legal-hero-title span { color: #FFD700; }
  .legal-meta { color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 500; }
  .legal-link { color: #FFD700; text-decoration: none; font-weight: 700; transition: opacity 0.2s; }
  .legal-link:hover { text-decoration: underline; opacity: 0.8; }

  /* Verfeinerung für Listen in legal-sections */
  .legal-section ul.spaced li { margin-bottom: 15px; }
  .legal-section strong { color: var(--white); font-weight: 700; }