/* ============================================================
   CMSentinel – Custom CSS für Joomla Cassiopeia Extended
   Ablageort: /media/templates/site/cassiopeia_extended/css/user.css
   ============================================================ */


/* ============================================================
   1. LOKALE FONTS (DSGVO-konform, kein Google-Server-Kontakt)
   Plus Jakarta Sans = Überschriften / Headlines
   Albert Sans      = Fließtext / Body
   ============================================================ */

/* --- Plus Jakarta Sans --- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}

/* --- Albert Sans --- */
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/albert-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/albert-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/albert-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/albert-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/albert-sans-latin-800-normal.woff2') format('woff2');
}


/* ============================================================
   2. CSS VARIABLEN (Design-Tokens)
   ============================================================ */
:root {
  --primary: #0D9488;
  --primary-light: #14B8A6;
  --primary-dark: #0F766E;
  --primary-pale: #F0FDFA;
  --accent: #E07B2E;
  --accent-hover: #C96A1F;
  --dark: #0C1B2A;
  --text: #37475A;
  --text-light: #7B8CA0;
  --bg: #F9FBFC;
  --white: #FFFFFF;
  --border: #E1E8EE;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(13, 148, 136, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 148, 136, 0.09);
  --shadow-lg: 0 16px 48px rgba(13, 148, 136, 0.13);
  --gradient: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #2DD4BF 100%);
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Albert Sans', system-ui, sans-serif;
}


/* ============================================================
   3. RESET & BASIS-STILE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

.site-grid {
  display: block !important;
}

.container,
.container-xl,
.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}


/* ============================================================
   4. NAVIGATIONSLEISTE
   Cassiopeia generiert keine .nav-link Klasse –
   daher Selektoren auf .mod-menu.nav .nav-item a angepasst.
   ============================================================ */

/* Header-Hintergrund */
.header {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Header-Layout: Logo und Menü in einer Zeile, volle Breite */
header.container-header {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 12px 36px 12px 36px !important;
}

/* Menü und Sprachumschalter rechts ausrichten */
header.container-header .container-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  padding-bottom: 0 !important;
}

/* Menü darf nicht volle Breite einnehmen, nach rechts schieben */
header.container-header .mod-menu.nav {
  flex: 0 1 auto !important;
  margin-left: auto !important;
}

/* Alle Navigations-Links */
.mod-menu.nav .nav-item a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark) !important;
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 12px;
}

.mod-menu.nav .nav-item a:hover {
  color: var(--primary) !important;
  text-decoration: none;
}

/* Aktiver Menüpunkt */
.mod-menu.nav .nav-item.active a,
.mod-menu.nav .nav-item.current a {
  color: var(--primary) !important;
}

/* Registrieren-Button im Menü */
.mod-menu.nav .nav-item a.btn-nav {
  background: var(--gradient);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
  margin-left: 8px;
}

.mod-menu.nav .nav-item a.btn-nav:hover {
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.45);
  transform: translateY(-2px);
  color: var(--white) !important;
}


/* ============================================================
   5. BUTTONS (global, wiederverwendbar)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.45);
  transform: translateY(-2px);
  color: var(--white) !important;
  text-decoration: none;
}

.btn-ghost {
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary) !important;
}
.btn-ghost:hover {
  background: rgba(13, 148, 136, 0.14);
  color: var(--primary) !important;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(224, 123, 46, 0.3);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  color: var(--white) !important;
  text-decoration: none;
}


/* ============================================================
   6. HERO-SEKTION
   ============================================================ */
.cms-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cms-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 20px;
  font-weight: 800;
}

.cms-hero h1 .highlight,
.cta-card h2 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #22C55E; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-left: 8px;
}

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--bg);
  font-size: 0.875rem;
}

.mockup-ext {
  font-weight: 600;
  color: var(--dark);
}

.mockup-ver {
  color: var(--text-light);
  font-size: 0.8rem;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}
.status-ok   { background: #ECFDF5; color: #059669; }
.status-warn { background: #FFF7ED; color: #D97706; }
.status-crit { background: #FEF2F2; color: #DC2626; }

.float-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(224, 123, 46, 0.3);
  animation: float-subtle 3s ease-in-out infinite;
}

@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}


/* ============================================================
   7. FEATURES-SEKTION
   ============================================================ */
.cms-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 36px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s;
}
.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-emoji {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
   8. WORKFLOW-SEKTION (dunkler Hintergrund)
   ============================================================ */
.cms-workflow {
  background: var(--dark);
  padding: 80px 36px;
  margin-top: 20px;
}

.cms-workflow .workflow-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cms-workflow .section-tag {
  background: rgba(13, 148, 136, 0.15);
  color: var(--primary-light);
}
.cms-workflow .section-title { color: var(--white); }
.cms-workflow .section-sub   { color: rgba(255, 255, 255, 0.5); }

.step-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(13, 148, 136, 0.4);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.step-card h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}


/* ============================================================
   9. DATENSCHUTZ-SEKTION
   ============================================================ */
.cms-privacy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 36px 80px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 16px;
  font-weight: 800;
}

.privacy-content p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.privacy-visual {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.privacy-visual::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.pv-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.pv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.pv-icon  { font-size: 1.3rem; }
.pv-label { opacity: 0.9; }

.pv-status {
  margin-left: auto;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}


/* ============================================================
   10. CTA-SEKTION
   ============================================================ */
.cms-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px 100px;
  text-align: center;
}

.cta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  box-shadow: var(--shadow-md);
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 14px;
  font-weight: 800;
}

.cta-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 32px;
}


/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  background: var(--white) !important;
  background-image: none !important;
  border-top: 1px solid var(--border) !important;
  margin-top: 0 !important;
}

.footer .grid-child {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
}

.cms-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.cms-footer small {
  color: var(--text-light) !important;
  font-size: 0.825rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none !important;
  color: var(--text-light) !important;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary) !important;
}


/* ============================================================
   12. RESPONSIVE (Mobile)
   ============================================================ */
@media (max-width: 768px) {
  .cms-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .step-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   13. CASSIOPEIA-ÜBERSCHREIBUNGEN
   ============================================================ */

/* bottom-a: Module untereinander statt nebeneinander */
.container-bottom-a,
.grid-child-bottom-a {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Beitragsseiten (Impressum, Datenschutz etc.) zentrieren */
.container-component {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 36px !important;
}

/* Seitentitel ausblenden */
.page-header {
  display: none !important;
}

/* Breadcrumb ausblenden */
#sp-breadcrumbs,
.breadcrumb-wrapper {
  display: none !important;
}

/* Joomla Standard-Links */
a {
  color: var(--primary);
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-dark);
}