/* UNIFIED STYLESHEET - BEIDE STYLES IN EINER DATEI */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   BRUTALIST MODE (DEFAULT)
   ======================================== */

body {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: #000;
  color: #0f0;
  line-height: 1.4;
  font-size: 14px;
  padding: 20px;
}

/* Scanlines - nur Brutalist */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 0, 0.03),
    rgba(0, 255, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ASCII Header - nur Brutalist */
.ascii-header {
  display: block;
  color: #0ff;
  font-size: 8px;
  line-height: 1;
  margin-bottom: 20px;
  overflow-x: auto;
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
  51% { opacity: 1; }
}

/* Navigation - nur Brutalist */
nav {
  display: block;
  border-top: 2px solid #0f0;
  border-bottom: 2px solid #0f0;
  padding: 10px 0;
  margin-bottom: 30px;
}

nav a {
  color: #0f0;
  text-decoration: none;
  margin-right: 20px;
  font-weight: 700;
}

nav a:hover {
  background: #0f0;
  color: #000;
}

/* Modern Elements - versteckt in Brutalist */
.logo-fixed,
.modern-header,
.arbeiten {
  display: none;
}

/* Brutalist Main */
main {
  max-width: none;
}

section {
  margin-bottom: 50px;
}

h1 {
  color: #0ff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 1px solid #0ff;
  padding-bottom: 5px;
}

p {
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Entry - nur Brutalist */
.entry {
  display: block;
  border: 1px solid #0f0;
  padding: 15px;
  margin-bottom: 20px;
  background: rgba(0, 255, 0, 0.02);
}

.entry .year {
  color: #ff0;
  font-weight: 700;
}

.entry .title {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.entry .title:hover {
  background: #0f0;
  color: #000;
}

.entry .location {
  color: #0ff;
  font-size: 12px;
}

.entry .tags {
  color: #f0f;
  font-size: 11px;
  display: block;
  margin: 5px 0;
}

.entry .info {
  font-size: 11px;
  color: #888;
  margin-top: 10px;
  text-transform: none;
}

/* Table - nur Brutalist */
table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 12px;
}

tr {
  border-bottom: 1px dotted #0f0;
}

tr:hover {
  background: rgba(0, 255, 0, 0.05);
}

td {
  padding: 10px 5px;
  vertical-align: top;
}

td.year {
  color: #ff0;
  font-weight: 700;
  white-space: nowrap;
  width: 100px;
}

td.title {
  color: #fff;
  font-weight: 700;
  min-width: 200px;
}

td.meta {
  color: #0ff;
  font-size: 11px;
}

td.tags {
  color: #f0f;
  font-size: 10px;
  min-width: 150px;
}

td.link {
  text-align: right;
  width: 80px;
}

td.info {
  font-size: 10px;
  color: #888;
  padding-left: 110px;
  text-transform: none;
}

/* Links - Brutalist */
a {
  color: #0f0;
  text-decoration: underline;
}

a:hover {
  background: #0f0;
  color: #000;
  text-decoration: none;
}

a:visited {
  color: #0a0;
}

/* Contact - Brutalist */
#contact {
  border: 2px solid #0ff;
  padding: 20px;
  background: rgba(0, 255, 255, 0.03);
}

#contact a {
  color: #0ff;
  font-size: 16px;
  font-weight: 700;
}

/* Footer - Brutalist */
footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 2px solid #0f0;
  font-size: 11px;
  color: #888;
}

footer a {
  color: #888;
}

/* Cursor - Brutalist */
* {
  cursor: crosshair;
}

a, button {
  cursor: pointer;
}

/* Toggle Button - Brutalist */
.style-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  background: #0f0;
  color: #000;
  border: 2px solid #0f0;
  padding: 0.5rem 0.8rem;
  font-size: 1.2rem;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  transition: all 0.3s ease;
}

.style-toggle:hover {
  background: #000;
  color: #0f0;
  transform: rotate(180deg);
}

/* ========================================
   MODERN MODE
   ======================================== */

body.modern-mode {
  font-family: 'Space Grotesk', sans-serif;
  background: white;
  color: #000;
  line-height: 1.6;
  padding: 0;
}

/* Hide scanlines in modern */
body.modern-mode::before {
  display: none;
}

/* Hide brutalist elements in modern */
body.modern-mode .ascii-header,
body.modern-mode nav,
body.modern-mode .entry,
body.modern-mode table {
  display: none !important;
}

/* Show modern elements */
body.modern-mode .logo-fixed,
body.modern-mode .modern-header,
body.modern-mode .arbeiten {
  display: block !important;
}

/* Logo - Modern */
body.modern-mode .logo-fixed {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  font-size: 1.5rem;
  font-weight: bold;
}

body.modern-mode .logo-fixed a {
  color: #000;
  text-decoration: none;
}

