/**
 * 99-project-overrides.css
 * 
 * AUTO-GENERATED: All @imports have been resolved inline.
 * Original imports were resolved during staging.
 */

/* ============================================================
   Reflexive Philosophy — Project-specific CSS Overrides
   ============================================================

   Philosophische Farbpalette und site-spezifische Styles.
   Wird ueber base-website CSS-System geladen (Nummern 89-99).

   Stand: 2026-02-22 (Initial, wird bei Migration erweitert)
   ============================================================ */

/* === Philosophische Farbpalette === */
:root {
  /* Die vier Sinnelemente */
  --medial-purple:       #6A1B9A;   /* Medium (M) */
  --subject-gold:        #FFCB00;   /* Subjekt (Ss) */
  --intersubjective-red: #D32F2F;   /* Dialog (So) */
  --object-blue:         #1565C0;   /* Objekt (O) */

  /* Hintergrund-Varianten (hell) */
  --medial-bg:           #f3e5f5;
  --subject-bg:          #fff8e1;
  --dialog-bg:           #fce4ec;
  --object-bg:           #e3f2fd;

  /* Site-spezifische Akzente */
  --primary-gradient: linear-gradient(135deg, var(--medial-purple), var(--object-blue));
}

/* === Hero-Section (Homepage) === */
.hero-philosophy {
  background: var(--primary-gradient);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-philosophy h1,
.hero-philosophy h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-philosophy .subtitle {
  font-size: 1.2rem;
  color: white;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  margin: 0 0 2rem 0;
}

/* === Element-Cards === */
.element-card {
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid;
  margin-bottom: 1rem;
}

.element-card.medium {
  background: var(--medial-bg);
  border-color: var(--medial-purple);
}

.element-card.subject {
  background: var(--subject-bg);
  border-color: var(--subject-gold);
}

.element-card.dialog {
  background: var(--dialog-bg);
  border-color: var(--intersubjective-red);
}

.element-card.object {
  background: var(--object-bg);
  border-color: var(--object-blue);
}

/* === Reflection Rhombus (SVG) === */
.reflection-rhombus-container {
  max-width: 300px;
  margin: 2rem auto;
}

.reflection-rhombus-container.sm {
  max-width: 200px;
}

.reflection-rhombus-container.lg {
  max-width: 400px;
}

.reflection-rhombus svg {
  width: 100%;
  height: auto;
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* === Comparison Table === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.comparison-table .highlight {
  background: var(--medial-bg);
}

/* === Reflection Grid (4-Quadrant) === */
.reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.reflection-grid .quadrant {
  padding: 1.5rem;
  border-radius: 8px;
}

.reflection-grid .quadrant-medium {
  background: var(--medial-bg);
  border: 2px solid var(--medial-purple);
}

.reflection-grid .quadrant-subject {
  background: var(--subject-bg);
  border: 2px solid var(--subject-gold);
}

.reflection-grid .quadrant-dialog {
  background: var(--dialog-bg);
  border: 2px solid var(--intersubjective-red);
}

.reflection-grid .quadrant-object {
  background: var(--object-bg);
  border: 2px solid var(--object-blue);
}

@media (max-width: 600px) {
  .reflection-grid {
    grid-template-columns: 1fr;
  }
}

/* === Hero H2 styling === */
.hero-philosophy h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
}

/* === Highlight Box (CTA replacement) === */
.highlight-box {
  padding: 1.5rem 2rem;
  border-radius: 8px;
  background: #f5f5f5;
  border-left: 4px solid var(--medial-purple);
  margin: 1.5rem 0;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--medial-purple);
}

.highlight-box .btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--medial-purple);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}

.highlight-box .btn:hover {
  opacity: 0.9;
}

/* === Hierarchy Diagram === */
.hierarchy-diagram {
  margin: 1.5rem 0;
}

.hierarchy-diagram h4 {
  margin-bottom: 1rem;
}

.hierarchy-diagram .element-card {
  margin-bottom: 0.75rem;
}

