/*
Theme Name: WebSin
Theme URI: https://websin.de
Description: Custom lightweight classic WordPress theme for WebSin – dark, professional, tech-oriented.
Version: 1.0
Requires at least: 6.4
Tested up to: 6.7
Author: WebSin
Author URI: https://websin.de
Text Domain: websin
*/

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  line-height: 1.3;
  font-weight: 700;
}

/* ==========================================================================
   2. Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   3. Site Header
   ========================================================================== */

.site-header {
  background: linear-gradient(135deg, #4b839e 0%, #3f7087 50%, #4a4a4a 100%);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* -- Logo -- */

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-logo .logo-icon {
  width: 44px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-logo .logo-icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 2px;
  position: relative;
  top: -2px;
}

.site-logo .logo-icon::after {
  content: "";
  display: block;
  width: 8px;
  height: 2px;
  background: #fff;
  position: absolute;
  bottom: 6px;
}

.site-logo .logo-text-accent {
  color: #5fb8e6;
}

/* -- Navigation -- */

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

.main-nav a {
  color: #b9ddef;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 6px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.current {
  color: #45b1e7;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #5fb8e6;
  transition: width 0.2s ease;
}

.main-nav.is-open {
  display: block;
}
.main-nav a:hover::after {
  width: 100%;
}

/* -- Mobile Menu Toggle -- */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.2s;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, #1a3a4a 0%, #162d3a 50%, #111 100%);
  padding: 80px 0 90px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-style: italic;
}

.hero p {
  color: #b0c4cc;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* -- Hero for sub-pages (no h1, uses h2) -- */

.hero-sub {
  background: linear-gradient(135deg, #1a3a4a 0%, #162d3a 50%, #111 100%);
  padding: 70px 0 80px;
  text-align: center;
}

.hero-sub h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-sub p {
  color: #b0c4cc;
  font-size: 1rem;
  max-width: 950px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #bbb;
  background: transparent;
  color: #555;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  background: #e0e0e0;
  border-color: #999;
  color: #222;
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ccd6dd;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-primary {
  background: #1fa7ff;
  border-color: #1fa7ff;
  color: #fff;
}

.btn-primary:hover {
  background: #0d8fe6;
  border-color: #0d8fe6;
}

/* ==========================================================================
   6. Sections – General
   ========================================================================== */

.section {
  padding: 70px 0;
}

.section-light {
  background: #fff;
}

.section-gray {
  background: #f0f0f0;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 48px;
  font-weight: 700;
}

/* ==========================================================================
   7. Services Cards Grid
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 40px 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

/* ===============================
   Service Card Expand / Collapse
   =============================== */

.service-card-content {
  max-height: 140px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.service-card:not(.is-expanded) .service-card-content {
  overflow-y: auto;
}

.service-card.is-expanded .service-card-content {
  max-height: 2000px;
  overflow: visible;
}

.service-card-toggle {
  margin-top: 12px;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: #1a3a4a;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
}
.service-card-icon svg {
  width: 42px;
  height: 42px;
  stroke: #0f2e35;
  margin-bottom: 15px;
}

/* -- CSS-only icons for service cards -- */

.icon-monitor {
  width: 48px;
  height: 36px;
  border: 3px solid #1a3a4a;
  border-radius: 4px;
  position: relative;
  display: inline-block;
}

.icon-monitor::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #1a3a4a;
  border-radius: 1px;
}

.icon-handshake {
  width: 44px;
  height: 44px;
  border: 3px solid #1a3a4a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-handshake::before {
  content: "🤝";
  font-size: 1.4rem;
  font-style: normal;
}

.icon-gear {
  width: 44px;
  height: 44px;
  border: 3px solid #1a3a4a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-gear::before {
  content: "⚙";
  font-size: 1.6rem;
}

.icon-building {
  width: 44px;
  height: 44px;
  border: 3px solid #1a3a4a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-building::before {
  content: "🏢";
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 14px;
  font-weight: 700;
}

.service-card p {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.service-card .btn {
  align-self: stretch;
  text-align: center;
}

/* ==========================================================================
   8. WSE Info Section
   ========================================================================== */

.wse-info {
  background: #e8eef0;
  padding: 70px 0;
  text-align: center;
}

.wse-info h2 {
  font-size: 1.7rem;
  color: #222;
  margin-bottom: 20px;
}

.wse-info p {
  color: #444;
  font-size: 0.97rem;
  max-width: 1240px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ==========================================================================
   9. CTA Section
   ========================================================================== */

.cta-section {
  background: #f5f5f5;
  padding: 70px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 14px;
}

.cta-section p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   10. Pricing / Package Tiers
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 32px 28px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 20px;
  font-weight: 700;
}

.pricing-card ul {
  list-style: none;
}

.pricing-card li {
  padding: 6px 0;
  color: #444;
  font-size: 0.93rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.pricing-card li::before {
  content: "✓";
  color: #22a867;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   11. Contact Page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 20px;
}

.contact-info p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.contact-info strong {
  color: #222;
}

/* -- Contact Form -- */

.contact-form h2 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 20px;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fafafa;
  color: #222;
  transition: border-color 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1fa7ff;
  background: #fff;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  display: inline-block;
  padding: 12px 36px;
  background: #1a3a4a;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button[type="submit"]:hover {
  background: #244e62;
}

/* ==========================================================================
   12. Generic Page Content
   ========================================================================== */

.page-content {
  padding: 60px 0;
  background: #fff;
}

.page-content h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 24px;
}

.page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  margin: 0 0 16px 24px;
  color: #444;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ==========================================================================
   12a. Pricing Card CTA
   ========================================================================== */

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card ul {
  flex: 1;
}

.pricing-cta {
  margin-top: 24px;
  align-self: stretch;
  text-align: center;
}

/* ==========================================================================
   12b. ERP Showcase Section
   ========================================================================== */

.erp-showcase {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: flex-start;
}

.erp-showcase-image {
  border-radius: 12px;
  overflow: hidden;
}
.erp-showcase-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.erp-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a3a4a 0%, #162d3a 60%, #0e1f28 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.erp-image-placeholder .erp-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.erp-image-placeholder .erp-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.erp-showcase-content {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 40px 36px;
}

.erp-showcase-content h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 20px;
  font-weight: 700;
}

.erp-showcase-content p {
  color: #444;
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 16px;
  text-align: justify;
}

.erp-showcase-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   12c. Modules Accordion
   ========================================================================== */

.modules-section {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 40px 36px;
}

.modules-title {
  text-align: center;
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 32px;
  font-weight: 700;
}

.module-item {
  border-bottom: 1px solid #eee;
}

.module-item:last-child {
  border-bottom: none;
}

.module-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  color: #222;
  font-weight: 600;
  transition: color 0.2s ease;
}

.module-header:hover {
  color: #1a3a4a;
}

.module-icon {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0f4f5;
  border-radius: 8px;
}

.module-name {
  flex: 1;
  text-align: left;
}

.module-chevron {
  font-size: 0.85rem;
  color: #999;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.module-item.is-open .module-chevron {
  transform: rotate(90deg);
}

.module-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0 4px 0 56px;
}

