@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --sidebar-bg: #121416;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --text-white-muted: #94a3b8;
  --border-color: #e2e8f0;
  --accent-gold: #af8c3d;
  --accent-gold-hover: #9c7b33;
  --accent-secondary: #2a2e33;
  
  /* Generic Accents mapping to core stylesheet */
  --accent-color: var(--accent-gold);
  --accent-color-hover: var(--accent-gold-hover);
  --accent-color-bg: rgba(175, 140, 61, 0.08);
  --accent-color-shadow: rgba(175, 140, 61, 0.2);
  
  /* Corner circle segment colors for CMYK marks */
  --c-cyan: #00aeef;
  --c-yellow: #fff200;
  --c-magenta: #ec008c;
  --c-black: #231f20;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 2rem 1rem;
  gap: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.portfolio-container {
  width: 100%;
  max-width: 1100px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 850px;
  border: 1px solid var(--border-color);
}

/* Corner printer mark elements */
.printer-mark {
  position: absolute;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.printer-mark.top-right {
  top: 0;
  right: 0;
}

.printer-mark.bottom-right {
  bottom: 0;
  right: 0;
}

.mark-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  transform: rotate(45deg);
}

.mark-circle span {
  position: absolute;
  width: 50%;
  height: 50%;
}

.mark-circle .s1 { top: 0; left: 0; background: var(--c-cyan); }
.mark-circle .s2 { top: 0; right: 0; background: var(--c-yellow); }
.mark-circle .s3 { bottom: 0; left: 0; background: var(--c-black); }
.mark-circle .s4 { bottom: 0; right: 0; background: var(--c-magenta); }

.mark-lines {
  position: absolute;
  width: 64px;
  height: 64px;
}

.mark-lines::before, .mark-lines::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.22);
}

.mark-lines::before {
  top: 50%;
  transform: translateY(-50%);
}

.mark-lines::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Top-Right Asymmetric Extensions */
.printer-mark.top-right .mark-lines::before {
  left: 0;
  width: 44px; /* Extends left */
  height: 1px;
}

.printer-mark.top-right .mark-lines::after {
  top: 20px;
  height: 44px; /* Extends down */
  width: 1px;
}

/* Bottom-Right Asymmetric Extensions */
.printer-mark.bottom-right .mark-lines::before {
  left: 0;
  width: 44px; /* Extends left */
  height: 1px;
}

.printer-mark.bottom-right .mark-lines::after {
  top: 0;
  height: 44px; /* Extends up */
  width: 1px;
}

/* Left Sidebar styling */
.sidebar {
  width: 320px;
  background-color: var(--sidebar-bg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-white);
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-ring {
  position: relative;
  width: 120px;
  height: 154px;
  margin: 0 auto 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.nav-item {
  color: var(--text-white-muted);
  text-decoration: none;
  font-size: 1.05rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
  display: block;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-white);
  border-left-color: var(--accent-gold);
  padding-left: 1rem;
}

.nav-item span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Inter', sans-serif;
  margin-top: 0.2rem;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-white);
  transition: opacity 0.2s ease;
}

.contact-item:not(.disabled-contact):hover {
  opacity: 0.85;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-gold);
  flex-shrink: 0;
}

.contact-contact-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-contact-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.contact-contact-info strong {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Right Content panel styling */
.content-panel {
  flex: 1;
  padding: 4rem 3.5rem;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.card-controls {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.lang-switch-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  color: var(--text-primary);
}

.lang-label {
  opacity: 0.5;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.lang-label.active {
  opacity: 1;
  color: var(--accent-gold);
  font-weight: 700;
}

.lang-divider {
  opacity: 0.3;
}

.header-section {
  margin-bottom: 2.5rem;
}

.title-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.title-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.title-light {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.header-divider {
  width: 100%;
  height: 3px;
  background: var(--accent-gold);
  margin-top: 1rem;
  position: relative;
}

.header-divider::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.content-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.content-section.active {
  display: block;
}

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

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.intro-text p {
  margin-bottom: 1rem;
}

/* CV experience layout */
.cv-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.cv-dates {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  padding-top: 0.2rem;
  font-size: 0.95rem;
}

.cv-dates span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 0.15rem;
}

.cv-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cv-content h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.cv-details {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cv-details li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.1rem;
}

.cv-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 1.1rem;
  top: -1px;
}

.cv-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cv-distinction {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Skills Grid styling */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.skills-category h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--accent-gold);
  padding-left: 0.5rem;
}

.skills-category p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Actions in Visitenkarte */
.actions {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
}

.btn {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.primary-btn {
  background: var(--accent-gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(175, 140, 61, 0.2);
}

.primary-btn:hover:not(.disabled-nav-item) {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.social-btn {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.social-btn:hover:not(.disabled-nav-item) {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.qr-btn {
  flex: 1;
}

.qr-container {
  background: hsl(0, 0%, 100%);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  animation: fadeIn 0.3s ease-out forwards;
  width: 100%;
}

.hidden {
  display: none !important;
}



.gated-placeholder {
  width: 100%;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 1.5rem;
}

.gated-placeholder svg {
  color: var(--accent-gold);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.gated-placeholder h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.gated-placeholder p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.4;
}

.obfuscated-text-gated {
  filter: blur(5px);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Footer layout */
.vcard-footer {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  position: relative;
  max-width: 1100px;
  width: 100%;
}

.vcard-footer-disclaimer {
  width: 100%;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.vcard-footer-copyright {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

.vcard-footer-btn {
  background: none;
  border: none;
  color: var(--accent-gold);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
}

.vcard-footer-btn:hover {
  color: var(--accent-gold-hover);
}



.status-dot-container {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background-color: var(--sidebar-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  position: relative;
}

.status-indicator-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Reduced Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .status-indicator-dot::after {
    animation: none;
  }
  .nav-item, .btn, .cta-button, .telemetry-btn {
    transition: none !important;
  }
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    display: block !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  
  .portfolio-container {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
  }
  
  .sidebar {
    width: 100% !important;
    border-right: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 1.5rem !important;
  }
  
  .avatar-ring {
    border: 1px solid #cccccc !important;
  }
  
  .nav-menu, .card-controls, .actions, .secure-gate-card {
    display: none !important;
  }
  
  .content-panel {
    padding: 2rem !important;
    background: #ffffff !important;
  }
  
  .content-section {
    display: block !important;
    opacity: 1 !important;
    margin-bottom: 3rem !important;
  }
  
  .tag {
    border: 1px solid #cccccc !important;
    color: #000000 !important;
    background: none !important;
  }
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }
  
  .portfolio-container {
    flex-direction: column;
    min-height: auto;
  }

  .sidebar {
    width: 100%;
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .avatar-ring {
    width: 100px;
    height: 128px;
    margin-bottom: 1.5rem;
  }




  .sidebar-divider {
    margin: 1.5rem 0;
  }

  .content-panel {
    padding: 2rem 1.5rem;
  }

  .title-name {
    font-size: 2.25rem;
  }

  .title-sub {
    font-size: 1.1rem;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .cv-dates {
    text-align: left;
    font-size: 0.85rem;
  }

  .cv-dates span {
    display: inline-block;
    margin-left: 0.5rem;
    margin-top: 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .actions {
    flex-direction: column;
  }

  .vcard-footer-disclaimer {
    font-size: 0.7rem;
    padding: 0.6rem;
  }

}
}

