/* === Reset & Basis === */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* === Body & Container === */
    body {
      background: #2b2d3a;
      color: #f0f0f0;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: start;
      padding: 60px 40px;
      transition: background .3s, color .3s;
    }

    .container {
      width: 100%;
      max-width: 1400px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    header {
      text-align: center;
      margin-bottom: 40px;
      width: 100%;
    }

    h1 {
      font-size: 3.5rem;
      font-weight: 700;
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 3px;
      color: #8c91a8;
      transition: color .3s;
    }

    .subtitle {
      font-size: 1.4rem;
      opacity: 0.85;
      margin-bottom: 30px;
      font-weight: 300;
      color: #c0c2cc;
      transition: color .3s;
    }

    /* === Projektgitter === */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 30px;
      width: 100%;
      margin-bottom: 60px;
    }

    .project-card {
      background: rgba(30, 30, 40, 0.8);
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(100, 100, 120, 0.2);
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .project-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 35px rgba(255, 255, 255);
    }

    .project-image {
      height: 200px;
      overflow: hidden;
      position: relative;
    }

    .project-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .project-card:hover .project-image img {
      transform: scale(1.05);
    }

    .project-content {
      padding: 25px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .project-title {
      font-size: 1.8rem;
      margin-bottom: 15px;
      color: #EAEFEF;
      transition: color .3s;
    }

    .project-tech {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 20px;
    }

    .tech-tag {
      background: rgba(127, 140, 170, 0.3);
      color: #EAEFEF;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .project-description {
      margin-bottom: 25px;
      line-height: 1.6;
      color: #EAEFEF;
      flex: 1;
      transition: color .3s;
    }

    .project-links {
      display: flex;
      gap: 15px;
    }

    .project-link {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      background: rgba(127, 140, 170, 0.3);
      color: #EAEFEF;
      text-decoration: none;
      border-radius: 5px;
      transition: all 0.3s ease;
    }

    .project-link:hover {
      background: rgba(127, 140, 170, 0.5);
      transform: translateY(-3px);
    }

    /* === Zurück-Button === */
    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(127, 140, 170, 0.3);
      color: #EAEFEF;
      border: none;
      padding: 12px 25px;
      font-size: 1rem;
      font-weight: 600;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      margin-bottom: 40px;
    }

    .back-btn:hover {
      background: rgba(127, 140, 170, 0.5);
      transform: translateY(-3px);
    }

    footer {
      margin-top: 60px;
      text-align: center;
      color: rgba(250, 250, 250, 0.6);
      font-size: 0.9rem;
      transition: color .3s;
      width: 100%;
    }

    .switch-label {
      color: #8c91a8;
      font-weight: 500;
      transition: color .3s;
    }
    
    .switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 34px;
    }
    
    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #4a4d63;
      transition: .4s;
      border-radius: 34px;
    }
    
    .slider:before {
      position: absolute;
      content: "";
      height: 26px;
      width: 26px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }
    
    input:checked + .slider {
      background-color: #00a8ff;
    }
    
    input:checked + .slider:before {
      transform: translateX(26px);
    }
    
    .slider-icon {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 16px;
      color: #f0f0f0;
      z-index: 1;
    }
    
    .moon {
      left: 8px;
    }
    
    .sun {
      right: 8px;
    }

    @media (max-width: 900px) {
      .projects-grid {
        grid-template-columns: 1fr;
      }
      
      h1 { font-size: 2.5rem; }
    }

    
    [data-theme="light"] {
      --bg: #f5f7ff;
      --text: #2d3748;
      --accent: #4a5568;
      --card-bg: rgba(255, 255, 255, 0.9);
      --border: rgba(160, 174, 192, 0.3);
      --btn-bg: #4a5568;
      --btn-hover: #2d3748;
    }

    [data-theme="light"] body {
      background: var(--bg);
      color: var(--text);
    }

    [data-theme="light"] h1 {
      color: var(--accent);
    }

    [data-theme="light"] .subtitle {
      color: var(--accent);
    }

    [data-theme="light"] .project-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
    }

    [data-theme="light"] .project-title {
      color: var(--text);
    }

    [data-theme="light"] .project-description {
      color: var(--text);
    }

    [data-theme="light"] .tech-tag {
      background: rgba(74, 85, 104, 0.1);
      color: var(--text);
    }

    [data-theme="light"] .project-link {
      background: rgba(74, 85, 104, 0.1);
      color: var(--text);
    }

    [data-theme="light"] .project-link:hover {
      background: rgba(74, 85, 104, 0.2);
    }

    [data-theme="light"] footer {
      color: rgba(45, 55, 72, 0.7);
    }

    [data-theme="light"] .switch-label {
      color: var(--accent);
    }

    [data-theme="light"] .slider {
      background-color: #cbd5e0;
    }

    [data-theme="light"] .back-btn {
      background: rgba(74, 85, 104, 0.1);
      color: var(--text);
    }

    [data-theme="light"] .back-btn:hover {
      background: rgba(74, 85, 104, 0.2);
    }