/* ===================================================================
   Gastroenterologische Praxis Dortmund – Main Stylesheet
   =================================================================== */

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e3a55;
  --accent: #27ae60;
  --accent-light: #2ecc71;
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #e0e4e8;
  --shadow: 0 2px 15px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --transition: .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ——— Top Bar ——— */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar i { margin-right: 6px; color: var(--accent-light); }

/* ——— Header ——— */
.header {
  background: var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), padding var(--transition);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  flex-shrink: 0;
}
.logo-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}
.logo-subtitle { display: block; font-size: 12px; color: var(--text-light); }

/* ——— Navigation ——— */
.nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ——— Page Hero ——— */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ——— Sections ——— */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
  border-radius: 2px;
}

/* ——— Cards ——— */
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ——— Info Box (Aktuelles) ——— */
.info-box {
  background: var(--bg-alt);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.info-box h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.info-box-warning {
  border-left-color: #e74c3c;
  background: #fdf2f2;
}
.info-box-info {
  border-left-color: var(--primary-light);
}

/* ——— Doctor Profile ——— */
.doctor-profile {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.doctor-img {
  width: 280px;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.doctor-img img { display: block; width: 100%; }
.doctor-img figcaption {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: 500;
  font-size: 15px;
}

/* ——— Timeline (reference style) ——— */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #d0d5dd;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2.5px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
}
.timeline-date {
  display: block;
  font-size: .82rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 4px;
}
.timeline-item h4 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}
.timeline-item p {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 1.6;
}
.timeline-item.timeline-current::before {
  background: var(--primary);
  border-color: var(--primary);
}

/* ——— Compact Qualifications ——— */
.qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.qual-block h3 {
  color: var(--primary);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.qual-block .compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.qual-block .compact-list li {
  padding: 3px 0 3px 20px;
  position: relative;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text);
}
.qual-block .compact-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 5px;
}
@media (max-width: 768px) {
  .qual-grid { grid-template-columns: 1fr; }
}

/* ——— Services ——— */
.service-category {
  margin-bottom: 40px;
}
.service-category h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.service-list {
  list-style: none;
  columns: 1;
}
.service-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: .95rem;
  line-height: 1.6;
}
.service-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 14px;
  top: 10px;
}
.service-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.service-image img { display: block; width: 100%; }

/* ——— Leistungen layout with side images ——— */
.leistungen-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.leistungen-content { flex: 1; min-width: 0; }
.leistungen-images {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.leistungen-images .service-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.leistungen-images .service-image img {
  display: block;
  width: 100%;
  height: auto;
}
.diagnostik-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 992px) {
  .leistungen-row { flex-direction: column; }
  .leistungen-images { flex: none; flex-direction: row; width: 100%; }
  .leistungen-images .service-image { flex: 1; }
  .diagnostik-row { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .leistungen-images { flex-direction: column; }
}

/* ——— Downloads ——— */
.download-list { list-style: none; }
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.download-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.download-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
}
.download-item a {
  font-weight: 500;
  color: var(--text);
  font-size: 1rem;
}
.download-item a:hover { color: var(--primary-light); }

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--primary);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius);
}
.contact-info-card h3 { font-family: var(--font-heading); margin-bottom: 20px; font-size: 1.4rem; }
.contact-info-card p { margin-bottom: 14px; opacity: .95; }
.contact-info-card i { width: 24px; text-align: center; margin-right: 10px; color: var(--accent-light); }

/* ——— Forms ——— */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--transition);
  background: var(--bg-alt);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* ——— reCAPTCHA ——— */
.recaptcha-wrapper { margin-bottom: 8px; }

/* ——— Flash Messages ——— */
.flash-container { max-width: 1200px; margin: 0 auto; padding: 16px 24px 0; }
.flash {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 14px;
  transition: opacity .4s;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ——— Popup ——— */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.popup-overlay.popup-visible {
  opacity: 1;
  visibility: visible;
}
.popup-overlay.popup-hiding {
  opacity: 0;
  visibility: hidden;
}
.popup-box {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  position: relative;
  overflow: hidden;
  transform: translateY(30px) scale(.95);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
}
.popup-overlay.popup-visible .popup-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.popup-overlay.popup-hiding .popup-box {
  transform: translateY(30px) scale(.95);
  opacity: 0;
}
.popup-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  font-size: 24px; cursor: pointer;
  color: #fff;
  z-index: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}
.popup-close:hover { background: rgba(255,255,255,.2); }
.popup-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light, #3a8dde));
  color: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.popup-header i { font-size: 24px; }
.popup-header h3 { margin: 0; font-size: 1.2rem; font-weight: 600; color: #fff; font-family: var(--font-heading); }
.popup-content { padding: 24px 28px; line-height: 1.7; color: var(--text); }

/* ——— Footer ——— */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.9);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--accent-light);
}
.footer p { font-size: 14px; margin-bottom: 8px; opacity: .9; }
.footer i { color: var(--accent-light); margin-right: 8px; width: 16px; text-align: center; }

.hours-table { font-size: 13px; }
.hours-table td { padding: 4px 12px 4px 0; opacity: .9; }
.hours-table td:first-child { font-weight: 500; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.8); font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  opacity: .7;
}

