/* Custom Theme: Türkis Tech-Look mit Grün-Glow (Header-Kill erweitert aus Docs) */
:root {
  --accent-turkis: #40E0D0;
  --accent-green: #00ff00;
  --bg-dark: #1a1a1a;
  --text-primary: #fff;
  --text-secondary: #ccc;
  --border-dark: #333;
  --shadow-glow: rgba(0,255,0,0.2);  /* Deine alte Grün-Animation */
  --shadow-turkis: rgba(64,224,208,0.3);
}

body { background: #0d1117; color: var(--text-primary); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; }

/* Theme-Header killen (erweitert – Docs-Selectors: masthead, skip-link, toggle-nav etc.) */
.site-header, .site-title, .toggle-nav, .skip-link, .masthead__inner-wrap, .site-logo, .navigation__primary, .header-bar, .masthead, .page__header, .site-branding, .navigation--main, .skip-to-content, .masthead__menu {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;  /* Screenreader-freundlich versteckt */
}
.page__header { min-height: 0 !important; padding-top: 0 !important; border-bottom: none !important; }

/* Logo in Hero */
.hero-section img { border-radius: 50%; border: 2px solid var(--accent-turkis); box-shadow: 0 2px 8px var(--shadow-turkis); }

/* Hero Section */
.hero-section {
  display: flex; align-items: center; margin: 2em 0; padding: 1.5em;
  background: rgba(0,0,0,0.4); border-left: 5px solid var(--accent-turkis);
  border-radius: 0 8px 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-section div { flex: 1; }
.hero-section h1 { margin: 0 0 0.5em; color: var(--text-primary); font-size: 2.2em; }
.hero-section p { margin: 0; font-size: 1.1em; line-height: 1.6; color: var(--text-secondary); }
.hero-section p:last-of-type { color: var(--accent-turkis); font-size: 1em; margin-top: 0.5em; }
.hero-section a { color: var(--accent-turkis); text-decoration: none; border-bottom: 1px solid var(--accent-turkis); }

/* Card-Grids */
h2 { color: var(--accent-turkis); text-align: center; margin: 2em 0 1.5em; font-size: 1.8em; }
.resource-grid, .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2em; margin: 2em 0; max-width: 1200px; margin-left: auto; margin-right: auto; }
.resource-card, .info-card {
  background: var(--bg-dark); border: 1px solid var(--border-dark); border-radius: 12px;
  padding: 1.5em; text-align: center; transition: all 0.3s ease; position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.resource-card:hover, .info-card:hover {
  transform: translateY(-8px) scale(1.02); box-shadow: 0 8px 20px var(--shadow-glow);
  border-color: var(--accent-turkis);
}
.resource-card i, .info-card i { font-size: 2.5em; color: var(--accent-turkis); margin-bottom: 0.5em; display: block; }
.resource-card h3, .info-card h3 { margin: 0.5em 0 0.3em; color: var(--text-primary); font-size: 1.2em; }
.resource-card h3 a, .info-card h3 a { color: var(--accent-turkis); text-decoration: none; }
.resource-card p, .info-card p { color: var(--text-secondary); margin: 0; font-size: 0.95em; }

/* Icon-Taskbar & Sidebar */
.icon-taskbar { position: fixed; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 1000; background: rgba(0,0,0,0.8); padding: 8px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.icon-taskbar a, .menu-trigger { color: var(--accent-turkis); font-size: 1.2em; transition: color 0.3s; text-decoration: none; padding: 4px; border-radius: 4px; }
.menu-trigger { cursor: pointer; position: relative; }
.menu-trigger:hover i { color: #00BFFF; }
.sidebar-menu {
  position: absolute;
  top: 100%;
  right: 0; /* Anchor right edge to trigger's right */
  left: auto;
  width: 250px; /* Fixed width, extends left */
  max-height: 0; /* Start collapsed vertically */
  opacity: 0;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--accent-turkis);
  border-radius: 8px 0 0 8px; /* Rounded on left side for left-opening feel */
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Vertical animation only */
  padding: 0;
  box-shadow: 0 4px 12px var(--shadow-turkis);
}
.menu-trigger:hover .sidebar-menu {
  max-height: 400px; /* Expand downward */
  opacity: 1;
  padding: 10px 0;
}
.sidebar-menu a { display: block; color: var(--text-secondary); padding: 12px 16px; text-decoration: none; transition: background 0.3s; border-bottom: 1px solid var(--border-dark); }
.sidebar-menu a:hover { background: rgba(64,224,208,0.1); color: var(--accent-turkis); }

/* Footer */
.footer-links { text-align: center; margin-top: 3em; padding: 1em; background: rgba(0,0,0,0.3); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.footer-links a { background: var(--accent-turkis); color: #000; padding: 0.8em 1.5em; margin: 0 0.5em; text-decoration: none; border-radius: 25px; font-weight: bold; transition: all 0.3s; }
.footer-links a:hover { background: #00BFFF; transform: scale(1.05); }

/* HR */
hr { border: 1px solid var(--accent-turkis); margin: 3em 0; }

/* Sidebar-Fix */
.page__sidebar { background: var(--bg-dark); border-color: var(--border-dark); }

/* Mobile */
@media (max-width: 768px) {
  .resource-grid, .info-grid { grid-template-columns: 1fr; gap: 1em; }
  .hero-section img { width: 60px; height: 60px; }
  .hero-section { flex-direction: column; text-align: center; }
  .hero-section div { text-align: left; }
  .icon-taskbar { right: 10px; top: 10px; flex-wrap: wrap; }
  .sidebar-menu { left: 0; width: 100vw; border-radius: 0; }
}