/* --- BASIS & VARIABLEN --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --bg-color: #fcfcfc;
  --surface-color: #ffffff;
  --border-color: #eaeaea;
  --text-main: #333333;
  --text-muted: #666666;
  --accent: #3498db;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent);
}

/* --- HEADER & ADSENSE --- */
.site-header {
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.logo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.burger-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

.adsense-dummy {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* --- LAYOUT WRAPPER --- */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- SIDEBAR NAVIGATION --- */
.sidebar {
  display: none; /* Mobile first: versteckt, gesteuert über JS */
  background: var(--surface-color);
  padding: 2rem 1rem;
  border-right: 1px solid var(--border-color);
}

.sidebar.active {
  display: block;
  position: fixed;
  top: 60px;
  left: 0;
  width: 80%;
  height: calc(100vh - 60px);
  overflow-y: auto;
  z-index: 99;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  color: var(--text-main);
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.sidebar a:hover {
  background: var(--border-color);
  color: var(--accent);
}

/* --- MAIN CONTENT --- */
.main-content {
  padding: 2rem 1rem;
  flex: 1;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 800px;
}

/* --- CATEGORY GRID (Startseite) --- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.btn-category {
  display: block;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 8px;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-category:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* --- QUOTE CARDS (Template) --- */
.quote-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.quote-text {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.quote-meta {
  font-size: 0.9rem;
}

.quote-author {
  display: block;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.quote-desc {
  color: var(--text-muted);
}

.quote-year {
  font-size: 0.8rem;
  color: #999;
  display: block;
  margin-top: 0.5rem;
}

/* Copy Button */
.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f4f4f4;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.copy-btn:hover {
  background: #e0e0e0;
}

.copy-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}

.copy-feedback {
  position: absolute;
  top: 1.5rem;
  right: 3.5rem;
  font-size: 0.75rem;
  background: var(--text-main);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.copy-feedback.show {
  opacity: 1;
  visibility: visible;
}

/* --- FOOTER --- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  color: var(--text-muted);
}

/* --- DESKTOP MEDIA QUERIES --- */
@media (min-width: 768px) {
  .header-top {
    max-width: 1200px;
  }
  .burger-btn {
    display: none;
  }
  .layout-wrapper {
    flex-direction: row;
  }
  .sidebar {
    display: block;
    width: 250px;
    height: calc(100vh - 150px);
    position: sticky;
    top: 150px;
  }
  .main-content {
    padding: 3rem 2rem;
  }
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}