    :root {
      --primary: #004d40;
      --secondary: #00796b;
      --accent: #23d5ab;
      --accent-2: #23a6d5;
      --bg-color: #f8f8f8;
      --card-bg: #ffffff;
      --text-dark: #333;
      --transition: 0.3s;
      --border-color: rgba(255, 255, 255, 0.1);
      --bg-light: #f4f7f6;
    }
    body {
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: var(--text-dark);
    }
    /* Header-Stil bleibt gleich wie auf allen anderen Seiten */
    header {
      background: rgba(0, 77, 64, 0.85);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      color: #fff;
      padding: 10px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    header img {
      height: 70px;
      transition: transform var(--transition);
    }
    header img:hover { transform: scale(1.05); }
    nav {
      display: flex;
      gap: 10px !important;
      align-items: center;
    }
    header a {
      color: #ffffff !important;
      text-decoration: none;
      font-weight: 500;
      padding: 8px 15px;
      border-radius: 8px;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    header a:hover { 
      background-color: rgba(255, 255, 255, 0.1);
      color: #ffffff !important;
    }
    header a.active {
      background-color: var(--primary);
      color: #ffffff !important;
    }
    /* Optional: Falls auf allen Seiten ein einheitlicher Header verwendet wird, kann hier
       kein separater Seitentitel-Header eingefügt werden. Stattdessen den Inhalt in die Hauptseite integrieren. */
    .page-title {
      text-align: center;
      padding: 2rem 1rem;
      margin: 1rem 0;
      font-size: 2.5rem;
      font-weight: 900;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: transparent;
      background-clip: text;
      -webkit-background-clip: text;
      position: relative;
      text-transform: uppercase;
      letter-spacing: 3px;
      animation: titleGlow 2s ease-in-out infinite;
    }
    .page-title::before {
      content: "CO₂-Dashboard";
      position: absolute;
      left: 0;
      right: 0;
      text-shadow: 2px 2px 20px rgba(35, 213, 171, 0.4);
      opacity: 0.6;
      z-index: -1;
    }
    .page-title::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 150px;
      height: 4px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      border-radius: 2px;
    }
    @keyframes titleGlow {
      0%, 100% {
        text-shadow: 0 0 30px rgba(35, 213, 171, 0.2);
        transform: scale(1);
      }
      50% {
        text-shadow: 0 0 40px rgba(35, 213, 171, 0.4);
        transform: scale(1.02);
      }
    }
    /* Responsive Anpassungen */
    @media (max-width: 768px) {
      .page-title {
        font-size: 2rem;
        letter-spacing: 2px;
      }
    }
    .container {
      max-width: 1200px;
      margin: 2rem auto;
      background: var(--card-bg);
      border-radius: 8px;
      padding: 2rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      animation: fadeIn 0.5s ease-in-out;
    }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .btn-container { text-align: center; margin-bottom: 20px; }
    .action-button {
      background: var(--accent);
      color: #fff;
      padding: 10px 20px;
      border: none;
      border-radius: 25px;
      cursor: pointer;
      margin: 0 10px;
      transition: background var(--transition);
    }
    .action-button:hover { background: var(--accent-2); }
    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      margin: 2rem 0;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    th {
      background: linear-gradient(45deg, var(--primary), var(--secondary));
      color: white;
      padding: 1.2rem;
      font-size: 1.1rem;
      font-weight: 600;
      text-align: left;
    }
    td {
      padding: 1rem;
      background: white;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      font-size: 1rem;
    }
    tr:last-child td {
      border-bottom: none;
    }
    tr:hover td {
      background: rgba(35, 213, 171, 0.05);
    }
    .charts-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
      margin-top: 2rem;
    }
    .chart-box {
      background: var(--card-bg);
      border-radius: 8px;
      padding: 1rem;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      flex: 1 1 300px;
      text-align: center;
    }
    .chart-container { max-width: 600px; margin: 2rem auto; }
    .filter-container {
      text-align: center;
      margin: 1rem 0;
      background: rgba(255,255,255,0.8);
      padding: 10px;
      border-radius: 8px;
      display: inline-block;
    }
    .no-data {
      text-align: center;
      font-size: 1.2rem;
      margin-top: 2rem;
      color: var(--primary);
    }
    /* CO2-Bilanz Bericht Styling */
    .pdf-header {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: white;
      padding: 2rem;
      border-radius: 15px;
      margin-bottom: 2rem;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      animation: slideInFromTop 0.8s ease-out;
    }
    .pdf-header h2 {
      font-size: 2.2rem;
      margin-bottom: 1rem;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
      animation: fadeInScale 1s ease-out 0.2s both;
    }
    .pdf-header p {
      font-size: 1.1rem;
      margin: 0.5rem 0;
      opacity: 0.9;
      animation: slideInFromLeft 0.6s ease-out 0.4s both;
    }
    /* Zusammenfassende Statistiken */
    .stats-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin: 2rem 0;
    }
    .stat-card {
      background: white;
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      animation: fadeInUp 0.8s ease-out both;
      position: relative;
      overflow: hidden;
    }
    .stat-card:nth-child(1) { animation-delay: 0.1s; }
    .stat-card:nth-child(2) { animation-delay: 0.2s; }
    .stat-card:nth-child(3) { animation-delay: 0.3s; }
    .stat-card:nth-child(4) { animation-delay: 0.4s; }
    
    .stat-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
      transition: left 0.5s ease;
    }
    
    .stat-card:hover::before {
      left: 100%;
    }
    
    .stat-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    .stat-card h4 {
      color: var(--primary);
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      animation: fadeIn 0.6s ease-out 0.5s both;
    }
    .stat-card .value {
      font-size: 1.8rem;
      font-weight: bold;
      color: var(--secondary);
      margin: 0.5rem 0;
      animation: countUp 1.5s ease-out 0.7s both;
      position: relative;
    }
    .stat-card .description {
      font-size: 0.9rem;
      color: #666;
      animation: fadeIn 0.6s ease-out 0.9s both;
    }
    /* Vergleichsstatistiken */
    .comparison-stats {
      background: white;
      padding: 1.5rem;
      border-radius: 10px;
      margin: 2rem 0;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      animation: slideInFromRight 0.8s ease-out 0.6s both;
    }
    .comparison-stats p {
      padding: 0.8rem 0;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      display: flex;
      justify-content: space-between;
      align-items: center;
      animation: fadeInUp 0.6s ease-out both;
    }
    .comparison-stats p:nth-child(1) { animation-delay: 0.7s; }
    .comparison-stats p:nth-child(2) { animation-delay: 0.8s; }
    .comparison-stats p:last-child {
      border-bottom: none;
    }
    .comparison-stats strong {
      color: var(--primary);
    }
    
    /* Chart-Container Animationen */
    .chart-container {
      max-width: 600px;
      margin: 2rem auto;
      animation: fadeInScale 1s ease-out 0.8s both;
      position: relative;
    }
    
    .charts-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
      margin-top: 2rem;
    }
    
    .chart-box {
      background: var(--card-bg);
      border-radius: 8px;
      padding: 1rem;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      flex: 1 1 300px;
      text-align: center;
      animation: fadeInUp 0.8s ease-out both;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    
    .chart-box:nth-child(1) { animation-delay: 0.9s; }
    .chart-box:nth-child(2) { animation-delay: 1.0s; }
    .chart-box:nth-child(3) { animation-delay: 1.1s; }
    
    .chart-box::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(45deg, transparent, rgba(35, 213, 171, 0.1), transparent);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .chart-box:hover::after {
      opacity: 1;
    }
    
    .chart-box:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .chart-box h3 {
      color: var(--primary);
      margin-bottom: 1rem;
      animation: fadeIn 0.6s ease-out 1.2s both;
    }
    
    /* Tabelle Animationen */
    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      margin: 2rem 0;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      animation: slideInFromBottom 0.8s ease-out 1.3s both;
    }
    
    th {
      background: linear-gradient(45deg, var(--primary), var(--secondary));
      color: white;
      padding: 1.2rem;
      font-size: 1.1rem;
      font-weight: 600;
      text-align: left;
      animation: fadeIn 0.6s ease-out both;
    }
    
    th:nth-child(1) { animation-delay: 1.4s; }
    th:nth-child(2) { animation-delay: 1.5s; }
    th:nth-child(3) { animation-delay: 1.6s; }
    
    td {
      padding: 1rem;
      background: white;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      font-size: 1rem;
      animation: fadeInUp 0.6s ease-out both;
      transition: background 0.3s ease;
    }
    
    tr:nth-child(1) td:nth-child(1) { animation-delay: 1.7s; }
    tr:nth-child(1) td:nth-child(2) { animation-delay: 1.8s; }
    tr:nth-child(1) td:nth-child(3) { animation-delay: 1.9s; }
    tr:nth-child(2) td:nth-child(1) { animation-delay: 2.0s; }
    tr:nth-child(2) td:nth-child(2) { animation-delay: 2.1s; }
    tr:nth-child(2) td:nth-child(3) { animation-delay: 2.2s; }
    tr:nth-child(3) td:nth-child(1) { animation-delay: 2.3s; }
    tr:nth-child(3) td:nth-child(2) { animation-delay: 2.4s; }
    tr:nth-child(3) td:nth-child(3) { animation-delay: 2.5s; }
    tr:nth-child(4) td:nth-child(1) { animation-delay: 2.6s; }
    tr:nth-child(4) td:nth-child(2) { animation-delay: 2.7s; }
    tr:nth-child(4) td:nth-child(3) { animation-delay: 2.8s; }
    
    tr:last-child td {
      border-bottom: none;
    }
    tr:hover td {
      background: rgba(35, 213, 171, 0.05);
    }
    
    /* Button Animationen */
    .action-button {
      background: var(--accent);
      color: #fff;
      padding: 10px 20px;
      border: none;
      border-radius: 25px;
      cursor: pointer;
      margin: 0 10px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      animation: fadeInUp 0.6s ease-out both;
    }
    
    .action-button:nth-child(1) { animation-delay: 0.3s; }
    .action-button:nth-child(2) { animation-delay: 0.4s; }
    .action-button:nth-child(3) { animation-delay: 0.5s; }
    .action-button:nth-child(4) { animation-delay: 0.6s; }
    
    .action-button::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255,255,255,0.3);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.6s ease, height 0.6s ease;
    }
    
    .action-button:hover::before {
      width: 300px;
      height: 300px;
    }
    
    .action-button:hover { 
      background: var(--accent-2);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(35, 213, 171, 0.4);
    }
    
    /* Animation Keyframes */
    @keyframes slideInFromTop {
      from {
        transform: translateY(-50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }
    
    @keyframes slideInFromLeft {
      from {
        transform: translateX(-30px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }
    
    @keyframes slideInFromRight {
      from {
        transform: translateX(30px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }
    
    @keyframes slideInFromBottom {
      from {
        transform: translateY(50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }
    
    @keyframes fadeInUp {
      from {
        transform: translateY(30px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }
    
    @keyframes fadeInScale {
      from {
        transform: scale(0.9);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }
    
    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }
    
    @keyframes countUp {
      from {
        opacity: 0;
        transform: scale(0.5);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }
    
    /* Loading Animation für Charts */
    .chart-loading {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 200px;
      background: rgba(255,255,255,0.8);
      border-radius: 8px;
    }
    
    .chart-spinner {
      width: 40px;
      height: 40px;
      border: 4px solid rgba(35, 213, 171, 0.2);
      border-top: 4px solid var(--accent);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    /* Responsive Anpassungen */
    @media (max-width: 768px) {
      .pdf-header {
        padding: 1.5rem;
      }
      .pdf-header h2 {
        font-size: 1.8rem;
      }
      td, th {
        padding: 0.8rem;
        font-size: 0.9rem;
      }
      .stat-card .value {
        font-size: 1.5rem;
      }
      .charts-grid {
        flex-direction: column;
      }
      .chart-box {
        flex: 1 1 100%;
      }
    }
    
    /* Einheiten-Toggle Styles */
    .unit-toggle {
      background: rgba(35, 213, 171, 0.2);
      border: 2px solid transparent;
      padding: 8px 20px;
      margin: 0 5px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
      color: var(--primary);
    }
    
    .unit-toggle:hover {
      background: rgba(35, 213, 171, 0.3);
    }
    
    .unit-toggle.active {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
      transform: scale(1.05);
    }
    
    /* === NEUE STILE FÜR DAS TAB-LAYOUT === */
    .dashboard-container {
      max-width: 1200px;
      margin: 2rem auto;
      background: var(--card-bg);
      border-radius: 15px;
      padding: 1.5rem;
      box-shadow: 0 8px 30px rgba(0,0,0,0.1);
      animation: fadeIn 0.5s ease-in-out;
    }
    
    .tabs-nav {
      display: flex;
      gap: 10px;
      border-bottom: 2px solid #eee;
      margin-bottom: 1.5rem;
    }
    
    .tab-link {
      padding: 12px 25px;
      cursor: pointer;
      background: transparent;
      border: none;
      border-bottom: 3px solid transparent;
      font-size: 1.1rem;
      font-weight: 600;
      color: #666;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .tab-link:hover {
      background: #f5f5f5;
      color: var(--primary);
    }
    
    .tab-link.active {
      color: var(--primary);
      border-bottom-color: var(--accent);
    }
    
    .tab-content {
      display: none;
      animation: tabFadeIn 0.6s ease-out;
    }
    
    .tab-content.active {
      display: block;
    }
    
    @keyframes tabFadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Subscope Trend Charts */
    .scope-selector {
      margin: 2rem 0;
    }

    .scope-btn {
      transition: all 0.3s ease;
      font-weight: 600;
    }

    .scope-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .scope-btn.active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .chart-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .chart-controls {
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      border-radius: 15px;
      padding: 2rem;
      border: 1px solid #dee2e6;
      margin-bottom: 2rem;
    }

    /* Responsive Design für Subscope Charts */
    @media (max-width: 768px) {
      .scope-selector { flex-direction: column; gap: 0.5rem; }
      .chart-grid { grid-template-columns: 1fr; gap: 1rem; }
    }

    /* Rohstoff-Analyse Styles */
    .raw-materials-container {
      padding: 2rem 0;
    }

    .raw-materials-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .raw-materials-header h3 {
      color: var(--primary);
      font-size: 2.2rem;
      margin-bottom: 1rem;
      font-weight: 700;
    }

    .analysis-description {
      color: #666;
      font-size: 1.1rem;
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.6;
    }

    .analysis-controls {
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }

    .control-group {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .control-group label {
      font-weight: 600;
      color: var(--primary);
      min-width: 80px;
    }

    .control-group select {
      padding: 0.8rem 1.2rem;
      border: 2px solid #e0e0e0;
      border-radius: 10px;
      background: white;
      font-size: 1rem;
      color: var(--primary);
      font-weight: 500;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .control-group select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(35, 213, 171, 0.1);
    }

    .raw-materials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .material-card {
      background: white;
      border-radius: 15px;
      padding: 2rem;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      border: 1px solid #f0f0f0;
    }

    .material-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .material-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 2px solid #f8f9fa;
    }

    .material-icon {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: white;
      flex-shrink: 0;
    }

    .material-icon.emission-high { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }
    .material-icon.emission-medium { background: linear-gradient(135deg, #ffa726, #ff9800); }
    .material-icon.emission-low { background: linear-gradient(135deg, #66bb6a, #4caf50); }

    .material-title {
      flex: 1;
    }

    .material-name {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.3rem;
    }

    .material-category {
      font-size: 0.9rem;
      color: #666;
      background: #f8f9fa;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      display: inline-block;
    }

    .material-details {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .detail-item {
      background: #f8f9fa;
      padding: 1rem;
      border-radius: 10px;
      text-align: center;
    }

    .detail-label {
      font-size: 0.85rem;
      color: #666;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    .detail-value {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--primary);
    }

    .detail-unit {
      font-size: 0.9rem;
      color: #666;
      margin-left: 0.3rem;
    }

    .material-emission-bar {
      margin-bottom: 1rem;
    }

    .emission-bar-container {
      background: #e0e0e0;
      height: 8px;
      border-radius: 4px;
      overflow: hidden;
      margin-bottom: 0.5rem;
    }

    .emission-bar {
      height: 100%;
      border-radius: 4px;
      transition: width 0.8s ease;
    }

    .emission-bar.high { background: linear-gradient(90deg, #ff6b6b, #ee5a52); }
    .emission-bar.medium { background: linear-gradient(90deg, #ffa726, #ff9800); }
    .emission-bar.low { background: linear-gradient(90deg, #66bb6a, #4caf50); }

    .emission-percentage {
      font-size: 0.85rem;
      color: #666;
      text-align: right;
      font-weight: 600;
    }

    .material-metadata {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 1rem;
      border-top: 1px solid #f0f0f0;
      font-size: 0.9rem;
      color: #666;
      gap: 1rem;
    }

    .ki-tips-btn {
      background: linear-gradient(135deg, #27ae60, #2ecc71);
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .ki-tips-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }

    .ki-tips-btn i {
      font-size: 0.9rem;
    }

    .scope-badge {
      padding: 0.3rem 0.8rem;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
    }

    .scope-badge.scope1 { background: #ff6b6b; color: white; }
    .scope-badge.scope2 { background: #4ecdc4; color: white; }
    .scope-badge.scope3 { background: #45b7d1; color: white; }

    .summary-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
    }

    .stat-card {
      background: white;
      padding: 1.5rem;
      border-radius: 12px;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .stat-value {
      font-size: 2rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.5rem;
    }

    .stat-label {
      font-size: 1rem;
      color: #666;
      font-weight: 600;
    }

    .stat-unit {
      font-size: 0.9rem;
      color: #999;
    }

    /* Erweiterte Rohstoff-Analyse Styles */
    .materials-dashboard {
      margin-bottom: 3rem;
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .dashboard-card {
      background: white;
      border-radius: 15px;
      padding: 2rem;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      border: 1px solid #f0f0f0;
    }

    .dashboard-card h4 {
      color: var(--primary);
      font-size: 1.3rem;
      margin-bottom: 1.5rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .advanced-controls {
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      border-radius: 15px;
      padding: 2rem;
      border: 1px solid #dee2e6;
      margin-bottom: 2rem;
    }

    .controls-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }

    .controls-row:last-child {
      margin-bottom: 0;
    }

    .control-group input[type="text"] {
      padding: 0.8rem 1.2rem;
      border: 2px solid #e0e0e0;
      border-radius: 10px;
      background: white;
      font-size: 1rem;
      color: var(--primary);
      font-weight: 500;
      transition: all 0.3s ease;
      min-width: 200px;
    }

    .control-group input[type="text"]:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(35, 213, 171, 0.1);
    }

    .efficiency-ranking {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .efficiency-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem;
      background: #f8f9fa;
      border-radius: 10px;
      border-left: 4px solid var(--accent);
    }

    .efficiency-item.high {
      border-left-color: #ff6b6b;
    }

    .efficiency-item.medium {
      border-left-color: #ffa726;
    }

    .efficiency-item.low {
      border-left-color: #66bb6a;
    }

    .efficiency-name {
      font-weight: 600;
      color: var(--primary);
    }

    .efficiency-score {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--accent);
    }

    .ai-recommendations {
      margin-top: 2rem;
    }

    .recommendation-item {
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1rem;
      border-left: 4px solid #27ae60;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .recommendation-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .recommendation-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #27ae60, #2ecc71);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.2rem;
    }

    .recommendation-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--primary);
    }

    .recommendation-impact {
      font-size: 0.9rem;
      color: #27ae60;
      font-weight: 600;
    }

    .recommendation-description {
      color: #666;
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .recommendation-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .action-btn {
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .action-btn.primary {
      background: #27ae60;
      color: white;
    }

    .action-btn.secondary {
      background: #f8f9fa;
      color: var(--primary);
      border: 1px solid #e0e0e0;
    }

    .action-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .benchmarking-section {
      margin-top: 2rem;
    }

    .benchmark-item {
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .benchmark-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }

    .benchmark-name {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--primary);
    }

    .benchmark-status {
      padding: 0.3rem 0.8rem;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
    }

    .benchmark-status.better {
      background: #e8f5e8;
      color: #27ae60;
    }

    .benchmark-status.worse {
      background: #ffebee;
      color: #f44336;
    }

    .benchmark-status.average {
      background: #fff3e0;
      color: #ff9800;
    }

    .benchmark-comparison {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1rem;
      margin-top: 1rem;
    }

    .comparison-item {
      text-align: center;
      padding: 1rem;
      background: #f8f9fa;
      border-radius: 8px;
    }

    .comparison-label {
      font-size: 0.8rem;
      color: #666;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      font-weight: 600;
    }

    .comparison-value {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--primary);
    }

    .cost-analysis {
      margin-top: 2rem;
    }

    .cost-item {
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .cost-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }

    .cost-name {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--primary);
    }

    .cost-estimate {
      font-size: 1.3rem;
      font-weight: 700;
      color: #27ae60;
    }

    .cost-breakdown {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      margin-top: 1rem;
    }

    .breakdown-item {
      text-align: center;
      padding: 1rem;
      background: #f8f9fa;
      border-radius: 8px;
    }

    .breakdown-label {
      font-size: 0.8rem;
      color: #666;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      font-weight: 600;
    }

    .breakdown-value {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--primary);
    }

    .ki-tips-container {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .ki-tip-item {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 1.5rem;
      border-left: 4px solid #27ae60;
    }

    .tip-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .tip-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #27ae60, #2ecc71);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .tip-header h4 {
      margin: 0;
      color: #004d40;
      font-size: 1.1rem;
      font-weight: 600;
    }

    .tip-content {
      color: #666;
      line-height: 1.6;
    }

    .ki-loading .ai-spinner {
      border: 3px solid #f3f3f3;
      border-top: 3px solid #27ae60;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      display: inline-block;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Responsive Design für erweiterte Rohstoff-Analyse */
    @media (max-width: 768px) {
      .raw-materials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

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

      .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
      }

      .control-group {
        justify-content: space-between;
      }

      .control-group input[type="text"] {
        min-width: 100%;
      }

      .material-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
      }

      .summary-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
      }

      .benchmark-comparison {
        grid-template-columns: 1fr;
        gap: 0.8rem;
      }

      .cost-breakdown {
        grid-template-columns: 1fr;
        gap: 0.8rem;
      }

      .recommendation-actions {
        flex-direction: column;
      }

      .material-metadata {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }

      .ki-tips-btn {
        align-self: flex-start;
      }
    }
    
    .unit-toggle-container {
      display: inline-block;
      background: rgba(255,255,255,0.9);
      padding: 8px;
      border-radius: 25px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .unit-toggle-container label {
      margin-right: 10px;
      font-weight: 600;
      color: var(--text-dark);
    }
