:root {
  --gradient-cyan-start: #36d7b7;
  --gradient-cyan-end: #43a2ff;
  --gradient-purple-start: #8e44ad;
  --gradient-purple-end: #d279ee;

  --accent-gradient-cyan: linear-gradient(90deg, var(--gradient-cyan-start), var(--gradient-cyan-end));
  --accent-gradient-purple: linear-gradient(90deg, var(--gradient-purple-start), var(--gradient-purple-end));
  
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --spacing-unit: 8px;
}

body.dark {
  --bg-color: #010409;
  --card-bg-color: #0d1117;
  --border-color: rgba(255, 255, 255, 0.1);
  --text-color: #e6edf3;
  --text-color-strong: #ffffff;
  --text-muted-color: #7d8590;
  --hero-bg: 
    radial-gradient(ellipse at 50% -20%, rgba(67, 162, 255, 0.1), transparent 50%),
    radial-gradient(ellipse at 90% 40%, rgba(142, 68, 173, 0.1), transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(54, 215, 183, 0.08), transparent 60%),
    var(--bg-color);
  --card-hover-border-color: rgba(255, 255, 255, 0.3);
  --section-button-hover-bg: rgba(255, 255, 255, 0.1);
  --tag-bg: rgba(255, 255, 255, 0.05);
  --prompt-block-bg: var(--bg-color);
  --lifestream-shadow: 0 0 50px -20px rgba(67, 162, 255, 0.1);
  --cookie-widget-shadow: 0 4px 12px rgba(0,0,0,0.4);
  --cookie-widget-shadow-hover: 0 6px 16px rgba(0,0,0,0.6);
}

body.light {
  --bg-color: #f6f8fa;
  --card-bg-color: #ffffff;
  --border-color: #d0d7de;
  --text-color: #24292f;
  --text-color-strong: #000000;
  --text-muted-color: #57606a;
  --hero-bg:
    radial-gradient(ellipse at 50% -20%, rgba(67, 162, 255, 0.08), transparent 60%),
    radial-gradient(ellipse at 90% 40%, rgba(142, 68, 173, 0.06), transparent 70%),
    radial-gradient(ellipse at 10% 80%, rgba(54, 215, 183, 0.05), transparent 70%),
    var(--bg-color);
  --card-hover-border-color: #adb5bd;
  --section-button-hover-bg: #f0f2f5;
  --tag-bg: #f0f2f5;
  --prompt-block-bg: #f0f2f5;
  --lifestream-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.06);
  --cookie-widget-shadow: 0 4px 12px rgba(0,0,0,0.1);
  --cookie-widget-shadow-hover: 0 6px 16px rgba(0,0,0,0.15);
}

/* Basic Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main, .page-container > main {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 8) 0;
}

a {
  color: var(--gradient-cyan-end);
  text-decoration: none;
  transition: filter 0.2s ease;
}
a:hover {
  filter: brightness(1.2);
}

.gradient-text-cyan,
.gradient-text-purple {
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-cyan {
  background-image: var(--accent-gradient-cyan);
}
.gradient-text-purple {
  background-image: var(--accent-gradient-purple);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: var(--spacing-unit);
  background: var(--hero-bg);
  position: relative;
}

.hero-content {
  max-width: 800px;
  width: 100%;
}

/* Modern Theme Toggle Button (wiederhergestellt) */
/* Modern Theme Toggle Button (wiederhergestellt) */
.theme-toggle.modern-toggle {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-cyan-start), var(--gradient-cyan-end));
  box-shadow: 0 2px 12px rgba(67,162,255,0.10);
  color: var(--text-color-strong);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.2s, color 0.2s;
  z-index: 10;
  outline: none;
}
.theme-toggle.modern-toggle.light {
  background: linear-gradient(135deg, #fff 60%, var(--gradient-cyan-end) 100%);
  color: #222;
}
.theme-toggle.modern-toggle.dark {
  background: linear-gradient(135deg, #181c20 60%, var(--gradient-cyan-end) 100%);
  color: #ffe;
}
.theme-toggle.modern-toggle:focus {
  box-shadow: 0 0 0 3px #43a2ff55;
}
.theme-toggle.modern-toggle:hover {
  box-shadow: 0 4px 18px rgba(67,162,255,0.18);
  filter: brightness(1.08);
}
.toggle-icon-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  font-size: 24px;
  transition: opacity 0.35s, transform 0.35s;
  opacity: 0;
  transform: scale(0.7) rotate(-30deg);
}
.toggle-icon.in {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  z-index: 2;
}
.toggle-icon.out {
  opacity: 0;
  transform: scale(0.7) rotate(30deg);
  z-index: 1;
}

.hero-badge {
  font-size: 0.9rem;
  color: var(--text-muted-color);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.hero-title {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color-strong);
  margin-bottom: var(--spacing-unit);
}

.hero-handle {
  font-family: var(--font-mono);
  margin-bottom: calc(var(--spacing-unit) * 3);
}
.hero-handle > span {
    color: var(--text-muted-color);
}
.hero-handle .handle-name {
    color: var(--gradient-cyan-end);
}
.hero-handle .handle-name:hover {
    filter: brightness(1.2);
}

.hero-description {
  max-width: 600px;
  margin-bottom: calc(var(--spacing-unit) * 4);
  font-size: 16px;
}

.hero-buttons {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.hero-button {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-unit);
}

.hero-button.primary {
  background: var(--accent-gradient-cyan);
  color: #010409;
  border-color: transparent;
}
.hero-button.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 5px 20px -5px rgba(67, 162, 255, 0.4);
}

