/* GK Cookie Consent – ULTRA SMALL category cards (Desktop + Mobile)
   Goal: the 4 boxes (Notwendig/Präferenzen/Statistik/Marketing) become very compact.
   Replace your cookie-consent.css with this file.
*/

/* hidden must not block */
.cc-backdrop[hidden],
.cc-modal[hidden]{ display:none !important; }

.cc-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.55);
  z-index:9998;
}

/* keep modal stable/centered */
.cc-modal{
  position:fixed; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(700px, calc(100vw - 28px));
  max-height:82vh;
  overflow:auto;
  background:#fff;
  border-radius:13px;
  z-index:9999;
  box-shadow:0 22px 64px rgba(0,0,0,.33);
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header */
.cc-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:9px 10px; border-bottom:1px solid #eee;
}
.cc-logo{ height:22px; width:auto; display:block; }
.cc-close{
  width:32px; height:32px; border-radius:11px;
  border:1px solid #e6e6e6; background:#fff;
  font-size:18px; cursor:pointer; line-height:1;
}

/* Tabs */
.cc-tabs{
  display:flex; gap:10px; padding:0 10px;
  border-bottom:1px solid #eee; overflow:auto;
}
.cc-tab{
  padding:8px 0;
  border:none; background:transparent; cursor:pointer;
  font-weight:700; color:#333; white-space:nowrap;
  font-size:12px;
}
.cc-tab.is-active{ color:#0b57d0; border-bottom:3px solid #0b57d0; }

/* Body */
.cc-body{ padding:10px; }
.cc-panel h2{ margin:0 0 5px; font-size:16px; }
.cc-panel h3{ margin:0 0 5px; font-size:14px; }
.cc-panel p{ margin:0; color:#444; line-height:1.4; font-size:12px; }
.cc-list{ margin:7px 0 0; padding-left:18px; font-size:12px; color:#444; }

/* ===== ULTRA SMALL CATEGORY CARDS ===== */
.cc-categories{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:5px;                 /* tighter */
  margin-top:8px;
}

.cc-cat{
  border:1px solid #eee;
  border-radius:10px;
  padding:5px 6px;         /* very small padding */
  background:#fafafa;
  min-height:40px;         /* very small height */
  display:flex;
  flex-direction:row;      /* put text + toggle in one line */
  align-items:center;
  justify-content:space-between;
  gap:6px;
}

/* text block */
.cc-cat-title{
  font-weight:800;
  color:#222;
  font-size:11px;
  line-height:1.1;
}
.cc-cat-sub{
  color:#666;
  font-size:10px;
  line-height:1.1;
  margin-top:2px;
}

/* Keep title+sub stacked but compact */
.cc-cat > div:first-child{
  display:flex;
  flex-direction:column;
  min-width:0;
}

/* Switch ultra small */
.cc-switch{ flex:0 0 auto; }
.cc-switch input{ display:none; }

.cc-slider{
  width:30px; height:16px;
  display:inline-block;
  background:#d9d9d9;
  border-radius:999px;
  position:relative;
  transition:.2s;
}
.cc-slider::after{
  content:"";
  position:absolute; top:2px; left:2px;
  width:12px; height:12px;
  border-radius:50%;
  background:#fff;
  transition:.2s;
  box-shadow:0 1px 4px rgba(0,0,0,.16);
}
.cc-switch input:checked + .cc-slider{ background:#1a73e8; }
.cc-switch input:checked + .cc-slider::after{ transform:translateX(14px); }

/* Notwendig lock style (if you use .is-locked) */
.cc-toggle.is-locked{
  width:30px; height:16px;
  border-radius:999px;
  background:#e6e6e6;
  position:relative;
}
.cc-toggle.is-locked::after{
  content:"";
  position:absolute; top:2px; left:2px;
  width:12px; height:12px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.12);
}

/* Actions */
.cc-actions{
  display:flex; gap:8px; margin-top:10px; align-items:center;
}
.cc-btn{
  padding:8px 10px;
  border-radius:11px;
  border:1px solid #e4e4e4;
  background:#fff;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}
.cc-btn-light{ background:#f4f6f8; }
.cc-btn-primary{
  margin-left:auto;
  border:none;
  background:#1a73e8;
  color:#fff;
  padding:8px 12px;
}

/* Links */
.cc-links{
  margin-top:8px;
  font-size:11.5px;
  color:#666;
  display:flex;
  gap:8px;
  align-items:center;
}
.cc-links a{ color:#0b57d0; text-decoration:underline; }

/* ===== MOBILE: still very small ===== */
@media (max-width: 820px){
  .cc-modal{
    width: calc(100vw - 14px);
    max-height: 88vh;
    border-radius:13px;
  }
  .cc-body{ padding:9px; }

  /* 2 columns on mobile, ultra compact */
  .cc-categories{
    grid-template-columns: 1fr 1fr;
    gap:6px;
  }
  .cc-cat{
    min-height:38px;
    padding:5px 6px;
  }
  .cc-cat-title{ font-size:11px; }
  .cc-cat-sub{ font-size:10px; }

  .cc-actions{
    flex-direction:column;
    align-items:stretch;
    gap:7px;
  }
  .cc-btn-primary{ margin-left:0; }
}

/* ===== Align: alle Toggles exakt auf einer Linie ===== */

/* Die Boxen als Flex-Row und vertikal zentrieren */
.cc-cat{
  display:flex;
  align-items:center;         /* <-- wichtig */
}

/* Textblock darf nicht nach unten drücken */
.cc-cat-title,
.cc-cat-sub{
  line-height:1.1;
}

/* Switch-Container IMMER mittig */
.cc-switch,
.cc-toggle{
  margin-top:0 !important;
  align-self:center;
  display:flex;
  align-items:center;
}

/* Locked Toggle (Notwendig) exakt gleiche Größe + mittig */
.cc-toggle.is-locked{
  width:30px;
  height:16px;
  margin-left:auto;
  position:relative;
  background:#34c759;
}
.cc-toggle.is-locked::after{
  top:2px;
  right:2px;
  left:auto;
}