.module-item.is-open .module-body {
  max-height: 300px;
  padding: 0 4px 16px 56px;
}

.module-body p {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ==========================================================================
   12d. Contact Page Redesign
   ========================================================================== */

.contact-details {
  max-width: 780px;
  margin: 0 auto 48px;
}

.contact-details h2 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 12px;
  font-weight: 700;
}

.contact-details p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.contact-details a {
  color: #1a3a4a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-details a:hover {
  color: #5fb8e6;
}

.contact-card {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 40px 36px;
}

.contact-form-minimal input,
.contact-form-minimal textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #eee;
  color: #222;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.contact-form-minimal input:focus,
.contact-form-minimal textarea:focus {
  outline: none;
  border-color: #1fa7ff;
  background: #fff;
}

.contact-form-minimal input::placeholder,
.contact-form-minimal textarea::placeholder {
  color: #777;
}

.contact-form-minimal textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form-minimal button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  background: #ddd;
  color: #666;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.contact-form-minimal button[type="submit"]:hover {
  background: #ccc;
  color: #333;
}

/* ==========================================================================
   13. Site Footer
   ========================================================================== */

.site-footer {
  background: linear-gradient(135deg, #1a3a4a 0%, #162d3a 50%, #111 100%);
  padding: 48px 0;
  color: #ccc;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-company h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-company p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #aaa;
}

.footer-company a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-company a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #aaa;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

/* -- Tablet & below -- */
@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 16px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub h1 {
    font-size: 1.7rem;
  }

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

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

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

  .erp-showcase {
    grid-template-columns: 1fr;
  }

  .erp-showcase-image {
    max-width: 380px;
    margin: 0 auto;
  }

  .modules-section {
    padding: 28px 20px;
  }

  .module-body,
  .module-item.is-open .module-body {
    padding-left: 20px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    align-items: flex-start;
  }
}

