:root {
  --primary: #4aa3ff;
  --secondary: #4caf50;
  --bg: #f4f9ff;
  --text: #1f2a36;
  --card: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: #1f2a36;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

header {
  background: linear-gradient(135deg, var(--primary), #6ec6ff);
  color: white;
  padding: 30px 20px 40px;
}

.header-inner {
  max-width: 900px;
  margin: auto;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.header-left img {
  width: 70px;
  border: 3px solid white;
  border-radius: 18px;
}

.header-left h1,
.site-title {
  margin: 5px 0;
  font-size: 1.8em;
  color: #1f2a36;
  font-weight: 700;
}

.header-left p {
  margin: 0;
  opacity: 0.95;
  color: #1f2a36;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  border: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1f2a36;
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
}

.header-actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.header-menu {
  min-width: 0;
  width: 32ch;
  max-width: min(100%, calc(100vw - 40px));
  position: relative;
}

.header-actions .btn-primary {
  width: 32ch;
  max-width: min(100%, calc(100vw - 40px));
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.menu-dropdown {
  position: relative;
  display: block;
  width: 100%;
}

.menu-summary {
  list-style: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

.menu-summary::-webkit-details-marker {
  display: none;
}

.menu-summary::after {
  content: "▾";
  margin-left: 10px;
  opacity: 0.9;
}

.menu-dropdown[open] .menu-summary {
  background: rgba(255, 255, 255, 0.3);
}

.menu-list {
  margin: 8px 0 0;
  padding: 8px;
  list-style: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: max(100%, 36ch);
  width: max-content;
  max-width: min(calc(100vw - 24px), 52ch);
  overflow-x: auto;
  background: #e9f4ff;
  border: 1px solid #b6d6f5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 38, 61, 0.18);
  z-index: 50;
}

.menu-list a {
  display: block;
  text-decoration: none;
  color: #1f2a36;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 8px;
  white-space: nowrap;
  text-align: center;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  background: #d4e9ff;
}

.menu-list a.current {
  background: #4aa3ff;
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-secondary {
  background: var(--secondary);
}

.btn-promo {
  background: linear-gradient(135deg, #fff8e1, #ffe082);
  border: 2px solid #ffd54f;
  color: #1f2a36;
  font-weight: bold;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.promo-banner {
  background: linear-gradient(135deg, #fff8e1, #ffe082);
  border: 2px solid #ffd54f;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.promo-banner a {
  text-decoration: none;
  color: #1f2a36;
  font-weight: bold;
  font-size: 1.2em;
}

.card h1,
.card h2 {
  font-size: 1.5em;
  margin-top: 0;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h1,
.card h2,
.promo-banner h1,
.promo-banner h2,
.highlight h1,
.highlight h2 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
}

.card h1,
.card h2 {
  font-size: 1.5em;
  margin-top: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.feature {
  background: #f9fcff;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e3eefc;
}

.buttons {
  text-align: center;
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.highlight {
  background: #e8f5e9;
  border-left: 5px solid var(--secondary);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

.highlight-spacing {
  margin-top: 20px;
}

.highlight-centered {
  text-align: center;
  padding: 30px;
}

.prompt-box {
  font-family: 'Courier New', Courier, monospace;
  background: #2d3436;
  color: #fab1a0;
  padding: 20px;
  border-radius: 10px;
  line-height: 1.5;
  margin: 15px 0;
  border-left: 5px solid var(--primary);
  white-space: pre-wrap;
  font-size: 0.95em;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden; /* Sicherstellen, dass nichts rausragt */
}

.prompt-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.code-block {
  font-family: monospace;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  line-height: 1.6;
  margin: 10px 0;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.instruction-img {
  width: 100%;
  max-width: 100%;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.highlight-warning {
  background-color: #fff9e6;
  border-left: 5px solid #f39c12;
}

.highlight-danger {
  background-color: #fdf2f2;
  border-left: 5px solid #e74c3c;
}

.highlight-danger h1,
.highlight-danger h2,
.highlight-danger h3 {
  color: #c0392b;
  margin-top: 0;
}

.tip-box {
  background: #eef9f1;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px dashed #27ae60;
}

.tip-box p {
  margin: 0;
  font-size: 0.9em;
  color: #27ae60;
}

.card-help {
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
}

.card-help p {
  margin: 0;
}

.card-help a {
  color: var(--primary);
  font-weight: bold;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mt-15 {
  margin-top: 15px;
}

.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.m-0 { margin: 0; }

.btn-small {
  padding: 5px 12px;
  font-size: 14px;
}

.ml-10 { margin-left: 10px; }

.hidden {
  display: none !important;
}

.variant-label {
  display: block;
  margin-bottom: 5px;
  color: #666;
  font-size: 0.85em;
}

.prompt-intro {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 10px;
}

.highlight-info {
  background-color: #f0f7ff;
  border-left: 5px solid #4aa3ff;
  padding: 15px;
  margin-top: 15px;
  font-size: 0.95em;
  line-height: 1.5;
}

.modal-card {
  max-width: 600px;
  margin: 50px auto;
  max-height: 80vh;
  overflow-y: auto;
}

.code-block-dark {
  text-align: left;
  background: #2d3436;
  color: #fab1a0;
  font-size: 0.8em;
  margin: 0;
}

.note-box {
  font-size: 0.85em;
  background: #f8f9fa;
  padding: 10px;
  border-left: 4px solid #007bff;
  color: #333;
}

.btn-full {
  width: 100%;
}

.form-label-small {
  font-size: 0.9em;
  color: #666;
}

.btn-gray {
  background-color: #6c757d;
}

.flex-2 { flex: 2; }
.flex-1 { flex: 1; }
.p-15 { padding: 15px; }
.fs-1-1 { font-size: 1.1em; }
.highlight-primary {
  background-color: #f0f7ff;
  border: 2px solid var(--primary);
  padding: 20px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 20px rgba(74, 163, 255, 0.15);
}

.badge-new {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff9e6;
  border: 1px solid #ffe082;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 1.0em;
  font-weight: bold;
  color: #1f2a36;
  box-shadow: 0 2px 10px rgba(255, 204, 0, 0.3);
  z-index: 5;
  gap: 6px;
}

.badge-new .icon {
  font-size: 2.2em;
  line-height: 1;
}

.justify-center { justify-content: center; }
.align-center { align-items: center; }

.w-300 { width: 300px; }
.max-w-300 { max-width: 300px; }

.h-250 { height: 250px; }
.h-200 { height: 200px; }
.font-mono { font-family: monospace; }
.font-sans { font-family: sans-serif; }

.fs-14 { font-size: 14px; }

.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.d-flex { display: flex; }
.d-block { display: block; }
.italic { font-style: italic; }
.bold { font-weight: bold; }
.color-orange { color: #d35400; }
.color-gray { color: #555; }
.color-dark-gray { color: #444; }
.color-primary { color: var(--primary); }

.lh-16 { line-height: 1.6; }
.underline { text-decoration: underline; }

.opacity-08 { opacity: 0.8; }
.border-top-light { border-top: 1px solid rgba(0,0,0,0.1); }

.highlight-promo {
  border: 2px solid var(--primary);
  background-color: #f8fbff;
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  padding: 10px 20px 30px;
}

main > *:last-child,
.container > *:last-child {
  margin-bottom: 0 !important;
}

ul {
  padding-left: 20px;
}

@media (max-width: 920px) {
  .header-actions {
    margin-top: 10px;
    width: auto;
    align-items: center;
  }

  .header-menu {
    width: min(100%, 32ch);
  }

  .header-actions .btn-primary {
    width: min(100%, 32ch);
  }

  .menu-list {
    max-width: calc(100vw - 24px);
  }

  .badge-new {
    position: static;
    margin: 0 auto 15px auto;
    display: flex;
    width: max-content;
  }
}

/* Screenshot Gallery */
.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
}

.screenshot-grid .section {
  margin-bottom: 40px;
  text-align: center;
  flex: 1 1 400px;
  max-width: 100%;
}

.viewer {
  background: white;
  padding: 10px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

.viewer img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  display: block;
}

.controls {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-nav {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-nav:hover {
  background: #555;
}

/* Modal / Lightbox Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

.modal-img {
  max-width: 100%;
  max-height: 98vh;
  object-fit: contain;
  cursor: zoom-out;
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  font-size: 30px;
  width: 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
  user-select: none;
  z-index: 2100;
}

.modal-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.modal-btn:first-of-type {
  left: 10px;
}

.modal-btn:last-of-type {
  right: 10px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  background: rgba(0,0,0,0.5);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.viewer img {
  cursor: zoom-in;
}

/* Prompt Generator Styles */
.gen-container {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1f2a36;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.prompt-output {
  background: #f4f7f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #cfe0eb;
  margin-top: 20px;
  position: relative;
  display: none;
}

.copy-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-group input {
  width: auto;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  min-height: 40px;
}

.tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag .remove {
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 600px) {
  .form-row .form-group {
    flex: 1 1 100%;
  }
}
