/*
 * Minimales Grund-Stylesheet: template.css
 * --------------------------------------------------
 * Ziel: Kleiner, klarer Startpunkt. Enthält nur:
 * - Reset / Basis
 * - Farb- und Layout-Variablen (Farbschema behalten)
 * - Grundlegende Typografie
 * - Container & einfache Responsive Regeln
 * Weitere Komponenten (Navigation, Buttons, Tabellen, usw.) werden später inkrementell ergänzt.
 */

/* Reset (leichtgewichtig) */
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

/* Farb- und Design-Variablen (Dark Theme Basis) */
:root {
  --color-bg: #0f172a; /* Hintergrund dunkel */
  --color-bg-alt: #1e293b;
  --color-surface: #334155;
  --color-border: #475569;
  --color-text: #f1f5f9;
  --color-text-muted: #cbd5e1;
  --color-primary: #0ea5e9;
  --color-primary-hover: #0284c7;
  --color-accent: #10b981;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: 0.18s ease-in-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --container-max: 1280px;
}

/* Optional: Light Variante (später aktivierbar) */
/*
@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-surface: #e2e8f0;
    --color-border: #cbd5e1;
    --color-text: #0f172a;
    --color-text-muted: #475569;
  }
}
*/

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--color-bg);
  color: var(--color-text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Grundlegende Typografie */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }

p { margin-top: 1rem; }
p + p { margin-top: .75rem; }

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover, a:focus { color: var(--color-primary-hover); }

/* Layout Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container-max);
  padding: 0 1.25rem;
}

main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 0 1.5rem;
}

footer {
  flex-shrink: 0;
  padding: .6rem 0;
  font-size: .8rem;
  line-height: 1.25;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
  z-index: 50;
}
footer p { margin: .1rem 0 0; }
footer p:first-child { margin-top: 0; }
footer a { color: var(--color-text-muted); text-decoration: none; }
footer a:hover { color: var(--color-primary); }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 1rem;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.cookie-banner-content p {
  margin: 0;
  color: var(--color-text);
  font-size: .95rem;
  line-height: 1.5;
}

.cookie-banner-content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-banner-content a:hover {
  color: var(--color-primary-dark, #0056b3);
}

.cookie-banner-buttons {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-cookie-accept,
.btn-cookie-decline {
  padding: .5rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-accept {
  background: var(--color-primary);
  color: white;
}

.btn-cookie-accept:hover {
  background: var(--color-primary-dark, #0056b3);
  transform: translateY(-1px);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-cookie-decline:hover {
  background: var(--color-bg-secondary, #f5f5f5);
  border-color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cookie-banner-buttons {
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: .75rem;
  }

  .cookie-banner-content p {
    font-size: .85rem;
  }

  .btn-cookie-accept,
  .btn-cookie-decline {
    padding: .45rem 1.25rem;
    font-size: .85rem;
  }
}


/* Einfache Responsive Anpassungen */
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  .container { padding: 0 .9rem; }
}

/* Custom Scrollbar Styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface) var(--color-bg);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--color-bg);
}

*::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: 6px;
  border: 2px solid var(--color-bg);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--color-border);
}

*::-webkit-scrollbar-corner {
  background: var(--color-bg);
}

/* Utility Klassen (Minimal) */
.muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Navigation (minimal) */
.site-nav {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-brand { font-weight: 600; font-size: 1.15rem; color: var(--color-primary); }
.nav-brand:hover { color: var(--color-primary-hover); }
.nav-menu { display: flex; align-items: center; gap: .5rem; }
.nav-menu a, .nav-menu button { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: var(--radius-sm); font-size: 1rem; background: transparent; border: none; color: var(--color-text-muted); cursor: pointer; transition: var(--transition); }
.nav-menu a:hover, .nav-menu button:hover { background: var(--color-surface); color: var(--color-text); }
.nav-menu a.active { background: var(--color-primary); color: #fff; }
.logout-form button { background: transparent; }
.logout-form button:hover { background: var(--color-surface); color: var(--color-text); }

/* Dropdowns (generisch) */
.dropdown { position: relative; }
.dropdown-toggle { background: transparent; border: 1px solid var(--color-border); padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--color-text-muted); display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.dropdown-toggle:hover { background: var(--color-surface); color: var(--color-text); }
.dropdown.open .dropdown-toggle { background: var(--color-surface); color: var(--color-text); }
.dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .3rem; display: none; flex-direction: column; width: max-content; min-width: 100%; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.35); z-index: 10; }
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a { padding: .55rem .85rem; font-size: 1rem; display: flex; align-items: center; gap: .4rem; color: var(--color-text-muted); }
.dropdown-menu a:hover { background: var(--color-surface); color: var(--color-text); }
/* Ausrichtung: rechtsbündig für z.B. Sprachmenü */
.dropdown--right .dropdown-menu { right: 0; left: auto; }