/* -- Small mobile -- */
@media (max-width: 480px) {
  .hero {
    padding: 50px 0 60px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 28px 20px 20px;
  }

  .erp-showcase-content {
    padding: 24px 18px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   15. Back Button
   ========================================================================== */

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ccd6dd;
  font-size: 1.4rem;
  border-radius: 50%;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 4px;
}

.back-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   16. Wiki Info Section
   ========================================================================== */

.wiki-info-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.wiki-info-section p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.wiki-link {
  color: #1a6fb5;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.wiki-link:hover {
  color: #5fb8e6;
}

/* ==========================================================================
   17. Under Construction Page
   ========================================================================== */

.underconstruction-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0;
}

.uc-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  opacity: 0.6;
}

.underconstruction-content h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 16px;
  font-weight: 700;
}

.underconstruction-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ==========================================================================
   18. Impressum Page
   ========================================================================== */

.impressum-content {
  max-width: 960px;
  margin: 0 auto;
}

.impressum-content h2 {
  font-size: 1.4rem;
  color: #222;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 700;
}

.impressum-content h2:first-child {
  margin-top: 0;
}

.impressum-content h3 {
  font-size: 1.1rem;
  color: #333;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.impressum-content p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.impressum-content a {
  color: #1a6fb5;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.impressum-content a:hover {
  color: #5fb8e6;
}

/* ==========================================================================
   19. Cookie Consent Modal
   ========================================================================== */

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}

.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-title {
  font-size: 1.3rem;
  color: #222;
  font-weight: 700;
  margin-bottom: 12px;
}

.cookie-modal-desc {
  color: #555;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cookie-modal-desc a {
  color: #1a6fb5;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.cookie-modal-desc a:hover {
  color: #5fb8e6;
}

/* ── Category rows ───────────────────────── */

.cookie-categories {
  border-top: 1px solid #e5e5e5;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
  user-select: none;
}

.cookie-category-name {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

/* Hide native checkbox */
.cookie-category input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom toggle track */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

/* Toggle knob */
.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Checked state */
.cookie-category input:checked + .cookie-toggle {
  background: #1a3a4a;
}

.cookie-category input:checked + .cookie-toggle::after {
  transform: translateX(20px);
}

/* Essential (locked) — always green-ish */
.cookie-toggle-locked {
  background: #1a3a4a;
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle-locked::after {
  transform: translateX(20px);
}

/* ── Action buttons ──────────────────────── */

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn-outline {
  background: transparent;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-outline:hover {
  border-color: #999;
  color: #111;
}

/* ── Mobile responsive ───────────────────── */

@media (max-width: 768px) {
  .cookie-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .cookie-modal {
    border-radius: 14px 14px 0 0;
    max-height: 85vh;
    padding: 28px 20px 24px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn,
  .cookie-actions .btn-outline {
    width: 100%;
    text-align: center;
  }
}
