/* ========== BASIS ========== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html,
  body {
    height: 100%;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    background-color: #000;
    color: #fff;
  }
  
  /* Links */
  a {
    color: inherit;
    text-decoration: none;
  }
  
  /* ========== UTILITY-KLASSEN (Tailwind-ähnlich) ========== */
  
  /* Layout */
  .min-h-screen {
    min-height: 100vh;
  }
  
  .bg-black {
    background-color: #000000;
  }
  
  .bg-zinc-900 {
    background-color: #18181b;
  }
  
  .bg-zinc-950 {
    background-color: #09090b;
  }
  
  .text-white {
    color: #ffffff;
  }
  
  .text-zinc-400 {
    color: #a1a1aa;
  }
  
  .text-zinc-500 {
    color: #71717a;
  }
  
  .text-zinc-600 {
    color: #52525b;
  }
  
  .border {
    border-width: 1px;
    border-style: solid;
  }
  
  .border-zinc-800 {
    border-color: #27272a;
  }
  
  .border-zinc-700 {
    border-color: #3f3f46;
  }
  
  .rounded-lg {
    border-radius: 0.75rem;
  }
  
  .mx-auto {
    margin-left: auto;
    margin-right: auto;
  }
  
  .max-w-7xl {
    max-width: 80rem;
  }
  
  /* Seite-Padding wie in deinem Tailwind-Layout */
  .p-page {
    padding: 1.5rem;
  }
  @media (min-width: 768px) {
    .p-page {
      padding: 2rem;
    }
  }
  @media (min-width: 1024px) {
    .p-page {
      padding: 3rem;
    }
  }
  
/* Abstände / Spacing */
.space-y-2 > * + * {
    margin-top: 0.5rem;
  }
  
  .space-y-4 > * + * {
    margin-top: 1rem; /* 16px Abstand zwischen allen Kindern */
  }
  
  .space-y-8 > * + * {
    margin-top: 2rem;
  }
  
  
  .mb-2 {
    margin-bottom: 0.5rem;
  }
  
  .mb-4 {
    margin-bottom: 1rem;
  }
  
  .mb-6 {
    margin-bottom: 1.5rem;
  }
  
  /* Grid */
  .grid {
    display: grid;
  }
  
  .grid-cols-1 {
    grid-template-columns: 1fr;
  }
  
  .gap-6 {
    gap: 1.5rem;
  }
  
  @media (min-width: 768px) {
    .md\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
  @media (min-width: 1024px) {
    .lg\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-5 {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }
  
  /* Typografie */
  .text-xs {
    font-size: 0.75rem;
  }
  
  .text-sm {
    font-size: 0.875rem;
  }
  
  .text-lg {
    font-size: 1.125rem;
  }
  
  .text-xl {
    font-size: 1.25rem;
  }
  
  .text-2xl {
    font-size: 1.5rem;
  }
  
  .text-4xl {
    font-size: 2.25rem;
  }
  
  .font-medium {
    font-weight: 500;
  }
  
  .font-semibold {
    font-weight: 600;
  }
  
  .font-bold {
    font-weight: 700;
  }
  
  .uppercase {
    text-transform: uppercase;
  }
  
  .tracking-wide {
    letter-spacing: 0.05em;
  }
  
  .tracking-tight {
    letter-spacing: -0.02em;
  }
  
  /* Sonstiges */
  .text-left {
    text-align: left;
  }
  
  .text-right {
    text-align: right;
  }
  
  .w-full {
    width: 100%;
  }
  
  .overflow-x-auto {
    overflow-x: auto;
  }
  
  .border-b {
    border-bottom-width: 1px;
  }
  
  /* Padding-Klassen aus deinem HTML */
  .p-6 {
    padding: 1.5rem;
  }
  
  .py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Tabellen */
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
  }
  
  th,
  td {
    padding: 0.75rem 1rem;
  }
  
  th {
    text-align: left;
    color: #a1a1aa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  /* ========== SPEZIELLE ELEMENTE FÜR DEIN DASHBOARD ========== */
  
  /* Back-Link oben */
  .back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #a1a1aa;
    transition: color 0.15s ease;
  }
  
  .back-link-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    transition: transform 0.15s ease;
  }
  
  .back-link:hover {
    color: #ffffff;
  }
  
  .back-link:hover .back-link-icon {
    transform: translateX(-0.25rem);
  }
  
  /* Input-Felder im Scenario Manager */
  .relative {
    position: relative;
  }
  
  .input-field {
    width: 100%;
    background-color: #09090b;
    border: 1px solid #3f3f46;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    outline: none;
  }
  
  .input-field:focus {
    border-color: #52525b;
    box-shadow: 0 0 0 2px rgba(82, 82, 91, 0.5);
  }
  
  .input-unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #71717a;
  }
  
  /* Kleine Utility für Tabellen-Reihen (abwechselnde Farbe optional) */
  tbody tr:nth-child(even) {
    background-color: #09090b;
  }
  
  /* Für „space-y-…“ im Header etc., falls genutzt */
  header.space-y-2 > * + * {
    margin-top: 0.5rem;
  }
  /* === Zusatz für Startseite / Portfolio === */