/* ——— Maintenance ——— */
.maintenance-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.maintenance-page i { font-size: 4rem; color: var(--primary-light); margin-bottom: 20px; }
.maintenance-page h1 { font-family: var(--font-heading); margin-bottom: 16px; }

/* ——— Legal Pages ——— */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
}
.legal-content h2 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.4rem;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.legal-content h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.legal-content h4 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 18px 0 6px;
}
.legal-content p { margin-bottom: 12px; }
.legal-content ul {
  margin: 8px 0 16px 20px;
  padding: 0;
}
.legal-content ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--primary-dark);
}
.legal-highlight {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.7;
}
.legal-highlight p:last-child { margin-bottom: 0; }
.legal-source {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

/* ——— Responsive ——— */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .doctor-profile { flex-direction: column; align-items: center; }
  .doctor-img { width: 220px; }
}
@media (max-width: 768px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; }
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 1.8rem; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .card-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */

.admin-body {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
}

.admin-sidebar {
  width: 260px;
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}
.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar-header h2 { font-size: 16px; font-weight: 600; }
.admin-sidebar-header small { opacity: .6; font-size: 12px; }

.admin-nav { flex: 1; padding: 16px 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.admin-nav a i { width: 20px; text-align: center; }

.admin-nav-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.admin-header h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.admin-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.stat-icon.blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-icon.green { background: linear-gradient(135deg, var(--accent), var(--accent-light)); }
.stat-icon.red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stat-number { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-light); }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.admin-table th {
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .5px;
}
.admin-table tr:hover { background: #f8f9fa; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: #d4edda; color: #155724; }
.badge-red { background: #f8d7da; color: #721c24; }
.badge-gray { background: #e9ecef; color: #495057; }
.badge-blue { background: #d1ecf1; color: #0c5460; }

.admin-actions { display: flex; gap: 8px; }

/* Admin login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}
.login-box {
  background: #fff;
  padding: 48px 40px;
}

/* ===================================================================
   Cookie Consent Banner – DSGVO & TDDDG
   =================================================================== */

/* Overlay */
.cc-banner {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .4s ease;
}
.cc-banner.cc-visible { opacity: 1; display: flex; }
.cc-banner.cc-hiding { opacity: 0; }

/* Box */
.cc-box {
  background: #fff;
  max-width: 680px;
  width: 100%;
  margin: 0 16px 24px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  transform: translateY(40px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
}
.cc-banner.cc-visible .cc-box {
  transform: translateY(0);
  opacity: 1;
}
.cc-banner.cc-hiding .cc-box {
  transform: translateY(40px);
  opacity: 0;
}

/* Header */
.cc-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cc-header i { font-size: 22px; }
.cc-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: #fff;
}

/* Body */
.cc-body {
  padding: 20px 28px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  max-height: 55vh;
  overflow-y: auto;
}
.cc-body p { margin: 0 0 12px; }
.cc-body a { color: var(--primary-light); text-decoration: underline; }

/* Buttons row */
.cc-actions {
  padding: 16px 28px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.cc-btn {
  padding: 11px 22px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--font);
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:active { transform: translateY(0); }
.cc-btn-primary {
  background: var(--primary);
  color: #fff;
}
.cc-btn-primary:hover { background: var(--primary-dark); }
.cc-btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.cc-btn-secondary:hover { background: var(--border); }
.cc-btn-link {
  background: none;
  color: var(--primary-light);
  padding: 11px 8px;
  text-decoration: underline;
  font-weight: 500;
}

/* Detail / settings view */
.cc-detail { display: none; }
.cc-category {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cc-category:last-child { border-bottom: none; }
.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cc-category-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.cc-category-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background .3s;
}
.cc-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s;
}
.cc-toggle input:checked + .cc-toggle-slider {
  background: var(--accent);
}
.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(20px);
}
.cc-toggle input:disabled + .cc-toggle-slider {
  opacity: .6;
  cursor: not-allowed;
}
.cc-tag-required {
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}

/* Consent placeholder (e.g. for Google Maps, reCAPTCHA) */
.consent-placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-light);
}
.consent-placeholder i {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
  color: var(--primary-light);
}
.consent-placeholder p {
  margin: 0 0 16px;
  font-size: 14px;
}
.consent-placeholder .cc-btn {
  font-size: 13px;
  padding: 8px 18px;
}

/* Responsive */
@media (max-width: 600px) {
  .cc-box { margin: 0 8px 8px; border-radius: 12px; }
  .cc-header { padding: 16px 20px; }
  .cc-body { padding: 16px 20px; }
  .cc-actions { padding: 12px 20px 16px; flex-direction: column; }
  .cc-btn { width: 100%; text-align: center; }
}
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}
.login-box h1 {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.login-box p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 14px;
}

/* Editor */
.editor-textarea {
  width: 100%;
  min-height: 400px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  line-height: 1.6;
}
.editor-textarea:focus { outline: none; border-color: var(--primary-light); }

.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

.checkbox-group {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 20px; }
  .form-row { flex-direction: column; gap: 0; }
}
