/* =========================================================
   KPM – Kampagnen Manager
   Zentrale Stylesheet-Datei
   ========================================================= */

/* =========================
   Base / Reset
   ========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  padding: 40px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  background:
    radial-gradient(circle at 20% 20%, #f3f7ff 0%, transparent 40%),
    radial-gradient(circle at 80% 0%, #f7f3ff 0%, transparent 35%),
    radial-gradient(circle at 80% 80%, #f3fff8 0%, transparent 40%),
    #f5f6f8;
  background-attachment: fixed;


  color: #111;
  line-height: 1.4;
}

/* =========================
   Typography
   ========================= */
h1, h2, h3 {
  margin: 0 0 8px 0;
}

h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

p {
  margin: 6px 0;
}

small {
  font-size: 12px;
  color: #666;
}

.muted {
  color: #666;
  font-size: 14px;
}

/* =========================
   Layout Helpers
   ========================= */

.navigation {
  display: flex;
  justify-content: flex-end; /* alles nach rechts */
  align-items: center;
  gap: 10px;
}

.stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* 2 Kacheln nebeneinander (50/50), auf Mobile untereinander */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 */
  gap: 16px;
  align-items: start;             /* gleiche Oberkante */
}

/* Responsive: auf kleineren Screens wieder 1 Spalte */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Optional: Cards sollen die volle Spaltenbreite nutzen */
.grid > .card {
  width: 100%;
}


.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 800px) {
  body {
    padding: 20px;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Cards / Panels
   ========================= */
.card {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 16px;  
  margin: 5px;
  
  background: #ffffff;
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  
}

.card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.card.inaktiv {
    background-color: #F88379;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.btn:hover {
  background: #f3f3f3;
}

.btn.primary {
  background: #111;
  color: #fff;
}

.btn.primary:hover {
  background: #000;
}

.btn.logout {
  background-color: #b00020;
  color: #fff;
  border-color: #b00020;
}

.btn.logout:hover {
  background-color: #8f0019;
}

.btn.oeffnen {
  background-color: #2e7d32;   /* sattes, ruhiges Grün */
  color: #fff;
  border-color: #2e7d32;
}

.btn.oeffnen:hover {
  background-color: #256628;   /* etwas dunkler beim Hover */
  border-color: #256628;
}

.btn.danger {
  background-color: #b00020;
  border-color: #b00020;
  color: #fff;
}
.btn.danger:hover {
  background-color: #8f001a;
  border-color: #8f001a;
}


.callback-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn.small {
  padding: 4px 8px;
  font-size: 13px;
}

.btn.heutefaellig {
    background-color: #ffcc00; /* Ein kräftiges Gelb */
    color: #000;              /* Schwarzer Text für besten Kontrast */
    border: 1px solid #e6b800;
    font-weight: bold;         /* Text hervorheben */
}

.btn.heutefaellig:hover {
    background-color: #e6b800; /* Etwas dunkler beim Drüberfahren */
}

/* =========================
   Forms
   ========================= */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #333;
}

/* =========================
   Checkbox Options (Import)
   ========================= */
.option {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

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

.option input[type="checkbox"] {
  transform: scale(1.2);
}

.option-desc {
  margin-left: 32px;
  margin-top: 6px;
  font-size: 14px;
  color: #555;
}

/* =========================
   Statistics / Pills
   ========================= */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pill {
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  
  background: #f7f8fa;  
  font-weight: 500;
}

.pill strong {
  margin-left: 6px;
}

.pill.success {
  border-color: #0a7a28;
  color: #0a7a28;
}

.pill.warn {
  border-color: #d98200;
  color: #d98200;
}

.pill.danger {
  border-color: #b00020;
  color: #b00020;
}

/* =========================
   Messages / Hints
   ========================= */
.hint {
  margin-bottom: 12px;
  padding: 10px;
  background: #f8f8f8;
  border-left: 4px solid #888;
  font-size: 14px;
}

.error {
  color: #b00020;
  font-weight: 600;
}

.success {
  color: #0a7a28;
  font-weight: 600;
}

/* =========================
   Tables (CSV Preview)
   ========================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 6px 8px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

th {
  text-align: left;
  font-weight: 600;
  background: #fafafa;
}

/* =========================
   Links
   ========================= */
a {
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Utilities
   ========================= */
.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.gap-10 {
  gap: 10px;
}

.gap-12 {
  gap: 12px;
}

.gap-20 {
  gap: 20px;
}

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

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

.justify-end {
  justify-content: flex-end;
}

.wrap {
  flex-wrap: wrap;
}