/* Container-Breite */
.max-w-6xl {
    max-width: 72rem;
  }
  
  /* Seiten-Padding Dashboard */
  .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  @media (min-width: 768px) {
    .md\:py-20 {
      padding-top: 5rem;
      padding-bottom: 5rem;
    }
  }
  
  /* Flex Layout */
  .flex {
    display: flex;
  }
  
  .items-end {
    align-items: flex-end;
  }
  
  .items-center {
    align-items: center;
  }
  
  .justify-between {
    justify-content: space-between;
  }
  
  .flex-wrap {
    flex-wrap: wrap;
  }
  
  .gap-6 {
    gap: 1.5rem;
  }
  
  .gap-2 {
    gap: 0.5rem;
  }
  
  /* Margin / Padding Utilities für Header/Footer */
  .mb-20 {
    margin-bottom: 5rem;
  }
  
  .pb-12 {
    padding-bottom: 3rem;
  }
  
  .mt-20 {
    margin-top: 5rem;
  }
  
  .pt-8 {
    padding-top: 2rem;
  }
  
  .mt-8 {
    margin-top: 2rem;
  }
  
  .mt-6 {
    margin-top: 1.5rem;
  }
  
  .mb-4 {
    margin-bottom: 1rem;
  }
  
  /* weitere kleine Layout-Helpers */
  .inline-block {
    display: inline-block;
  }
  
  .max-w-2xl {
    max-width: 42rem;
  }
  
  /* Footer Border */
  .border-t {
    border-top-width: 1px;
  }
  
  /* Schriftgrößen für Startseite */
  .text-2xl {
    font-size: 1.5rem;
  }
  
  .text-3xl {
    font-size: 1.875rem;
  }
  
  .text-5xl {
    font-size: 3rem;
  }
  
  .text-7xl {
    font-size: 4.5rem;
  }
  
  @media (min-width: 768px) {
    .md\:text-3xl {
      font-size: 1.875rem;
    }
    .md\:text-5xl {
      font-size: 3rem;
    }
    .md\:text-8xl {
      font-size: 6rem;
    }
  }
  
  @media (min-width: 1024px) {
    .lg\:text-9xl {
      font-size: 8rem;
    }
  }
  
  /* Gewichte / Tracking */
  .font-light {
    font-weight: 300;
  }
  
  .font-black {
    font-weight: 900;
  }
  
  .leading-none {
    line-height: 1;
  }
  
  .tracking-tighter {
    letter-spacing: -0.05em;
  }
  
  /* Weitere Textfarben */
  .text-zinc-300 {
    color: #d4d4d8;
  }
  
  /* Unterstrich für Link im Footer */
  .underline {
    text-decoration: underline;
  }
  
  
  /* Badges (Skills & Tags) */