/* Header - Modern */
body.modern-mode .modern-header {
  padding: 4rem 2rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

body.modern-mode .intro h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

body.modern-mode .intro p {
  font-size: 1.2rem;
}

/* Main - Modern */
body.modern-mode main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

body.modern-mode section {
  margin-bottom: 4rem;
}

body.modern-mode h1,
body.modern-mode h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-transform: none;
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
  color: #000;
}

body.modern-mode h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: none;
  color: #000;
}

body.modern-mode #bio p {
  font-size: 1rem;
  line-height: 1.8;
  text-transform: none;
}

/* Projects - Modern */
body.modern-mode .arbeiten .projekt {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

body.modern-mode .arbeiten .projekt:last-child {
  border-bottom: none;
}

body.modern-mode .arbeiten .projekt.featured {
  background: #f8f8f8;
  padding: 1.5rem;
  border: none;
  border-radius: 4px;
  margin-bottom: 2rem;
}

body.modern-mode .arbeiten .projekt h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body.modern-mode .arbeiten .projekt .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
  text-transform: none;
}

body.modern-mode .arbeiten .projekt .info {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.8rem;
  font-style: italic;
  text-transform: none;
}

/* Badges - Modern */
body.modern-mode .badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

body.modern-mode .badge {
  font-size: 0.75rem;
  padding: 0.3em 0.7em;
  border-radius: 0.3em;
  font-weight: 600;
  text-transform: capitalize;
}

body.modern-mode .badge.dramaturgie { background: #cce; color: #000; }
body.modern-mode .badge.regie { background: #cfc; color: #000; }
body.modern-mode .badge.konzeption,
body.modern-mode .badge.entwicklung { background: #ffc; color: #000; }
body.modern-mode .badge.produktion,
body.modern-mode .badge.initiation { background: #fcc; color: #000; }
body.modern-mode .badge.kuration { background: #def; color: #000; }
body.modern-mode .badge.moderation { background: #e0e0ff; color: #000; }
body.modern-mode .badge.text { background: #cce; color: #000; }

/* Links - Modern */
body.modern-mode a {
  color: #000;
  text-decoration: underline;
  cursor: pointer;
}

body.modern-mode a:hover {
  text-decoration: none;
  background: transparent;
  color: #000;
}

/* Footer - Modern */
body.modern-mode footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  background: #f8f8f8;
  margin-top: 4rem;
  border: none;
}

body.modern-mode footer p {
  margin-bottom: 0.5rem;
  text-transform: none;
}

/* Cursor - Modern */
body.modern-mode * {
  cursor: default;
}

body.modern-mode a,
body.modern-mode button {
  cursor: pointer;
}

/* Toggle - Modern */
body.modern-mode .style-toggle {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 4px;
}

body.modern-mode .style-toggle:hover {
  background: #fff;
  color: #000;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 11px;
  }
  
  .ascii-header {
    font-size: 5px;
    line-height: 0.9;
  }
  
  nav {
    padding: 8px 0;
  }
  
  nav a {
    display: inline-block;
    margin: 5px 10px 5px 0;
    font-size: 11px;
  }
  
  h1 {
    font-size: 14px;
  }
  
  .style-toggle {
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
  }
  
  table, tbody {
    display: block;
    width: 100%;
  }
  
  tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #0f0;
    padding: 10px;
    background: rgba(0, 255, 0, 0.02);
  }
  
  td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    padding: 5px 0;
    border: none;
    text-align: left !important;
  }
  
  td.year {
    margin-bottom: 5px;
    font-size: 12px;
  }
  
  td.title {
    font-size: 12px;
    margin-bottom: 5px;
  }
  
  td.meta {
    font-size: 10px;
    margin-bottom: 5px;
  }
  
  td.tags {
    font-size: 9px;
    margin-bottom: 5px;
    white-space: normal;
  }
  
  td.link {
    font-size: 10px;
    margin-top: 5px;
  }
  
  td.info {
    padding-left: 0 !important;
    font-size: 9px;
    margin-top: 8px;
  }
  
  .entry {
    padding: 10px;
  }
  
  .entry .title {
    font-size: 12px;
  }
  
  #contact {
    padding: 15px;
  }
  
  /* Modern Mobile */
  body.modern-mode .intro h1 {
    font-size: 2rem;
  }
  
  body.modern-mode .intro p {
    font-size: 1rem;
  }
  
  body.modern-mode .modern-header {
    padding: 3rem 1rem 1rem 1rem;
  }
  
  body.modern-mode main {
    padding: 1rem;
  }
  
  body.modern-mode .arbeiten .projekt.featured {
    padding: 1rem;
  }
  
  body.modern-mode .badge {
    font-size: 0.7rem;
  }
}
