/* ============================================
   CoKom One — Shared Design System
   Primary: #0E5C73 | Accent: #00C4A7 | BG: #F5F9FA
   Font: Inter (self-hosted)
   ============================================ */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --primary:       #0E5C73;
  --primary-light: #1A7A9A;
  --accent:        #00C4A7;
  --accent-dark:   #009B85;
  --accent-light:  #E8F7F5;
  --bg:            #F5F9FA;
  --card:          #FFFFFF;
  --body-text:     #1E293B;
  --muted:         #5B7180;
  --border:        #D6E8EE;
  --border-dark:   #B8D5DE;

  --font-head:  'Inter', sans-serif;
  --font-body:  'Inter', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(14,92,115,0.08), 0 1px 2px rgba(14,92,115,0.04);
  --shadow-md:  0 4px 16px rgba(14,92,115,0.10), 0 2px 6px rgba(14,92,115,0.05);
  --shadow-lg:  0 12px 40px rgba(14,92,115,0.14), 0 4px 12px rgba(14,92,115,0.07);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Focus indicators ---- */
.btn:focus-visible,
.tab-btn:focus-visible,
.nav-links a:focus-visible,
.nav-phone:focus-visible,
.footer-col a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Skip to content ---- */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 8px; }

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 12px; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 0; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ---- Layout ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.text-center { text-align: center; }
.text-white  { color: #fff !important; }

.section-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--primary);
  transition: box-shadow 0.2s;
}
.site-nav.scrolled {
  box-shadow: 0 2px 24px rgba(14,92,115,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 200px;
  list-style: none;
  z-index: 10;
}
.nav-dropdown li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.85) !important;
  background: transparent !important;
  font-size: 0.875rem;
}
.nav-dropdown li a:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown { display: block; }
.dropdown-chevron { vertical-align: middle; margin-left: 2px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-phone {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-phone:hover { color: #fff; }

.ti-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.ti-status-badge:hover {
  border-color: #4ade80;
  color: #fff;
}
.ti-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.25);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .ti-status-badge { display: none; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--primary);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-sub {
  padding-left: 16px !important;
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.6) !important;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---- CTA Band ---- */
.cta-band {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}
.cta-band .section-label { color: rgba(255,255,255,0.45); }
.cta-band h2 {
  color: #fff;
  margin-bottom: 16px;
}
.cta-band p {
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.cta-band-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Blog sections (shared) ---- */
.blog-teaser-section {
  background: var(--primary);
  padding: 80px 0;
}
.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.blog-card-img {
  width: 100%; height: 180px;
  object-fit: cover;
  display: block;
}
.blog-card-img-placeholder {
  width: 100%; height: 180px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
}
.blog-card-body { padding: 20px 20px 20px; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-badge {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
}
.blog-card-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.blog-card-title {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer { margin-top: 12px; }
.blog-card-readmore {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.blog-card-readmore:hover { color: #fff; }

/* ---- Footer ---- */
.site-footer {
  background: #0a2a36;
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }

.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo-mark {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ---- Newsletter Popup ---- */
#nl-popup {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 24px;
  z-index: 200;
  border: 1px solid var(--border);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
#nl-popup.nl-popup-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nl-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.nl-close:hover { color: var(--body-text); }
.nl-icon { font-size: 28px; margin-bottom: 10px; }
.nl-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.nl-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-input {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s;
  color: var(--body-text);
}
.nl-input:focus { border-color: var(--accent); }
.nl-checkbox-label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}
.nl-checkbox-label a { color: var(--primary-light); text-decoration: underline; }
.nl-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s;
}
.nl-btn:hover { background: var(--accent-dark); }
.nl-success { text-align: center; color: var(--body-text); font-size: 0.9rem; }

/* ---- Chatbot Widget ---- */
#cokom-chat-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,196,167,0.4);
  z-index: 300;
  transition: transform 0.2s, box-shadow 0.2s;
}
#cokom-chat-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 28px rgba(0,196,167,0.5);
}
#cokom-chat-btn.open { background: var(--muted); box-shadow: none; }

#cokom-chat-btn.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: chat-pulse 1.8s ease-out infinite;
}
@keyframes chat-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

#cokom-chat-container {
  position: fixed;
  bottom: 92px; right: 24px;
  width: 380px;
  height: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 299;
  display: none;
  border: 1px solid var(--border);
}
#cokom-chat-container.open { display: block; }
#cokom-chat-container iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* ---- Utility ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(0,196,167,0.25);
  border-radius: 100px;
  padding: 4px 14px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--primary);
  padding: 120px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,196,167,0.12) 0%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  max-width: 540px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .blog-teaser-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links, .nav-phone { display: none; }
  .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .section-header { flex-direction: column; align-items: flex-start; }
  #cokom-chat-container { width: calc(100vw - 24px); right: 12px; }
  .cta-band-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .blog-teaser-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #nl-popup { right: 12px; left: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  #cokom-chat-btn.pulse::after { animation: none; }
  .partners-logos-track { animation: none; }
  .hero-badge-dot { animation: none; }
}

/* ===== LOGO BILD ===== */
/* Nav: heller Hintergrund — Farblogo ohne Filter */
.nav-logo-img  { height: 36px; width: auto; object-fit: contain; display: block; }
/* Footer: dunkler Hintergrund — Logo vollständig weiß machen */
.footer-logo-img { height: 36px; width: auto; object-fit: contain; display: block; margin-bottom: 8px; filter: brightness(0) invert(1); opacity: 0.85; }

/* ===== PARTNER SCROLLER ===== */
.partners-strip { padding: 28px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.partners-label { font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 18px; }
.partners-logos { display: flex; align-items: center; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); }
.partners-logos-inner { display: flex; }
.partners-logos-track { display: flex; align-items: center; gap: 56px; animation: partners-scroll 28s linear infinite; will-change: transform; flex-shrink: 0; }
.partners-logos:hover .partners-logos-track { animation-play-state: paused; }
@keyframes partners-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-link { display: inline-flex; align-items: center; text-decoration: none; }
.partner-img { height: 48px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(100%) opacity(0.55); transition: filter .25s ease; }
.partner-link:hover .partner-img { filter: grayscale(0%) opacity(1); }
