/* style.css - Liminalium Light/Dark Hybrid */

/* --- 1. DESIGN VARIABLES --- */
:root {
  /* Basis-Farben */
  --bg-base: #050505;
  
  --text-main: #e6e6e6;
  --text-muted: #9ca3af;
  
  /* Akzente */
  --accent: #ff4d5a;       /* Medienkunst */
  --accent-blue: #4d8aff;  /* Tech */
  --accent-hybrid: #d4a3ea;/* Hybrid */
  
  /* Glassmorphism Dark */
  --card-bg: rgba(20, 21, 24, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
  
  /* HEADER ANPASSUNG: Transparenter (0.6 statt 0.85) */
  --header-bg: rgba(5, 5, 5, 0.6);
  
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- 2. GLOBAL & TYPOGRAPHY --- */
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-base);
  
  /* HIER: DATEI GEÄNDERT AUF .jpeg */
  background-image: url('bg.jpeg');
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- 3. ATMOSPHERIC OVERLAY (Heller gemacht) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* ANPASSUNG: Die Transparenzwerte wurden deutlich reduziert (z.B. 0.3 statt 0.7).
     Dadurch scheint das bg.jpeg viel heller durch.
  */
  background: 
    radial-gradient(circle at 15% 25%, rgba(60, 70, 100, 0.2), transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(80, 40, 50, 0.2), transparent 50%),
    linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5)); /* Weniger Abdunklung */
  pointer-events: none;
  backdrop-filter: blur(1px); /* Blur reduziert, damit Bild klarer ist */
}

/* Optional: Noise (etwas reduziert für cleaneren Look) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* --- 4. HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.2rem;
  background: var(--header-bg);
  /* Starker Blur, damit Text lesbar bleibt trotz Transparenz */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header .inner {
  max-width: 52rem;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.switcher {
  position: absolute;
  top: 0.2rem;
  right: 0;
  display: flex;
  gap: 0.8rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}
.nav-btn:hover {
  background: var(--text-main);
  color: var(--bg-base);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.author-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0.2rem 0 0.4rem 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-main);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  padding-right: 100px;
}
h1 .subtitle {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* --- 5. CARDS --- */
.container {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1rem 5rem 1rem;
}

details.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin: 1.2rem 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

details.card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

details.card[open] {
  background: rgba(30, 31, 35, 0.85);
  border-color: rgba(255,255,255,0.2);
}

details.card > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

details.card > summary::after {
  content: "›";
  font-size: 1.6rem;
  line-height: 0.8;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
}
details.card[open] > summary::after {
  transform: rotate(90deg);
  color: var(--text-main);
}
details.card > summary::-webkit-details-marker { display: none; }

.section {
  padding: 0 1.4rem 1.4rem 1.4rem;
  animation: fadeIn 0.4s ease-out;
  color: #d1d5db;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }

/* --- 6. ELEMENTS --- */
a { color: var(--text-main); text-decoration: underline; text-decoration-color: var(--text-muted); text-underline-offset: 3px; transition: all 0.2s; }
a:hover { color: #fff; text-decoration-color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.callout {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--text-main);
}
.callout b { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Matrix (Grid) */
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }
.matrix .cell {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
}
.matrix h4 { margin: 0 0 0.5rem 0; color: #fff; font-weight: 600; }
@media (max-width: 640px){ .matrix{grid-template-columns:1fr} }
