/**
 * KiloKegeln 2026 - Helles, freundliches Design-System
 * CI: KiloKegeln Grün (#86B300), Weiß (#ffffff), Sanftes Schiefergrau (#f8fafc) & Akzent-Pink (#e6005c)
 */

:root {
  --kk-green: #86B300;
  --kk-green-dark: #6e9400;
  --kk-green-light: #f4fae6;
  --kk-green-glow: rgba(134, 179, 0, 0.25);
  
  --kk-pink: #e6005c;
  --kk-pink-light: #fff0f5;
  
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-focus: #86B300;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.09);
  --shadow-green: 0 8px 20px rgba(134, 179, 0, 0.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-body);
  color: var(--text-body);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Accent Bar */
.top-accent-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--kk-green) 0%, #a2d600 100%);
  width: 100%;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header & Navigation */
header.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--kk-green-dark);
  background-color: var(--kk-green-light);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kk-green);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(134,179,0,0.3);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--kk-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(134,179,0,0.4);
}

.nav-btn-outline {
  background: transparent;
  color: var(--kk-green-dark) !important;
  border: 1.5px solid var(--kk-green);
  box-shadow: none;
}

.nav-btn-outline:hover {
  background: var(--kk-green-light);
}

/* Layout Cards */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  line-height: 1.25;
}

h1 { font-size: 2.2rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--kk-green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(134,179,0,0.3);
}

.btn-primary:hover {
  background: var(--kk-green-dark);
  box-shadow: 0 6px 16px rgba(134,179,0,0.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--kk-pink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(230,0,92,0.3);
}

.btn-accent:hover {
  background: #c7004f;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-body);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* Form Styling - Durchgängig hell, sauber und modern */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text-dark);
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-control {
  height: auto;
  min-height: 100px;
  padding: 12px 16px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--kk-green-glow);
}

/* Quick-Checker Ampel-Farben */
.badge-allowed {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.badge-taboo {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.badge-sugar {
  background-color: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

.badge-moderation {
  background-color: #e0f2f1;
  color: #00695c;
  border: 1px solid #80cbc4;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border-left: 5px solid var(--kk-green);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

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

/* Footer */
footer.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 30px 0;
  margin-top: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--kk-green-dark);
}

/* Responsive Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

@media (max-width: 860px) {
  .mobile-menu-btn { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .main-nav.active { display: flex; }
  .main-nav a { width: 100%; text-align: left; }
}

/* ==========================================================================
   Modernes Drag & Drop Upload-Widget mit Vorschau & Ladebalken
   ========================================================================== */

.kk-dropzone-wrapper {
  margin-bottom: 20px;
}

.kk-dropzone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: #f8fafc;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
}

.kk-dropzone:hover {
  border-color: var(--kk-green);
  background: #f0fdf4;
}

.kk-dropzone.is-dragover {
  border-color: var(--kk-green-dark);
  background: #ecfdf5;
  box-shadow: 0 0 0 4px rgba(134, 179, 0, 0.18);
  transform: scale(1.01);
}

.kk-dropzone-icon {
  font-size: 2.5rem;
  color: var(--kk-green);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.kk-dropzone:hover .kk-dropzone-icon {
  transform: translateY(-3px);
  color: var(--kk-green-dark);
}

.kk-dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.kk-dropzone-browse {
  color: var(--kk-green-dark);
  text-decoration: underline;
  font-weight: 600;
}

.kk-dropzone-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Vorschau-Karte */
.kk-dropzone-preview {
  margin-top: 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  animation: fadeInDropzone 0.25s ease;
}

@keyframes fadeInDropzone {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.kk-preview-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kk-preview-media {
  flex-shrink: 0;
}

.kk-preview-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #f1f5f9;
  display: block;
}

.kk-preview-info {
  flex: 1;
  min-width: 0;
}

.kk-preview-filename {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.kk-preview-filesize {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kk-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.kk-status-badge.is-ready {
  background: #f1f5f9;
  color: var(--text-body);
}

.kk-status-badge.is-uploading {
  background: #e0f2fe;
  color: #0369a1;
}

.kk-status-badge.is-success {
  background: #dcfce7;
  color: #15803d;
}

.kk-status-badge.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

.kk-preview-remove-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.kk-preview-remove-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Fortschrittsbalken & Ladebutton */
.kk-progress-container {
  margin-top: 14px;
}

.kk-progress-bar-wrap {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.kk-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--kk-green) 0%, var(--kk-green-dark) 100%);
  border-radius: 6px;
  transition: width 0.15s ease-out;
}

.kk-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.82rem;
}

.kk-progress-pct {
  font-weight: 700;
  color: var(--kk-green-dark);
}

.kk-progress-status {
  color: var(--text-muted);
}

.kk-upload-action {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.kk-btn-upload {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.kk-btn-upload:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

