@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
:root {
  --primary: #6a82fb;
  --secondary: #fc5c7d;
  --bg: #f7f7fa;
  --text: #222;
  --section-bg: #fff;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  transition: background 0.6s cubic-bezier(0.4,0,0.2,1), color 0.6s cubic-bezier(0.4,0,0.2,1);
}
.hero {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  text-align: center;
  padding: 4rem 1rem 2rem 1rem;
  position: relative;
  transition: background 0.6s cubic-bezier(0.4,0,0.2,1), color 0.6s cubic-bezier(0.4,0,0.2,1);
}
.hero h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: 2px;
}
.subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
#toggle-mode {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
#toggle-mode:hover {
  background: rgba(0,0,0,0.15);
}
.social-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.7rem;
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 0.5rem;
}
.social-nav a {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.social-nav a:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 8px 32px rgba(106,130,251,0.15);
}
.section {
  background: var(--section-bg);
  margin: 2rem auto;
  max-width: 700px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.7rem 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s, background 0.6s cubic-bezier(0.4,0,0.2,1);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.grid-skills {
  padding-left: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  justify-items: stretch;
}
@media (max-width: 700px) {
  .grid-skills {
    grid-template-columns: 1fr;
  }
}
.grid-skills li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(106,130,251,0.07);
  transition: transform 0.15s;
  width: 100%;
  box-sizing: border-box;
  border: none;
}
.grid-skills li:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 6px 24px rgba(106,130,251,0.13);
}
.grid-skills .fas {
  font-size: 1.3em;
  opacity: 0.85;
}
footer {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  color: #aaa;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
/* Footer Links - Moderne Button-Styles */
footer a {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(106, 130, 251, 0.2);
  position: relative;
  overflow: hidden;
}
footer a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
footer a:hover::before {
  left: 100%;
}
footer a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(106, 130, 251, 0.3);
  background: linear-gradient(135deg, #667eea, #764ba2);
}
/* E-Mail Link Styling */
#contact a[href^="mailto:"], .contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
  position: relative;
  overflow: hidden;
}
#contact a[href^="mailto:"]::before, .contact-email-btn::before {
  content: '📧';
  font-size: 1.2rem;
  animation: emailBounce 2s infinite;
}
#contact a[href^="mailto:"]:hover, .contact-email-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.35);
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}
@keyframes emailBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}
/* Kontakt Sektion Enhancement */
#contact {
  text-align: left;
  position: relative;
}
#contact p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  opacity: 0.9;
}
/* Dark Mode Anpassungen für Footer Links */
body.dark footer a {
  background: linear-gradient(135deg, #4a5568, #6a82fb);
  box-shadow: 0 4px 15px rgba(106, 130, 251, 0.15);
}
body.dark footer a:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 8px 25px rgba(106, 130, 251, 0.25);
}
/* Dark Mode Anpassungen für E-Mail Link */
body.dark #contact a[href^="mailto:"], body.dark .contact-email-btn {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}
body.dark #contact a[href^="mailto:"]:hover, body.dark .contact-email-btn:hover {
  background: linear-gradient(135deg, #357abd, #4a90e2);
  box-shadow: 0 12px 30px rgba(74, 144, 226, 0.4);
  transform: translateY(-4px) scale(1.05);
}
/* Responsive Anpassungen */
@media (max-width: 600px) {
  footer a {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  #contact a[href^="mailto:"] {
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
  }
  
  footer {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
}
/* Dark Mode */
body.dark {
  --bg: #181a20;
  --text: #f7f7fa;
  --section-bg: #23263a;
}
body.dark .hero {
  background: linear-gradient(90deg, #23263a, #6a82fb);
  color: #fff;
}
body.dark .social-nav a {
  background: #23263a;
  color: var(--secondary);
}
body.dark .grid-skills li {
  background: linear-gradient(90deg, #35395c, #6a82fb);
  color: #fff;
}
body.dark .fun-fact-widget {
  background: linear-gradient(90deg, #35395c, #6a82fb);
  color: #fff;
  box-shadow: 0 4px 24px rgba(106,130,251,0.28);
}
body.dark .fun-fact-widget.open {
  box-shadow: 0 8px 32px rgba(106,130,251,0.38);
}
body.dark .fun-fact-icon {
  filter: drop-shadow(0 0 6px #ffe082) brightness(1.2);
}
body.dark .timeline-dot {
  background: linear-gradient(90deg, #3a4a7a, #6a82fb);
  border: 3px solid #6a82fb;
  box-shadow: 0 2px 8px rgba(106,130,251,0.18);
}
body.dark .social-nav {
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 1.2rem 0.7rem; margin-left: 2vw; margin-right: 2vw; }
  .grid-skills { gap: 0.5rem; }
  .modal-content {
    margin: 2vw;
  }
}
/* Social Icons (FontAwesome CDN) */
.icon-xing:before { content: "\f168"; font-family: 'Font Awesome 5 Brands'; font-weight: 400; }
/* MODAL DESIGN */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,34,90,0.55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.4s;
}
.modal.open {
  display: flex;
}
@keyframes fadeInBg {
  from { background: rgba(30,34,90,0); }
  to { background: rgba(30,34,90,0.55); }
}
.modal-content {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 2rem 0.5rem 2rem 0.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 420px;
  width: 90vw;
  position: relative;
  animation: popIn 0.5s cubic-bezier(.68,-0.55,.27,1.55);
  max-height: 80vh;
  overflow-y: auto;
}
@keyframes popIn {
  0% { transform: scale(0.7) rotate(-6deg); opacity: 0; }
  80% { transform: scale(1.05) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.modal-content h2 {
  margin-top: 0;
  font-size: 2rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff, #f7f7fa, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-content p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.modal-close:hover {
  background: rgba(0,0,0,0.18);
}
body.dark .modal-content {
  background: linear-gradient(120deg, #23263a, #6a82fb);
  color: #fff;
}
@media (max-width: 600px) {
  .modal-content {
    max-width: 98vw;
    padding: 1.2rem 0.7rem;
    max-height: 90vh;
  }
}
.terminal-greeting {
  font-family: 'Fira Mono', 'Consolas', monospace;
  background: rgba(30,34,90,0.13);
  color: #fff;
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 1.2rem 0.5rem 1.2rem 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(106,130,251,0.10);
  letter-spacing: 0.5px;
  position: relative;
  animation: fadeIn 1.2s;
  min-height: 2.4em;
  max-width: 95vw;
  overflow: hidden;
}
.terminal-greeting .prompt {
  color: #ffe082;
  font-weight: bold;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
#typewriter {
  border-right: 2px solid #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 80vw;
  vertical-align: bottom;
  font-family: inherit;
  font-size: inherit;
  animation: blink-cursor 0.8s steps(1) infinite;
}
@keyframes blink-cursor {
  0%, 100% { border-color: #fff; }
  50% { border-color: transparent; }
}
#mode-icon {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
body.dark #mode-icon {
  transform: rotate(180deg);
}
.fun-fact-widget {
  position: fixed;
  right: 2.2vw;
  bottom: 2.2vw;
  z-index: 1200;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 1.5rem 0.7rem 1.5rem 0.7rem;
  box-shadow: 0 4px 24px rgba(106,130,251,0.18);
  padding: 0.7rem;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  transform: scale(1);
  opacity: 0.92;
  transition: box-shadow 0.2s, transform 0.35s cubic-bezier(.68,-0.55,.27,1.55), min-width 0.2s, max-width 0.2s, font-size 0.2s, padding 0.2s, opacity 0.2s;
  overflow: hidden;
  white-space: nowrap;
}
.fun-fact-widget:hover, .fun-fact-widget.open {
  box-shadow: 0 8px 32px rgba(106,130,251,0.28);
  opacity: 1;
}
.fun-fact-widget.open {
  max-width: 90vw;
  min-width: 220px;
  font-size: 1.18rem;
  padding: 1.2rem 2.2rem 1.2rem 1.5rem;
  white-space: normal;
  justify-content: flex-start;
  gap: 0.7em;
  transform: scale(1.08);
}
#fun-fact-widget-text {
  display: none;
  margin-left: 0.5em;
}
.fun-fact-widget.open #fun-fact-widget-text {
  display: inline-block;
}
.fun-fact-icon {
  font-size: 1.1em;
  margin-right: 0;
  opacity: 0.93;
  animation: funFactGlow 2s infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes funFactGlow {
  from { filter: drop-shadow(0 0 0px #ffe082); }
  to { filter: drop-shadow(0 0 8px #ffe082); }
}
@media (max-width: 600px) {
  .fun-fact-widget {
    right: 2vw;
    bottom: 2vw;
    font-size: 0.98rem;
    max-width: 98vw;
    padding: 0.7rem 0.7rem 0.7rem 0.9rem;
  }
  .fun-fact-widget.open {
    right: 2vw;
    left: 2vw;
    bottom: 2vw;
    max-width: calc(100vw - 4vw);
    padding: 1.2rem 0.7rem;
    width: auto;
    margin: 0;
    transform: none;
  }
  .terminal-greeting {
    min-height: 3.2em;
  }
}
.fun-fact-widget-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 1199;
  background: rgba(30,34,90,0.18);
  backdrop-filter: blur(1px);
  transition: opacity 0.2s;
}
.fun-fact-widget.open ~ .fun-fact-widget-overlay,
.fun-fact-widget-overlay.open {
  display: block;
}
/* Timeline Styles */
.timeline-section {
  margin-top: 2.5rem;
  padding-bottom: 0.4rem;
}
.timeline {
  position: relative;
  margin: 2.5rem 0 0 0;
  padding-left: 30px;
  border-left: 3px solid var(--primary);
}
.timeline-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-dot {
  position: absolute;
  left: -13px;
  top: 0.5em;
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(106,130,251,0.18);
  border: 3px solid #fff;
  z-index: 2;
  transition: box-shadow 0.18s, transform 0.18s;
}
.timeline-dot:hover {
  box-shadow: 0 0 16px #6a82fb, 0 2px 8px rgba(106,130,251,0.18);
  transform: scale(1.15);
}
.timeline-content {
  background: var(--section-bg);
  border-radius: 1.2rem 0.5rem 1.2rem 0.5rem;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
  margin-left: 1.5rem;
  min-width: 180px;
}
.timeline-date {
  font-size: 0.98rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
}
body.dark .timeline-content {
  background: #23263a;
  box-shadow: 0 4px 24px rgba(106,130,251,0.28), 0 0 0 1.5px #444;
  border: 1.5px solid #35395c;
}
@media (max-width: 600px) {
  .timeline {
    padding-left: 18px;
  }
  .timeline-content {
    padding: 1rem 0.7rem;
    margin-left: 1rem;
  }
}
/* Animierter Netzwerk-Hintergrund */
.bg-animated-network {
  display: none;
}
body.dark .bg-animated-network {
  display: block;
  opacity: 0.18;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: none;
}
body.dark .bg-animated-network svg {
  width: 100vw;
  height: 100vh;
  display: block;
}
/* Micro-Interactions */
a, .social-nav a {
  transition: color 0.18s, background 0.18s, transform 0.18s;
}
a:hover, .social-nav a:hover {
  color: var(--secondary);
  transform: scale(1.08) translateY(-2px);
}
button, #toggle-mode {
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
button:hover, #toggle-mode:hover {
  transform: scale(1.06);
}
.section h2 {
  margin-top: 0;
  margin-bottom: 1.1rem;
}
.section p {
  margin: 0 0 1.1rem 0;
}
.section p:last-child {
  margin-bottom: 0;
}
.timeline-section .timeline {
  margin-bottom: 1.1rem;
  padding-top: 0;
  padding-bottom: 0;
}
/* Loader Styles */
.loader {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(247,247,250,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
.loader[aria-hidden="true"] { opacity: 0; pointer-events: none; }