/* ===================== Layout Styles (v1) =====================
   Layout für Jan Baucke Website - basierend auf BlackRose Theme
   - Header mit Navigation
   - Content Area 
   - Footer
   - Responsive Design
================================================================= */

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
}

/* Logo */
.site-logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}

.site-logo img {
  display: block;
}

/* Hauptnavigation */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-neon);
  background: color-mix(in oklab, var(--accent-neon) 10%, transparent);
}

.nav-link.active {
  color: var(--brand);
  background: color-mix(in oklab, var(--brand) 15%, transparent);
}

.section-content a[href^="mailto:"] {
  color: var(--accent-neon);
  text-decoration: none;
  font-weight: 500;
}

.section-content a[href^="mailto:"]:hover {
  text-decoration: underline;
}


/* Dark theme: weiße Schrift für aktive Nav-Links */
html[data-theme="dark"] .nav-link.active {
  color: white;
}

/* Domain Navigation */
.domain-nav .domain-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

.domain-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.domain-link:hover:not(.disabled) {
  border-color: var(--accent-neon);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent-neon) 20%, transparent);
}

.domain-link.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.domain-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.domain-link .beta {
  font-size: 11px;
  opacity: 0.8;
}

/* Theme Switch Button */
.theme-switch {
  background: var(--forest) !important;
  color: white !important;
  border-color: var(--forest) !important;
}

.theme-switch:hover {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-neon) 40%, transparent) !important;
}

html[data-theme="dark"] .theme-switch {
  background: white !important;
  color: var(--forest) !important;
  border-color: white !important;
}

/* Main Content */
.main-content {
  flex: 1;
  background: var(--bg);
}

.content-area {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.content-display {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.placeholder {
  text-align: center;
  color: var(--muted);
}

.placeholder h2 {
  color: var(--text-strong);
  margin-bottom: 16px;
  font-size: 32px;
}

/* Body Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-content a {
  color: var(--accent-neon);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Burger Menu Styles */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.burger-menu:hover {
  background: var(--border);
}

.burger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.burger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.burger-icon span:nth-child(1) {
  top: 0px;
  transform-origin: left center;
}

.burger-icon span:nth-child(2) {
  top: 7px;
  transform-origin: left center;
}

.burger-icon span:nth-child(3) {
  top: 14px;
  transform-origin: left center;
}

.burger-menu.active .burger-icon span:nth-child(1) {
  transform: rotate(45deg);
  top: -1px;
  left: 4px;
}

.burger-menu.active .burger-icon span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.burger-menu.active .burger-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 15px;
  left: 4px;
}

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-section:last-child {
  border-bottom: none;
}

.mobile-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.mobile-nav .nav-list,
.mobile-nav .domain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav .nav-link,
.mobile-nav .domain-link {
  padding: 12px 16px;
  border-radius: 8px;
  display: block;
  text-align: left;
}

.mobile-nav .domain-link.disabled {
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    height: 70px;
    padding: 0 20px;
    position: relative;
  }
  
  /* Logo: 15% width */
  .site-logo {
    flex: 0 0 15%;
    min-width: 0;
  }
  
  .site-logo h1 {
    font-size: clamp(16px, 4vw, 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Main burger: 50% width */
  .main-burger-container {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
  }
  
  /* Right section: 35% width */
  .right-section {
    flex: 0 0 35%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
  }
  
  /* Domain burger gets remaining space, theme button fixed size */
  .domain-burger-container {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .theme-switch {
    flex: 0 0 auto;
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-width: 60px;
  }
  
  /* Hide desktop navigation */
  .main-nav,
  .domain-nav {
    display: none;
  }
  
  /* Show burger menus */
  .burger-menu {
    display: block;
  }
  
  .content-area {
    padding: 16px;
  }
  
  .content-display {
    padding: 24px;
    min-height: 60vh;
  }
}

@media (max-width: 480px) {
  .site-logo h1 {
    font-size: 14px;
  }
  
  .theme-switch {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-width: 50px;
  }
  
  .mobile-nav-section {
    padding: 16px 20px;
  }
  
  .placeholder h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .main-nav .nav-list {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  
  .domain-nav .domain-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .site-logo h1 {
    font-size: 20px;
  }
  
  .nav-link {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  .placeholder h2 {
    font-size: 24px;
  }
}

/* Focus States für Accessibility */
.nav-link:focus,
.domain-link:focus {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
}

/* Übergangseffekte */
.content-display {
  transition: all 0.3s ease;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .nav-link,
  .domain-link {
    transition: all 0.2s ease;
  }
  
  .content-display {
    animation: fadeIn 0.4s ease;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}