.hero-button.secondary {
  background: transparent;
  color: var(--text-color);
  border-color: var(--border-color);
}
.hero-button.secondary:hover {
  background: var(--card-bg-color);
  border-color: var(--text-color-strong);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  color: var(--text-muted-color);
}
.hero-socials a {
  color: var(--text-muted-color);
  font-size: 1.2rem;
}
.hero-socials a:hover {
  color: var(--text-color-strong);
}

/* --- General Section & Card Styles --- */
.section {
  padding: calc(var(--spacing-unit) * 8) 0;
}

.section-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6);
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-unit);
  color: var(--text-color-strong);
}
.section-header p {
  color: var(--text-muted-color);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: calc(var(--spacing-unit) * 3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border-color);
}

.card.highlight {
  border: 1px solid transparent;
  background: linear-gradient(var(--card-bg-color), var(--card-bg-color)) padding-box, var(--accent-gradient-cyan) border-box;
  position: relative;
}
.card.highlight:hover {
    box-shadow: 0 5px 30px -5px rgba(67, 162, 255, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--text-muted-color);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.card-category {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
  text-transform: capitalize;
}
.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color-strong);
  margin-bottom: var(--spacing-unit);
}
.card-description {
  color: var(--text-muted-color);
  font-size: 1rem;
  flex-grow: 1;
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-unit);
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.tag {
  background-color: var(--tag-bg);
  color: var(--text-muted-color);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted-color);
  font-size: 0.8rem;
  margin-top: auto;
}
.card-date, .card-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}
.card-link {
    color: var(--text-color);
}

.section-footer {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 6);
}
.section-button, .media-button {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2.5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-unit);
}
.section-button:hover {
  background: var(--section-button-hover-bg);
  border-color: var(--card-hover-border-color);
}

