:root{
  --bg:#0b0f14;
  --panel:#0f1621;
  --text:#e9eef5;
  --muted:#a8b3c2;
  --brand:#5ee6b5;
  --brand2:#6aa7ff;
  --line:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --max:1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(94,230,181,.18), transparent 60%),
              radial-gradient(1000px 700px at 90% 0%, rgba(106,167,255,.16), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.95}
img{max-width:100%;display:block}

.container{max-width:var(--max); margin:0 auto; padding:0 18px;}
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(11,15,20,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px;
}
.logo{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 20px rgba(94,230,181,.12);
}
.navlinks{display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end;}
.navlinks a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
}
.navlinks a.active, .navlinks a:hover{
  color:var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}

.hero{
  padding:46px 0 18px;
}
.hero-grid{
  display:grid; gap:18px;
  grid-template-columns: 1.2fr .8fr;
  align-items:stretch;
}
.card{
  background: rgba(15,22,33,.7);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-main{
  padding:28px;
  position:relative;
  overflow:hidden;
}
.hero-main:before{
  content:"";
  position:absolute; inset:-80px -60px auto auto;
  width:240px; height:240px;
  background: radial-gradient(circle at 30% 30%, rgba(94,230,181,.32), transparent 65%);
  filter: blur(4px);
  transform: rotate(12deg);
}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  font-weight:700; font-size:13px;
  color: rgba(233,238,245,.9);
  border:1px solid var(--line);
  padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.03);
}
.dot{width:8px;height:8px;border-radius:99px;background:var(--brand);}
h1{margin:14px 0 8px; font-size: clamp(26px, 4.2vw, 44px); line-height:1.08;}
.lead{margin:0; color: var(--muted); font-size: 16px; max-width: 62ch;}
.cta-row{display:flex; gap:10px; margin-top:18px; flex-wrap:wrap;}
.btn{
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:800; font-size:14px;
}
.btn.primary{
  border-color: rgba(94,230,181,.25);
  background: linear-gradient(135deg, rgba(94,230,181,.18), rgba(106,167,255,.10));
}
.btn:hover{transform: translateY(-1px); transition: .15s ease;}

.hero-side{
  padding:18px;
  display:flex; flex-direction:column; gap:12px;
}
.hero-side h3{margin:2px 0 0; font-size:16px;}
.small{color:var(--muted); font-size:13px; margin:0}
.bullets{margin:10px 0 0; padding:0; list-style:none; display:grid; gap:10px;}
.bullets li{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.03);
  color: rgba(233,238,245,.92);
  font-weight:650;
  font-size:13px;
}

.section{padding:18px 0 40px}
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin:10px 0 14px;
}
.section-title h2{margin:0; font-size:18px}
.section-title p{margin:0; color:var(--muted); font-size:13px}

.grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(12, 1fr);
}
.cat{
  grid-column: span 4;
  padding:16px;
}
.cat .tag{
  display:inline-flex; gap:8px; align-items:center;
  font-size:12px; color: var(--muted);
  border:1px solid var(--line);
  padding:5px 9px; border-radius:999px;
  background: rgba(255,255,255,.03);
}
.cat h3{margin:10px 0 6px; font-size:16px;}
.cat p{margin:0; color:var(--muted); font-size:13px;}
.cat .link{margin-top:12px; display:inline-flex; gap:8px; align-items:center; font-weight:800; font-size:13px;}

.posts{
  display:grid; gap:14px;
  grid-template-columns: repeat(12, 1fr);
}
.post{
  grid-column: span 6;
  padding:16px;
  display:flex; flex-direction:column; gap:10px;
}
.meta{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  color:var(--muted); font-size:12px;
}
.badge{
  padding:4px 8px; border:1px solid var(--line);
  border-radius:999px; background: rgba(255,255,255,.03);
  color: rgba(233,238,245,.88);
  font-weight:700;
}
.post h3{margin:0; font-size:16px; line-height:1.25;}
.post p{margin:0; color:var(--muted); font-size:13px;}
.post .footer{
  margin-top:auto;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.read{font-weight:900; font-size:13px;}
.author{color:var(--muted); font-size:12px;}

.footerbar{
  border-top:1px solid var(--line);
  padding:18px 0;
  color: var(--muted);
  font-size:13px;
}
.footerbar a{color: rgba(233,238,245,.9); font-weight:700;}

/*
 * The .page container holds the main content on category and article pages.
 * Reduce the bottom padding to 40px (from 50px) so that the footer sits
 * closer to the content. This helps ensure the footer height matches the
 * appearance on the homepage and prevents excessive empty space below
 * short articles.
 */
/*
 * Reduce bottom padding on .page to remove excessive space above the footer on
 * blog and category pages. The previous value of 40px left a large gap when
 * content was short. A bottom padding of 20px still provides breathing
 * room but keeps the footer visually connected to the content. Wir verringern
 * den unteren Abstand weiter auf 10px, damit der Footer bei kurzen Artikeln
 * näher am Inhalt sitzt.
 */
.page{
  padding:26px 0 10px;
}

/*
 * Images used at the top of the homepage and category pages. The hero
 * image on the index uses .hero-img, while category pages use
 * .page-hero. Both classes constrain the maximum height and apply
 * consistent rounding so photos integrate cleanly into the card layout.
 */
.hero-img{
  width:100%;
  border-radius:var(--radius);
  margin-top:20px;
  max-height:300px;
  object-fit:cover;
}

.page-hero{
  width:100%;
  border-radius:var(--radius);
  margin-bottom:18px;
  max-height:280px;
  object-fit:cover;
}

/* A standard image style for blog posts. It fills the card width,
 * maintains aspect ratio and provides consistent rounding and spacing.
 * Use class="post-image" on <img> elements inside article cards. */
.post-image{
  width:100%;
  border-radius:var(--radius);
  margin:0 0 18px;
  max-height:280px;
  object-fit:cover;
}

/*
 * Floating menu styles. The fly-menu anchors appear fixed in the lower
 * corner of the viewport, giving quick access to key sections of the
 * site. Buttons are circular, with a subtle gradient matching the
 * brand colours. On small screens the menu shrinks slightly to stay
 * unobtrusive.
 */
.fly-menu{
  position:fixed;
  bottom:20px;
  right:20px;
  display:flex;
  flex-direction:column;
  gap:8px;
  z-index:100;
}
.fly-menu a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:var(--text);
  font-weight:800;
  text-decoration:none;
  box-shadow:0 4px 10px rgba(0,0,0,.3);
  transition:transform .2s ease;
}
.fly-menu a:hover{
  transform:translateY(-3px);
}
@media (max-width:560px){
  .fly-menu{
    right:14px;
    bottom:14px;
  }
  .fly-menu a{
    width:46px;
    height:46px;
    font-size:12px;
  }
}

