@font-face {
  font-family: 'Nebula Sans';
  src: url('font.010/WOFF2/NebulaSans-Book.woff2') format('woff2'),
       url('font.010/TTF/NebulaSans-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('font.010/WOFF2/NebulaSans-BookItalic.woff2') format('woff2'),
       url('font.010/TTF/NebulaSans-BookItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('font.010/WOFF2/NebulaSans-Medium.woff2') format('woff2'),
       url('font.010/TTF/NebulaSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('font.010/WOFF2/NebulaSans-Semibold.woff2') format('woff2'),
       url('font.010/TTF/NebulaSans-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('font.010/WOFF2/NebulaSans-Bold.woff2') format('woff2'),
       url('font.010/TTF/NebulaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

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

:root {
  font-family: 'Nebula Sans', sans-serif;
  /* theme tokens */
  --bg: #ffffff;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #e0e0e0;
  --footer-bg: rgba(255, 255, 255, 0.95);
  --active-bg: rgba(0, 0, 0, 0.06);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --text-primary: #e8e8e8;
    --text-secondary: #a1a1aa;
    --text-tertiary: #8b8b93;
    --border: #2a2a2a;
    --footer-bg: rgba(15, 17, 21, 0.9);
    --active-bg: rgba(255, 255, 255, 0.08);
  }
}

[data-theme="light"] {
  --bg: #ffffff;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #e0e0e0;
  --footer-bg: rgba(255, 255, 255, 0.95);
  --active-bg: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --bg: #0f1115;
  --text-primary: #e8e8e8;
  --text-secondary: #a1a1aa;
  --text-tertiary: #8b8b93;
  --border: #2a2a2a;
  --footer-bg: rgba(15, 17, 21, 0.9);
  --active-bg: rgba(255, 255, 255, 0.08);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background-color: var(--bg);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

a:hover {
  opacity: 0.7;
}

/* Navigation - Standard: normaler Flow (mobil) */
.navigation {
  position: static;
  width: 100%;
  padding: 20px;
}

/* Navigation - Fixed nur auf Desktop */
@media (min-width: 769px) {
  .navigation {
    position: fixed;
    left: 60px;
    top: 60px;
    z-index: 100;
    width: auto;
    padding: 0;
  }
}

.nav-brand {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 35px;
  display: block;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-link {
  font-size: 16px;
  color: var(--text-primary);
  transition: opacity 160ms ease, background-color 160ms ease, transform 120ms ease;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-link.active {
  font-weight: 600;
  background-color: var(--active-bg);
}

.glass-link-nav {
  margin-top: 100px;
}

.social-links-nav {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 30px;
}

.social-link-nav {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 160ms ease, color 160ms ease, transform 120ms ease;
}

.social-link-nav:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Brandfarben bei Hover/Focus/Active */
.social-link-nav[aria-label="X (Twitter)"]:hover,
.social-link-nav[aria-label="X (Twitter)"]:focus-visible,
.social-link-nav[aria-label="X (Twitter)"]:active {
  color: #1DA1F2;
}

.social-link-nav[aria-label="Facebook"]:hover,
.social-link-nav[aria-label="Facebook"]:focus-visible,
.social-link-nav[aria-label="Facebook"]:active {
  color: #1877F2;
}

.social-link-nav[aria-label="Instagram"]:hover,
.social-link-nav[aria-label="Instagram"]:focus-visible,
.social-link-nav[aria-label="Instagram"]:active {
  color: #E4405F;
}

.social-link-nav[aria-label="LinkedIn"]:hover,
.social-link-nav[aria-label="LinkedIn"]:focus-visible,
.social-link-nav[aria-label="LinkedIn"]:active {
  color: #0A66C2;
}

/* Klick-Feedback */
.social-link-nav:active {
  transform: scale(0.95);
}

.social-link-nav svg {
  width: 100%;
  height: 100%;
}

.glass-icon-nav {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.glass-icon-nav:hover {
  transform: scale(1.1);
}

/* Home */
.home {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
  padding-left: 40px;
  padding-right: 40px;
}

@media (min-width: 769px) {
  .home {
    padding-top: 100px;
  }
}

.home-content {
  max-width: 800px;
  width: 100%;
}

.memoji-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.memoji {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

/* Header-spezifische Memoji (nur mobil sichtbar) */
.memoji-header { 
  display: none; 
}
.memoji--header { 
  width: 120px; 
  height: 120px; 
}

@media (max-width: 768px) {
  .memoji-header { 
    display: flex; 
    margin: 10px 0 16px; 
  }
  .memoji--header { 
    width: 100px; 
    height: 100px; 
  }
}

.greeting {
  font-size: 30px;
  color: var(--text-secondary);
  margin-bottom: 50px;
  text-align: left;
}

.text-block {
  margin-bottom: 60px;
}

.main-text {
  font-size: 42px;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 700;
  max-width: 1100px;
  margin: 0;
  min-height: 300px;
  display: block;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: #9333EA;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cta-button:hover {
  background-color: #7c2dd2;
  transform: translateY(-2px);
  opacity: 1;
}

.cta-button:active {
  transform: translateY(-1px) scale(0.99);
}

.cta-button:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* About */
.about {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 40px 100px;
}

@media (min-width: 769px) {
  .about {
    padding: 120px 40px 100px;
  }
}

.about-content {
  max-width: 800px;
  width: 100%;
}

.about-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.about-image-container {
  margin-bottom: 40px;
  width: 100%;
}

.about-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.about-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text p {
  margin-bottom: 25px;
}

/* Projects */
.projects {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 40px 100px;
}

@media (min-width: 769px) {
  .projects {
    padding: 120px 40px 100px;
  }
}

.projects-content {
  max-width: 800px;
  width: 100%;
}

.projects-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text-primary);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-item {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.project-item:last-child {
  border-bottom: none;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.project-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-year {
  font-size: 14px;
  color: var(--text-tertiary);
}

.project-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Impressum */
.impressum {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 40px 100px;
}

@media (min-width: 769px) {
  .impressum {
    padding: 120px 40px 100px;
  }
}

.impressum-content {
  max-width: 800px;
  width: 100%;
}

.impressum-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.impressum-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.impressum-text section {
  margin-bottom: 30px;
}

.impressum-text h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.impressum-text p {
  margin-bottom: 10px;
}

/* Datenschutz */
.datenschutz {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 40px 100px;
}

@media (min-width: 769px) {
  .datenschutz {
    padding: 120px 40px 100px;
  }
}

.datenschutz-content {
  max-width: 800px;
  width: 100%;
}

.datenschutz-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.datenschutz-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.datenschutz-text section {
  margin-bottom: 30px;
}

.datenschutz-text h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.datenschutz-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.datenschutz-text p {
  margin-bottom: 15px;
}

.datenschutz-text ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.datenschutz-text li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  background-color: var(--footer-bg);
}

.footer-content {
  display: flex;
  gap: 20px;
}


.glass-link {
  display: inline-block;
}

.glass-icon {
  width: 40px;
  height: 40px;
  background-color: #F5C842;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: transform 0.2s ease;
}

.glass-icon:hover {
  transform: scale(1.05);
}

.glass-icon svg {
  width: 24px;
  height: 24px;
}

.footer-center {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.social-link {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 160ms ease, transform 120ms ease, color 160ms ease;
}

.social-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.social-link svg {
  width: 100%;
  height: 100%;
}

.footer-right {
  display: flex;
  gap: 15px;
  font-size: 14px;
}

.footer-link {
  color: var(--text-secondary);
}

.footer-link:hover {
  opacity: 0.7;
}

/* Theme switcher */
.theme-switcher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 110;
}

.theme-segmented {
  display: inline-flex;
  background: var(--footer-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: saturate(180%) blur(8px);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.theme-option {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.theme-option.active {
  color: var(--text-primary);
  background: var(--active-bg);
}

/* Standard: Social-Bar ausgeblendet (nur mobil sichtbar) */
.social-bar { display: none; }

/* Responsive */
@media (max-width: 768px) {
  /* Navigation - bereits oben im normalen Flow definiert, hier nur Feinabstimmung */
  .navigation {
    padding: 20px 20px 0;
    margin: 0;
  }

  .nav-brand {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    text-align: left;
  }


  /* Navigation-Links horizontal anordnen */
  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 14px;
    display: inline-flex;
    padding: 6px 8px;
  }

  /* Icons und Glass-Button nicht in der Top-Navigation auf Mobil anzeigen */
  .social-links-nav, .glass-link-nav { 
    display: none !important; 
    margin-top: 0 !important;
  }

  /* Home */
  .home {
    padding: 20px 20px 40px;
  }

  /* Memoji innerhalb des Contents auf Mobil nicht doppelt anzeigen */
  .memoji-container { display: none; }

  .memoji {
    width: 100px;
    height: 100px;
  }

  .greeting {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .main-text {
    font-size: 28px;
    line-height: 1.6;
    min-height: initial;
    max-width: 100%;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 14px;
  }

  /* About */
  .about {
    padding: 20px 20px 80px;
  }

  .about-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .about-image-container {
    margin-bottom: 30px;
  }

  .about-image {
    max-width: 100%;
    border-radius: 8px;
  }

  .about-text {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-text p {
    margin-bottom: 20px;
  }

  /* Projects */
  .projects {
    padding: 20px 20px 80px;
  }

  .projects-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .projects-list {
    gap: 30px;
  }

  .project-item {
    padding-bottom: 30px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-description {
    font-size: 15px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /* Impressum */
  .impressum {
    padding: 20px 20px 80px;
  }

  .impressum-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .impressum-text {
    font-size: 15px;
  }

  .impressum-text h2 {
    font-size: 18px;
  }

  /* Datenschutz */
  .datenschutz {
    padding: 20px 20px 80px;
  }

  .datenschutz-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .datenschutz-text {
    font-size: 15px;
  }

  .datenschutz-text h2 {
    font-size: 18px;
  }

  .datenschutz-text h3 {
    font-size: 16px;
  }

  /* Footer */
  .footer {
    position: static;
    padding: 15px 20px;
    background-color: transparent;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  /* Theme-Switcher im Flow zwischen Content und Social-Bar */
  .theme-switcher {
    position: static;
    margin: 20px auto 10px;
    display: flex;
    justify-content: center;
  }

  /* Social-Bar über dem Footer */
  .social-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 10px 20px 20px;
  }
}

/* Platzhalterbild (Under Construction) */
.under-construction-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Kleinstgeräte-Optimierung */
@media (max-width: 360px) {
  .nav-brand { font-size: 22px; margin-bottom: 8px; }
  .nav-links { gap: 10px; }
  .memoji--header { width: 84px; height: 84px; }
  .greeting { font-size: 20px; margin-bottom: 24px; }
  .main-text { font-size: 24px; line-height: 1.55; }
  .cta-button { padding: 12px 28px; font-size: 14px; }
  .home { padding-left: 16px; padding-right: 16px; }
  .about, .projects, .impressum, .datenschutz { padding-left: 16px; padding-right: 16px; }
  .footer { padding: 12px 16px; }
  .theme-switcher { margin: 16px auto 8px; }
  .about-image-container { margin-bottom: 24px; }
  .about-image { border-radius: 6px; }
}