/* Hilfsklassen */
.flag { font-size: 1rem; }

/* Mobile Burger */
.nav-toggle { display: none; background: transparent; border: 1px solid var(--color-border); color: var(--color-text); padding: .45rem .65rem; border-radius: var(--radius-sm); }
.nav-toggle:hover { background: var(--color-surface); }

@media (max-width: 800px) {
  /* Mobile: Erlaube Body-Overflow, damit Seite scrollbar ist */
  body {
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  /* Main-Bereich soll auf mobil normal scrollen */
  main {
    overflow-y: visible;
    padding-bottom: 80px; /* Platz für den fixierten Footer */
  }

  /* Footer auf mobil fixiert am unteren Rand */
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
  }

  /* Navigation auf mobil fixiert am oberen Rand */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
  }

  /* Main-Bereich: Platz für fixierte Navigation oben */
  main {
    margin-top: 56px; /* Höhe der Navigation */
  }

  /* Topbar: Burger links, Titel rechts (fixiert) */
  .nav-bar { position: relative; flex-wrap: wrap; align-items: stretch; }
  .nav-toggle { position: fixed; left: 1.25rem; top: 8px; display: inline-flex; z-index: 1001; }
  .nav-title { position: fixed; right: 1.25rem; top: 28px; transform: translateY(-50%); font-weight: 700; z-index: 1001; }

  /* Menüspalten: linksbündig, ohne Zusatzabstände, untereinander */
  .nav-left, .nav-right { width: 100% !important; justify-content: flex-start !important; align-items: flex-start !important; padding: 0 !important; margin: 0 !important; flex-direction: column; }

  /* Nur beim geöffneten Menü: Inhalt unter die 56px hohe Topbar schieben */
  .site-nav.open .nav-left { margin-top: 56px !important; }
  .site-nav.open .nav-right { margin-top: 0 !important; }

  /* Wenn Menü geöffnet: Navigation nimmt ganzen Viewport ein */
  .site-nav.open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
  }


  /* Menülisten: geschlossen ausblenden, offen voll anzeigen ohne Zusatzlücke */
  .site-nav:not(.open) .nav-menu-left, .site-nav:not(.open) .nav-menu-right { display: none; }
  .site-nav.open .nav-menu-left, .site-nav.open .nav-menu-right { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: 0; }

  /* Dropdowns: mobil immer aufgeklappt, eingerückt, Pfeil vor Unterpunkten */
  /* Ausnahme: Sprachauswahl (.lang-switch) bleibt interaktiv */
  .site-nav.open .dropdown:not(.lang-switch) { width: 100%; }
  .site-nav.open .dropdown:not(.lang-switch) .dropdown-toggle .caret { display: none; }
  .site-nav.open .dropdown:not(.lang-switch) .dropdown-menu { display: flex; position: static; box-shadow: none; border: 0; padding: .1rem 0 .1rem .75rem; margin: 0; width: 100%; min-width: 0; }
  .site-nav.open .dropdown:not(.lang-switch) .dropdown-menu a { width: 100%; }
  .site-nav.open .dropdown:not(.lang-switch) .dropdown-menu a::before { content: '\203A'; display: inline-block; margin-right: .4rem; color: var(--color-text-muted); }
  .site-nav.open .dropdown.dropdown--right:not(.lang-switch) .dropdown-menu { left: 0; right: auto; }

  /* Sprachauswahl mobil: bleibt interaktiv wie auf Desktop */
  .site-nav.open .dropdown.lang-switch { width: 100%; }
  .site-nav.open .dropdown.lang-switch .dropdown-toggle { width: 100%; justify-content: flex-start; }
  .site-nav.open .dropdown.lang-switch .dropdown-menu { left: 0; right: auto; }
}

@media (max-width: 640px) {
  /* Feinjustierung für schmale Screens */
  .nav-toggle { left: .9rem; }
  .nav-title { right: .9rem; }
}

/* Titel nur mobil anzeigen (Desktop ausblenden) */
.nav-title { display: none !important; }

/* Mobiler Titel-Link Stil */
@media (max-width: 800px) {
  .nav-title { display: block !important; text-decoration: none; color: var(--color-text-muted); pointer-events: auto; }
  .site-nav.open .nav-title { color: var(--color-text); }
}

/* Fokus / Barrierefreiheit */
.nav-menu a:focus, .nav-menu button:focus, .dropdown-menu a:focus, .dropdown-toggle:focus, .nav-toggle:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Auth Layout */
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 2rem 0; }
.auth-card { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; width: 100%; max-width: 420px; margin: 0 1rem; }
.auth-title { text-align: center; margin-bottom: 1rem; }
.auth-footer { margin-top: .75rem; text-align: center; font-size: .9rem; color: var(--color-text-muted); }