.badge-skill {
    font-size: 0.75rem;
    color: #d4d4d8;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #3f3f46;
    background-color: #09090b;
  }
  
  .badge-category {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: #09090b;
    color: #a1a1aa;
  }
  
  .badge-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background-color: #09090b;
    color: #71717a;
  }
  
  /* Projektkarten */
  .card-link {
    text-decoration: none;
  }
  
  .card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
      border-color 0.15s ease, background-color 0.15s ease;
  }
  
  .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
    border-color: #3f3f46;
    background-color: #27272a;
  }
  
  .card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
  }
  
  .card-description {
    font-size: 0.875rem;
    color: #a1a1aa;
    line-height: 1.5;
  }
  
  /* „View Project“-Zeile */
  .card-view-link {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #a1a1aa;
    padding-top: 0.5rem;
  }
  
  .ml-2 {
    margin-left: 0.5rem;
  }
  
  .w-4 {
    width: 1rem;
  }
  
  .h-4 {
    height: 1rem;
  }
  
  .card-view-icon {
    transition: transform 0.15s ease;
  }
  
  .card-hover:hover .card-view-icon {
    transform: translateX(0.25rem);
  }
  
  /* kleine Flex-Helpers im Grid */
  .pt-2 {
    padding-top: 0.5rem;
  }
  
/* =========================================
   Feintuning: vertikale Abstände in Cards
   ========================================= */

/* space-y-4 NICHT innerhalb der Cards nutzen */
.card .space-y-4 > * + * {
    margin-top: 0;
  }
  
  /* 1) Badge (Kategorie) → Titel */
  .card .badge-category {
    display: inline-block;
    margin-bottom: 0.6rem; /* Abstand A */
  }
  
  /* 2) Titel → Beschreibung */
  .card .card-title {
    margin-bottom: 0.6rem; /* Abstand B */
  }
  
  /* 3) Beschreibung → Tags */
  .card .card-description {
    margin-bottom: 0.6rem; /* Abstand C */
  }
  
  /* 4) Tags-Block → „View Project“-Zeile */
  .card .flex.gap-2.pt-2 {
    padding-top: 0;         /* pt-2 neutralisieren */
    margin-top: 0.6rem;     /* Abstand D */
  }
  
  /* 5) „View Project“-Zeile etwas Luft nach oben */
  .card .card-view-link {
    margin-top: 0.6rem;     /* Abstand E */
  }
  /* =========================================
   NAVBAR / GLOBAL TOP MENU
========================================= */

.navbar {
    width: 100%;
    background-color: #111;         /* dunkler Balken */
    border-bottom: 1px solid #27272a;
    padding: 0.75rem 1.5rem;
    position: sticky;               /* bleibt oben kleben */
    top: 0;
    z-index: 50;
  }
  
  .navbar-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .navbar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    transition: opacity 0.2s ease;
  }
  
  .navbar-logo:hover {
    opacity: 0.7;
  }
  
  .navbar-linkedin {
    color: #a1a1aa;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  
  .navbar-linkedin:hover {
    color: #fff;
    transform: translateY(-1px);
  }
  
  .linkedin-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  /* =========================================
   HERO-TITEL & CODING-TYPING-EFFEKT
========================================= */

/* Überschrift "My Devlab" – harmonischer & responsive */
.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem); /* passt sich Bildschirmbreite an */
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 0.75rem;
  }
  
  /* Kleine Monospace-Zeile mit Tipp-Effekt */
  .hero-typing {
    margin-top: 0.5rem;
    color: #a1a1aa;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
      "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
  }
  
  /* der eigentliche Tipp-Effekt */
  .hero-typing-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #a1a1aa; /* Cursor */
    /* Tipp-Effekt + blinkender Cursor */
    animation:
      typing 3.5s steps(40, end) 1,
      blink 0.8s step-end infinite;
  }
  
  /* schreibt die Zeile von links nach rechts */
  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  /* Cursor blinkt */
  @keyframes blink {
    50% {
      border-color: transparent;
    }
  }
  /* =========================================
   Header-Abstand Startseite
========================================= */

.header-main {
    margin-bottom: 2.5rem; /* statt mb-20 (5rem) → deutlich kompakter */
  }
  
  /* =========================================
     Lab Info Panel zwischen Tech-Stack und Grid
  ========================================= */
  
  .lab-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 0 2rem 0;
    border-bottom: 1px solid #27272a;
    margin-bottom: 1.5rem; /* Abstand zum Project Grid */
  }
  
  @media (min-width: 768px) {
    .lab-panel {
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
    }
  }
  
  .lab-panel-text {
    flex: 2;
    max-width: 36rem;
  }
  
  .lab-panel-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a1a1aa;
    margin-bottom: 0.35rem;
  }
  
  .lab-panel-body {
    font-size: 0.95rem;
    color: #d4d4d8;
    line-height: 1.6;
  }
  
  .lab-panel-meta {
    flex: 1.3;
    display: grid;
    gap: 0.75rem;
  }
  
  .lab-meta-item {
    display: flex;
    flex-direction: column;
  }
  
  .lab-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #71717a;
    margin-bottom: 0.15rem;
  }
  
  .lab-meta-value {
    font-size: 0.9rem;
    color: #e5e5e5;
  }
  

  /* ========= Project 2 basics ========= */