/*
 * Logo image styling. Replaces the gradient square defined by the .logo
 * element in the nav with an actual image. The .logo-img class ensures
 * that the logo maintains the same dimensions and rounded corners.
 */
.logo-img{
  width:34px;
  height:34px;
  object-fit:contain;
  border-radius:12px;
}
.page h1{font-size:28px}
.page p, .page li{color: var(--muted);}
.prose{
  padding:18px;
}
.prose h2{margin-top:18px; font-size:18px}
/* Ensure links in articles sind gut sichtbar. Verwende Markenfarbe aus dem Light Theme. */
.prose a{color: var(--brand);} 

/* Prosa-Text lesbarer machen: dunklere Schrift für Absätze und Listen */
.prose p,
.prose li{
  color: var(--text);
}

@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr;}
  .cat{grid-column: span 6;}
  .post{grid-column: span 12;}
}
@media (max-width: 560px){
  .navlinks{gap:8px}
  .navlinks a{padding:7px 9px; font-size:13px}
  .cat{grid-column: span 12;}
  .hero-main{padding:20px}
}

/* --------------------------------------------------------------------------
 * Light theme overrides
 *
 * These styles override the original dark theme with a bright, modern look
 * reminiscent of Smash‑n‑Connect. Colours, backgrounds and interactive
 * elements have been tweaked to improve readability on light backgrounds.
 * The floating menu at the bottom of the page is also introduced here.
 * ------------------------------------------------------------------------ */
:root{
  --bg:#f8faff;
  --panel:#ffffff;
  --text:#0d1333;
  --muted:#6b789a;
  --brand:#2467ff;
  --brand2:#7a5cff;
  --line:rgba(0,0,0,.08);
  --shadow:0 4px 12px rgba(0,0,0,.1);
}

body{
  background: linear-gradient(180deg, #f8faff 0%, #f4f7ff 100%);
  color:var(--text);
}

/* Top navigation bar */
.topbar{
  background:#ffffff;
  border-bottom:1px solid var(--line);
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  backdrop-filter:none;
}

/* Remove default gradient logo square, show uploaded logo image */
.logo{ display:none; }
.logo-img{
  width:34px;
  height:34px;
  object-fit:contain;
  border-radius:12px;
}

/* Navigation links */
.navlinks a{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
  transition:background .15s ease;
}
.navlinks a.active, .navlinks a:hover{
  color:var(--brand);
  border-color:var(--brand);
  background:#eef3ff;
}

/* Card backgrounds */
.card{
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

/* Hero decoration */
.hero-main:before{
  background: radial-gradient(circle at 50% 50%, rgba(36,103,255,.15), transparent 70%);
  filter:blur(8px);
  transform:rotate(0deg);
}

/* Kicker and dot */
.kicker{
  color:var(--brand);
  border:1px solid var(--line);
  background:#eff4ff;
}
.dot{border-radius:50%;}

/* Bullet lists on hero side */
.bullets li{
  background:#f5f8ff;
  color:var(--text);
}

/* Category tags */
.cat .tag{
  color:var(--brand);
  border:1px solid var(--brand);
  background:#eef3ff;
}
.cat .link{
  color:var(--brand);
}

/* Badges and meta */
.badge{
  background:#eef3ff;
  border:1px solid var(--line);
  color:var(--brand);
}
.read{
  color:var(--brand);
}

/* Footer styling */
.footerbar{
  background:#ffffff;
  color:var(--muted);
}
.footerbar a{
  color:var(--brand);
}

/* Hide old fly-menu and define new float-menu */
.fly-menu{ display:none; }

.float-menu{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:12px;
  z-index:100;
}
.float-menu a{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background:#eff4ff;
  border:1px solid var(--line);
  color:var(--text);
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  box-shadow:0 4px 8px rgba(0,0,0,.08);
  transition:transform .2s ease;
}
.float-menu a:hover{
  transform:translateY(-2px);
}
.float-menu .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--brand);
}

@media (max-width:560px){
  .float-menu{
    gap:8px;
    bottom:14px;
  }
  .float-menu a{
    padding:5px 10px;
    font-size:12px;
  }
}