.hierarchy-diagram .element-card ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.hierarchy-diagram .element-card li {
  margin-bottom: 0.25rem;
}

/* === Accordion / FAQ === */
.accordion-item,
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-item summary,
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  background: #fafafa;
  list-style: none;
}

.accordion-item summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::before,
.faq-item summary::before {
  content: "▸ ";
  margin-right: 0.5rem;
}

.accordion-item[open] summary::before,
.faq-item[open] summary::before {
  content: "▾ ";
}

.accordion-content,
.faq-answer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e0e0e0;
}

.faq-section {
  margin: 1.5rem 0;
}

/* === Contact Grid === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* === Quotes Section === */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.quote-card {
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--medial-purple);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quote-author {
  font-style: italic;
  color: #666;
  margin-top: 0.75rem;
}

/* === Bio Sidebar === */
.bio-sidebar .portrait-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bio-sidebar .portrait {
  max-width: 200px;
  border-radius: 8px;
}

.bio-sidebar .caption {
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
}

/* === Card Component === */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.card-header.medium { background: var(--medial-bg); }
.card-header.subject { background: var(--subject-bg); }
.card-header.dialog { background: var(--dialog-bg); }
.card-header.object { background: var(--object-bg); }

.card-content {
  padding: 1rem;
}

.card-title {
  margin: 0;
  font-size: 1rem;
}

/* === Timeline === */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.timeline-list li:last-child {
  border-bottom: none;
}

/* === Element card links === */
.element-card a {
  text-decoration: none;
  color: inherit;
}

.element-card h3 a,
.element-card h5 a {
  color: inherit;
}

.element-card h3 a:hover {
  text-decoration: underline;
}

/* === Padding utilities === */
.p-4 { padding: 1rem; }
.py-xl { padding-top: 3rem; padding-bottom: 3rem; }
.my-lg { margin-top: 2rem; margin-bottom: 2rem; }
.my-xl { margin-top: 3rem; margin-bottom: 3rem; }
.mt-md { margin-top: 1rem; }
.mt-xl { margin-top: 3rem; }
.gap-4 { gap: 1rem; }

.flex { display: flex; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.col-span-4 { grid-column: span 4; }
.col-span-8 { grid-column: span 8; }

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .col-span-4, .col-span-8 {
    grid-column: span 1;
  }
}

/* === Button styles === */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-primary {
  background: var(--medial-purple);
  color: white;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

/* === Section styling === */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: -1rem auto 2rem;
}

/* === Tag Styles (from reflexivitypress) === */
.tags-label {
  font-weight: 600;
  color: #374151;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag:hover {
  background-color: var(--medial-bg);
  color: var(--medial-purple);
}

/* Tag list styling */
.tags-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  margin: 0;
}

.tag-link {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
}

.tag-link:hover {
  background-color: var(--medial-bg);
  color: var(--medial-purple);
}

/* Tag cloud for tag overview page */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.tag-cloud-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-cloud-item:hover {
  background-color: var(--medial-bg);
  color: var(--medial-purple);
  transform: translateY(-2px);
}

.tag-count {
  color: #6b7280;
  font-size: 0.875em;
}

/* Tag books list */
.tag-books-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.tag-books-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.tag-books-list li:last-child {
  border-bottom: none;
}

.book-langs {
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

/* Badge styles for license info */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  margin-left: 0.5rem;
}

.badge-open {
  background-color: #16a34a;
  color: #ffffff;
}

.badge-commercial {
  background-color: #9ca3af;
  color: #1f2937;
}

/* === Print: Farben als Labels === */
@media print {
  .element-card {
    border-left-width: 6px;
  }

  .hero-philosophy {
    background: none;
    color: black;
    border-bottom: 2px solid #333;
  }

  .highlight-box {
    border: 1px solid #333;
    background: none;
  }
}

/* ========================================
   TAGS - From reflexivitypress.com
   ======================================== */

.book-tags-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tags-label {
  font-weight: 600;
  color: #374151;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
}

.tag:hover {
  background-color: #fee2e2;
  color: #b91c1c;
}