.project-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #71717a;
  }
  
  .project-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
  }
  
  .project-subtitle {
    font-size: 0.95rem;
    color: #a1a1aa;
  }
  
  /* Intro Panel */
  .project2-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 0 0.75rem 0;
    border-bottom: 1px solid #27272a;
  }
  
  @media (min-width: 768px) {
    .project2-intro {
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
    }
  }
  
  .project2-intro-text {
    flex: 2;
    max-width: 36rem;
    font-size: 0.9rem;
    color: #d4d4d8;
    line-height: 1.6;
  }
  
  .project2-intro-meta {
    flex: 1.3;
    display: grid;
    gap: 0.75rem;
  }
  
  /* Boxen */
  .project2-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
  }
  
  .section-hint {
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-bottom: 0.9rem;
  }
  
  /* Form Layout */
  .project2-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }
  
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .form-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #71717a;
  }
  
  .form-input {
    background-color: #09090b;
    border: 1px solid #3f3f46;
    border-radius: 0.375rem;
    padding: 0.6rem 0.8rem;
    color: #ffffff;
    font-size: 0.9rem;
  }
  
  .form-input:focus {
    border-color: #52525b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(82, 82, 91, 0.5);
  }
  
  .form-grid-2 {
    display: grid;
    gap: 0.9rem;
  }
  
  @media (min-width: 768px) {
    .form-grid-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  .form-table-wrapper {
    border-radius: 0.5rem;
    border: 1px solid #27272a;
    background-color: #09090b;
    overflow-x: auto;
  }
  
  .project2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
  }
  
  .project2-table th,
  .project2-table td {
    padding: 0.5rem 0.75rem;
  }
  
  .project2-table th {
    text-align: left;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
  }
  
  .project2-table tbody tr:nth-child(even) {
    background-color: #111111;
  }
  
  .form-input-table {
    width: 100%;
    font-size: 0.8rem;
  }
  
  /* Buttons */
  .form-actions {
    margin-top: 0.75rem;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 0.375rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    color: #ffffff;
    cursor: pointer;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-danger:hover {
    background-color: #3f3f46;
  }
  
  .btn-danger {
    color: #fca5a5;
  }
  
  /* KPIs */
  .kpi-grid {
    display: grid;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem 0;
  }
  
  @media (min-width: 768px) {
    .kpi-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
  .project2-kpi {
    background-color: #09090b;
    border-radius: 0.5rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #27272a;
  }
  
  .kpi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #71717a;
  }
  
  .kpi-value {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  /* Szenarien Header */
  .project2-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  /* Compare */
  .compare-form {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .compare-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  @media (min-width: 768px) {
    .compare-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
  .compare-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .compare-kpi {
    font-size: 0.85rem;
    color: #a1a1aa;
  }
  
  .compare-delta {
    border-radius: 0.5rem;
    border: 1px dashed #3f3f46;
    padding: 0.65rem 0.8rem;
  }
  
  /* Hinweise / Messages */
  .notice-box {
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    color: #e5e5e5;
  }
  /* Nummern-Spinner in Number-Inputs ausblenden */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}
.breakeven-wrapper {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .breakeven-chart {
    width: 100%;
    max-width: 480px;
    display: block;
    border-radius: 0.5rem;
    border: 1px solid #1f2937;
    background-color: #020617;
  }
  .project2-kpi {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 72px; /* sorgt dafür, dass alle Boxen gleich hoch sind */
  }
  
  .kpi-value {
    margin-top: 0.3rem;
    line-height: 1.2;
    white-space: nowrap; /* verhindert Zeilenumbruch bei z.B. "123.456 €" */
  }
   