/* --- Media Hub --- */
.media-card {
    padding: 0;
    overflow: hidden;
}
.media-thumbnail {
    position: relative;
}
.media-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.media-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
  background: rgba(20,24,34,0.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 4px 8px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border-radius: 6px;
}
.media-card-content {
    padding: calc(var(--spacing-unit) * 3);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.media-button {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}
.platform-youtube .fa-youtube { color: #ff0000; }
.platform-podcast .fa-spotify { color: #1ed760; }
.button-group {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
}

/* --- Lifestream --- */
.lifestream-container {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: var(--lifestream-shadow);
}
.lifestream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid var(--border-color);
}
.lifestream-header h3 { font-size: 1.1rem; font-weight: 500; color: var(--text-color-strong); }
.live-badge { font-size: 0.8rem; color: var(--gradient-cyan-start); }
.lifestream-list { display: flex; flex-direction: column; gap: calc(var(--spacing-unit) * 2); }
.lifestream-item { display: flex; align-items: center; gap: calc(var(--spacing-unit) * 2); padding: var(--spacing-unit) 0;}
.lifestream-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.lifestream-icon-wrapper.color-red { background: #ff000020; color: #ff4d4d; }
.lifestream-icon-wrapper.color-purple { background: #8e44ad20; color: #d279ee; }
.lifestream-icon-wrapper.color-grey { background: #7d859020; color: #a1aab4; }
.lifestream-icon-wrapper.color-green { background: #1ed76020; color: #35f377; }
.lifestream-icon-wrapper.color-brown { background: #d2691e20; color: #e59a6d; }
.lifestream-icon-wrapper.color-blue { background: #1da1f220; color: #1da1f2; }


.lifestream-text {
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
}
.lifestream-text strong {
  font-weight: 600;
  color: var(--text-color-strong);
}
.lifestream-text a.lifestream-link {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted-color);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}
.lifestream-text a.lifestream-link:hover {
  color: var(--gradient-cyan-end);
  border-bottom-color: var(--gradient-cyan-end);
}
.lifestream-text .inline-icon {
  font-size: 0.8em;
  margin-left: 4px;
  display: inline-block;
  transform: translateY(-2px);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.lifestream-text a.lifestream-link:hover .inline-icon {
    opacity: 1;
}

.lifestream-time { font-size: 0.8rem; color: var(--text-muted-color); display: flex; align-items: center; gap: 6px; margin-top: var(--spacing-unit);}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
    margin-top: calc(var(--spacing-unit) * 4);
    color: var(--text-muted-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-links a {
    color: var(--text-muted-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-color);
    text-decoration: underline;
    filter: none;
}

.footer-links span {
    color: var(--text-muted-color);
}


/* --- Sub-Page Layouts (Prompt Library & Blog Post) --- */
.page-container { display: flex; flex-direction: column; min-height: 100vh; }
.page-container > main { flex-grow: 1; }

.page-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 6);
}
.page-header .back-button {
    grid-column: 1 / 2;
    justify-self: start;
}
.page-header .page-header-title {
    grid-column: 2 / 3;
    justify-self: center;
    text-align: center;
}
.page-header .theme-toggle {
    grid-column: 3 / 4;
    justify-self: end;
    position: static !important; /* Override hero theme toggle */
}

/* Prompt Library Specific */
.prompt-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.filter-tag {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted-color);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 2);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: var(--section-button-hover-bg);
    color: var(--text-color);
    border-color: var(--card-hover-border-color);
}

.filter-tag.active {
    background: var(--accent-gradient-cyan);
    color: #010409;
    border-color: transparent;
    font-weight: 600;
}

.prompt-card {
    cursor: default;
    background: var(--card-bg-color);
}
.card-header .copy-button {
    background: none;
    border: none;
    color: var(--text-muted-color);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    transition: all 0.2s ease;
}
.card-header .copy-button:hover { color: var(--text-color-strong); }
.card-header .copy-button.copied { color: #1ed760; }

.prompt-text-block {
    background-color: var(--prompt-block-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
    flex-grow: 1;
}

.prompt-text-block p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-color);
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- Blog Post Page --- */
.blog-post-article {
    max-width: 75ch; /* Optimal for reading */
    margin: 0 auto;
}

.blog-post-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}
.blog-post-header .card-category {
    justify-content: center;
    font-size: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.blog-post-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    line-height: 1.1;
    color: var(--text-color-strong);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-unit);
    color: var(--text-muted-color);
    font-family: var(--font-mono);
}
.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}

.blog-post-content {
    line-height: 1.7;
}

.blog-post-content p {
    font-size: 16px;
    margin-bottom: 1.5em;
    color: var(--text-color);
}

.blog-post-content h2 {
    font-size: 1.8rem;
    color: var(--text-color-strong);
    margin: 2.5em 0 1em;
    line-height: 1.3;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--border-color);
}

.blog-post-content h3 {
    font-size: 1.4rem;
    color: var(--text-color-strong);
    margin: 2em 0 1em;
}

.blog-post-content a {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
}
.blog-post-content a:hover {
    filter: brightness(1.1);
    text-decoration-thickness: 2px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.5em 1.5em;
    padding-left: 1em;
}
.blog-post-content li {
    margin-bottom: 0.75em;
}

.blog-post-content blockquote {
    margin: 2em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--gradient-cyan-start);
    background-color: var(--tag-bg);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted-color);
}
body.dark .blog-post-content blockquote {
    color: var(--text-color);
}