/* Auth: Buttons auf volle Breite und zentriert */
.auth-card .btn { width: 100%; justify-content: center; }

/* Form minimal */
.auth-card form { display: grid; gap: .9rem; }
.form-field label { display: block; font-weight: 500; margin-bottom: .35rem; }
.form-control { width: 100%; padding: .55rem .75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(14,165,233,.25); }
.error-msg { color: #f87171; font-size: .9rem; font-weight: 700; text-align: left; margin-top: .35rem; }

/* Buttons minimal */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .55rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font-weight: 600; transition: var(--transition); }
.btn:not(.btn-status-success):not(.btn-status-error):not(.btn-status-warning):not(.btn-status-executing):hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }

/* Disable hover effect specifically for result buttons while keeping visual appearance */
.btn.btn-status-success:hover,
.btn.btn-status-error:hover,
.btn.btn-status-warning:hover,
.btn.btn-status-executing:hover {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: inherit !important;
  cursor: default !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

/* Visual styles for result status buttons (concise) */
.btn-status-success { background: #10b981; border-color: #10b981; color: #fff; }
.btn-status-error { background: #ef4444; border-color: #ef4444; color: #fff; }
.btn-status-warning { background: #f59e0b; border-color: #f59e0b; color: #000; }
.btn-status-executing { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* Make result buttons non-interactive visually (no hand cursor) but they keep their colors */
.btn.btn-status-success, .btn.btn-status-error, .btn.btn-status-warning, .btn.btn-status-executing { cursor: default; }

/* Toggle (active/inactive) buttons - these are interactive and should look like action buttons */
.btn-toggle-active { background: #10b981; border-color: #10b981; color: #fff; }
.btn-toggle-inactive { background: transparent; border-color: #ef4444; color: #ef4444; }

/* Ensure action buttons show pointer like links */
.btn, .btn-secondary, button.btn, a.btn, .btn-toggle-active, .btn-toggle-inactive { cursor: pointer; }

/* Status result buttons: keep normal .btn appearance but disable hover color change and pointer */
.btn.btn-status-success,
.btn.btn-status-error,
.btn.btn-status-warning,
.btn.btn-status-executing {
  cursor: default; /* still appear like buttons but not show hand cursor */
}

/* Disable hover effect specifically for result buttons while keeping visual appearance */
.btn.btn-status-success:hover,
.btn.btn-status-error:hover,
.btn.btn-status-warning:hover,
.btn.btn-status-executing:hover {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: inherit !important;
  cursor: default !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}


/* Tabellenkomponenten: wiederverwendbar */
.table { width: 100%; border-collapse: collapse; background: transparent; }
.table thead th { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font-weight: 700; }
.table tbody td { padding: .6rem .6rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.table.table-striped tbody tr:nth-child(odd) { background: rgba(255,255,255,0.01); }

/* Table responsive wrapper */
.table-responsive { width: 100%; overflow-x: auto; }

/* Zentrales, wiederverwendbares Inhalts-Card (zentriert) */
.content-card { width: 100%; max-width: 960px; margin: 0 auto; padding: 1rem; background: transparent; }
.content-center-viewport { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 160px); }

/* Privacy Policy Sections Spacing */
.content-card section {
  margin-top: 2.5rem;
}

.content-card section:first-of-type {
  margin-top: 1.5rem;
}

.content-card section h2 {
  margin-bottom: 1rem;
}

/* Actions: Buttons nebeneinander, kompakt */
.actions { display: flex; gap: .5rem; align-items: center; }
.actions .btn { padding: .45rem .7rem; font-size: .95rem; }

/* Hilfsklasse: verstecke Elemente auf mobilen Bildschirmen */
.hide-mobile { display: table-cell; }
@media (max-width: 600px) {
  .hide-mobile { display: none !important; }
}

/* Hilfsklasse: verstecke Elemente speziell im mobilen Querformat (z.B. Smartphone Landscape)
   - wirkt nur bei schmalen Viewports (z.B. max-width: 900px) und wenn das Gerät im Landscape ist
*/
.hide-mobile-landscape { display: table-cell; }
@media (max-width: 900px) and (orientation: landscape) {
  .hide-mobile-landscape { display: none !important; }
}

/* Hilfsklasse: verstecke Elemente speziell im mobilen Portrait-Modus (z.B. Smartphone Hochformat)
   - wirkt nur bei schmalen Viewports (z.B. max-width: 900px) und wenn das Gerät im Portrait ist
*/
.hide-portrait { display: table-cell; }
@media (max-width: 1024px) and (orientation: portrait) {
  .hide-portrait { display: none !important; }
}

/* Kleine Anpassungen: Buttons in Tabellenzellen sollen nicht umbrechen */
.table td .btn { white-space: nowrap; }

/* Form spacing */
.form-row { margin-bottom: 0.9rem; }

/* Ende Ergänzungen für Tabellen/Actions */

/* API Documentation Components */
.api-info-box { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; border-left: 4px solid; }
.api-info-box h3 { font-size: 1rem; margin-bottom: .5rem; font-weight: 700; }
.api-info-box p { margin: 0; font-size: .95rem; line-height: 1.6; }
.api-info-box code { background-color: rgba(0, 0, 0, 0.2); padding: .15rem .4rem; border-radius: var(--radius-sm); font-size: .9rem; }
.api-info-box strong { font-weight: 600; }
.api-info-auth { background-color: rgba(245, 158, 11, 0.1); border-color: #f59e0b; }
.api-info-credits { background-color: rgba(107, 114, 128, 0.1); border-color: #6b7280; }
.api-info-ratelimit { background-color: rgba(239, 68, 68, 0.1); border-color: #ef4444; }
.api-endpoint-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 1.25rem; overflow: hidden; background: var(--color-bg-alt); }
.api-endpoint-header { background: var(--color-surface); padding: 1rem; display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.api-http-method { font-weight: 700; padding: .3rem .75rem; border-radius: var(--radius-sm); font-size: .9rem; color: #fff; }
.api-method-get { background-color: #10b981; }
.api-method-post { background-color: #3b82f6; }
.api-method-put { background-color: #f59e0b; color: #000; }
.api-method-delete { background-color: #ef4444; }
.api-method-patch { background-color: #06b6d4; }
.api-endpoint-path { font-family: 'Courier New', monospace; font-size: 1.05rem; flex-grow: 1; color: var(--color-text); text-decoration: none; transition: var(--transition); }
.api-endpoint-path:hover { color: var(--color-primary); text-decoration: underline; }
.api-badge { padding: .3rem .65rem; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; }
.api-badge-auth { background-color: #f59e0b; color: #000; }
.api-badge-credits { background-color: #6b7280; color: #fff; }
.api-badge-required { background-color: #ef4444; color: #fff; }
.api-badge-optional { background-color: #6b7280; color: #fff; }
.api-endpoint-body { padding: 1.25rem; }
.api-endpoint-description { margin-bottom: 1.25rem; color: var(--color-text-muted); }
.api-section { margin-top: 1.25rem; }
.api-section h3 { font-size: 1.1rem; margin-bottom: .65rem; color: var(--color-text); }
.api-params-table { width: 100%; border-collapse: collapse; margin-top: .65rem; }
.api-params-table th { background-color: var(--color-surface); text-align: left; padding: .65rem; border-bottom: 2px solid var(--color-border); font-weight: 600; }
.api-params-table td { padding: .65rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.api-params-table code { background-color: var(--color-surface); padding: .15rem .4rem; border-radius: var(--radius-sm); font-size: .9rem; }
.api-param-detail { margin-top: .35rem; font-size: .9rem; color: var(--color-text-muted); }
.api-example pre { background-color: var(--color-surface); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; border: 1px solid var(--color-border); margin: 0; }
.api-example code { font-family: 'Courier New', monospace; font-size: .9rem; color: var(--color-text); white-space: pre; }
.api-alert { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.api-alert-warning { background-color: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; }
.api-details { border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-top: .65rem; }
.api-details summary { padding: .65rem 1rem; cursor: pointer; user-select: none; font-weight: 600; background: var(--color-surface); border-radius: var(--radius-sm); transition: var(--transition); }
.api-details summary:hover { background: var(--color-border); }
.api-details[open] summary { border-bottom: 1px solid var(--color-border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.api-details-content { padding: 1rem; }

/* Mobile Optimierung für API-Dokumentation */
@media (max-width: 400px) {
  .api-params-table th:nth-child(4),
  .api-params-table td:nth-child(4) {
    display: none;
  }
}

/* Feature-Blöcke für Startseite */
.intro-text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.feature-block:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

/* Alternierendes Layout für gerade/ungerade Features */
.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 300px;
  max-width: 300px;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.feature-content {
  flex: 1;
}

.feature-content h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.feature-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Deaktivierte Features */
.feature-block.disabled {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.feature-block.disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.feature-block.disabled .feature-image img {
  filter: grayscale(100%);
}

.feature-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-block.disabled .feature-badge {
  background-color: rgba(71, 85, 105, 0.3);
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

/* Responsive Design für Feature-Blöcke */
@media (max-width: 768px) {
  .features {
    gap: 2rem;
  }

  .feature-block,
  .feature-block:nth-child(even) {
    flex-direction: column;
    padding: 1.5rem;
  }

  .feature-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .feature-content h2 {
    font-size: 1.5rem;
  }
}