.blog-post-content pre {
    background-color: var(--prompt-block-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 2);
    margin: 2em 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.9rem;
}
.blog-post-content code {
    font-family: var(--font-mono);
}
.blog-post-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}
.blog-post-content p > code, 
.blog-post-content li > code {
    background-color: var(--tag-bg);
    color: var(--text-color);
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* --- Activity Log Page --- */
.activity-log-container {
    max-width: 800px;
    margin: 0 auto;
}

.activity-log-intro {
    text-align: center;
    color: var(--text-muted-color);
    margin-bottom: calc(var(--spacing-unit) * 6);
    font-size: 1.1rem;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Center of 40px icon */
    top: 20px; /* Start at center of first icon */
    bottom: 20px; /* End at center of last icon */
    width: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    padding-left: 60px; /* 40px icon + 20px gap */
    margin-bottom: calc(var(--spacing-unit) * 3);
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
    background-color: var(--bg-color); /* To hide the line behind it */
    border: 2px solid var(--border-color);
}

.timeline-icon-wrapper.color-red { background: #ff000020; color: #ff4d4d; border-color: #ff000030; }
.timeline-icon-wrapper.color-purple { background: #8e44ad20; color: #d279ee; border-color: #8e44ad30; }
.timeline-icon-wrapper.color-grey { background: #7d859020; color: #a1aab4; border-color: #7d859030; }
.timeline-icon-wrapper.color-green { background: #1ed76020; color: #35f377; border-color: #1ed76030; }
.timeline-icon-wrapper.color-brown { background: #d2691e20; color: #e59a6d; border-color: #d2691e30; }
.timeline-icon-wrapper.color-blue { background: #1da1f220; color: #1da1f2; border-color: #1da1f230; }

.timeline-content {
    padding-top: calc(var(--spacing-unit) * 1);
}

/* --- Blog Archive Page --- */
.blog-archive-container {
    max-width: 800px;
    margin: 0 auto;
}

.archive-year-section {
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.archive-year-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color-strong);
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding-bottom: var(--spacing-unit);
    border-bottom: 2px solid var(--border-color);
}

.blog-archive-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.blog-archive-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}
.blog-archive-item:hover {
    background-color: var(--card-bg-color);
    border-color: var(--border-color);
    color: var(--text-color-strong);
    filter: none;
}
.archive-item-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted-color);
    transition: color 0.2s ease;
}
.blog-archive-item:hover .archive-item-date {
    color: var(--text-color);
}
.archive-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}
.archive-item-tags {
    display: none;
}
.archive-item-arrow {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.blog-archive-item:hover .archive-item-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--gradient-cyan-start);
}


/* --- Cookie Banner & Widget --- */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner {
    position: fixed;
    bottom: calc(var(--spacing-unit) * 2);
    left: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
    animation: slideUpFadeIn 0.5s ease-out forwards;
}

body.dark .cookie-banner {
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.cookie-icon {
    font-size: 1.8rem;
    color: var(--gradient-cyan-start);
    flex-shrink: 0;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.cookie-banner-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
    flex-shrink: 0;
}

.cookie-banner-actions .hero-button,
.cookie-banner-actions .section-button {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--cookie-widget-shadow);
    transition: all 0.3s ease;
}

.cookie-widget:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--cookie-widget-shadow-hover);
    color: var(--gradient-cyan-start);
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 4);
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.placeholder-notice {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--text-color);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    font-size: 0.95rem;
}
.placeholder-notice strong {
    color: var(--text-color-strong);
}
body.light .placeholder-notice {
    color: var(--text-color-strong);
}

.legal-page-content h3 {
    font-size: 1.5rem;
    color: var(--text-color-strong);
    margin: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 1.5) 0;
}

.legal-page-content h4 {
    font-size: 1.2rem;
    color: var(--text-color-strong);
    margin: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 1) 0;
}

.legal-page-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-unit);
}

.legal-page-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Animation & Effects --- */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.lazy-load.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */
@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; }
    .button-group { flex-direction: column; }
    .hero-content { text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-socials { justify-content: center; }
    
    .page-header {
      grid-template-columns: auto 1fr;
      margin-bottom: calc(var(--spacing-unit) * 4);
    }
    .page-header .page-header-title {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        margin-top: var(--spacing-unit);
    }
    .page-header .theme-toggle {
        grid-column: 2 / 3;
        justify-self: end;
    }

    .blog-post-title {
        font-size: 2.2rem;
    }

    .blog-archive-item {
        grid-template-columns: 1fr auto;
        gap: calc(var(--spacing-unit) * 2);
    }

    .archive-item-date {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
        font-size: 0.8rem;
    }

    .archive-item-title {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }
    
    .archive-item-arrow {
       grid-row: 1 / 3;
       grid-column: 2 / 3;
       align-self: center;
    }
}

@media (max-width: 680px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: calc(var(--spacing-unit) * 2);
        text-align: center;
    }
    .cookie-icon {
        margin: 0 auto calc(var(--spacing-unit) * 1);
    }
    .cookie-banner-actions {
       justify-content: center;
    }

    .timeline {
      margin-left: -10px; /* Pull it a bit to the left to give content more space */
    }
    .timeline::before {
        left: 16px; /* Center of 32px icon */
    }
    .timeline-item {
        padding-left: 50px; /* 32px icon + 18px gap */
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    .timeline-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .timeline-content {
      padding-top: calc(var(--spacing-unit) * 0.5);
    }
}