/* ============================================================
   Matomo Forecast Plugin – Landingpage Stylesheet
   ============================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: #333;
  background: #f7f7f7;
  line-height: 1.5;
}

/* ----- Layout helpers ----- */
.container      { max-width: 1100px; margin: 0 auto; }
.container--md  { max-width: 860px;  margin: 0 auto; }
.container--lg  { max-width: 1000px; margin: 0 auto; }

/* ----- Section ----- */
.section { padding: 72px 24px; }
.section--light { background: #f7f7f7; }
.section--white { background: #fff; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-title  { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #1a3060; margin-bottom: 12px; }
.section-sub    { color: #667; font-size: 1rem; max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: #1a3060;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-text   { color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.01em; }
.logo-accent { color: #f58440; }

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

.nav-link {
  color: #cdd8f0;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover { color: #fff; }

.nav-cta {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  background: #f58440;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 6px;
}
.nav-cta:hover { background: #e07030; }

/* ----- Language switcher ----- */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 8px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lang-switch a.lang-active { color: #fff; background: rgba(255, 255, 255, 0.18); }

.lang-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  padding: 0 1px;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1a3060 0%, #2a4a8a 60%, #1f6dbf 100%);
  color: #fff;
  padding: 80px 24px 90px;
}

.hero-inner { max-width: 960px; margin: 0 auto; text-align: center; }

.hero-badge {
  display: inline-block;
  background: rgba(245, 132, 64, 0.2);
  color: #f7b27a;
  border: 1px solid rgba(245, 132, 64, 0.4);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #b8cde8;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-desc strong { color: #fff; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  background: #f58440;
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
}
.btn-primary:hover { background: #e07030; }

.btn-secondary {
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.6); }

.btn-github {
  background: #f58440;
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-github:hover { background: rgba(255, 255, 255, 0.14); }

.hero-chart {
  margin-top: 56px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 28px 24px 20px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.chart-label {
  font-size: 0.78rem;
  color: #8aaad4;
  text-align: left;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar    { background: #fff; border-bottom: 1px solid #e5e9f0; }
.stats-inner  { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: center; }

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid #eef0f5;
}
.stat-item:last-child { border-right: none; }

.stat-number { font-size: 2rem; font-weight: 800; color: #1a3060; }
.stat-label  { color: #667; font-size: 0.88rem; margin-top: 4px; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.card {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(26, 48, 96, 0.07);
}

.card--orange { border-top: 4px solid #f58440; }
.card--blue   { border-top: 4px solid #3a82d4; }
.card--green  { border-top: 4px solid #28a87d; }
.card--purple { border-top: 4px solid #9060c8; }
.card--red    { border-top: 4px solid #d43a6a; }
.card--yellow { border-top: 4px solid #e8a800; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon--orange { background: rgba(245, 132, 64, 0.1); }
.card-icon--blue   { background: rgba(58, 130, 212, 0.1); }
.card-icon--green  { background: rgba(40, 168, 125, 0.1); }
.card-icon--purple { background: rgba(144, 96, 200, 0.1); }
.card-icon--red    { background: rgba(212, 58, 106, 0.1); }
.card-icon--yellow { background: rgba(232, 168, 0, 0.1); }

.card-title { font-size: 1.05rem; font-weight: 700; color: #1a3060; margin-bottom: 10px; }
.card-text  { color: #556; font-size: 0.92rem; line-height: 1.65; }

/* Inline-Code in Karten: kein Umbruch, bei Overflow abschneiden */
.card-text code {
  background: #f0f2f7;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}

/* ============================================================
   MODE CARDS
   ============================================================ */
.modes-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }

.mode-card { flex: 1; min-width: 280px; border-radius: 12px; padding: 36px 32px; }
.mode-card--local  { background: #f7f9ff; border: 1px solid #dce6f5; }
.mode-card--remote { background: #fff8f2; border: 1px solid #f5ddc8; }

.mode-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }

.mode-card-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mode-card-icon--blue   { background: #1a3060; }
.mode-card-icon--orange { background: #f58440; }

.mode-tag          { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.mode-tag--orange  { color: #f58440; }
.mode-tag--navy    { color: #1a3060; }

.mode-card-title { font-size: 1.2rem; font-weight: 800; color: #1a3060; }
.mode-card-desc  { color: #556; font-size: 0.94rem; line-height: 1.7; margin-bottom: 22px; }

.mode-list    { list-style: none; padding: 0; }
.mode-list li { padding: 8px 0; color: #445; font-size: 0.91rem; display: flex; align-items: flex-start; gap: 10px; }

.mode-list--local  li { border-bottom: 1px solid #dce6f5; }
.mode-list--local  li:last-child { border-bottom: none; }
.mode-list--remote li { border-bottom: 1px solid #f5ddc8; }
.mode-list--remote li:last-child { border-bottom: none; }

.li-icon         { font-weight: 700; flex-shrink: 0; }
.li-icon--green  { color: #28a87d; }
.li-icon--yellow { color: #e8a800; }

.code-block { margin-top: 24px; border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.code-block--navy   { background: #1a3060; }
.code-block--brown  { background: #3d1f08; }

.code-block-label { font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.code-block-label--blue   { color: #8aaad4; }
.code-block-label--ochre  { color: #d4a07a; }

.code-block code { font-size: 0.83rem; font-family: 'Courier New', monospace; white-space: pre; }
.code-block--navy  code { color: #7dd3a8; }
.code-block--brown code { color: #ffc09a; }

/* ============================================================
   HOW IT WORKS (STEPS)
   ============================================================ */
.steps-row { display: flex; flex-wrap: wrap; align-items: center; }

.step { flex: 1; min-width: 150px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; }

.step-num {
  width: 52px; height: 52px;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.step-num--1 { background: #1a3060; }
.step-num--2 { background: #3a82d4; }
.step-num--3 { background: #f58440; }
.step-num--4 { background: #28a87d; }

.step-title { font-size: 0.95rem; font-weight: 700; color: #1a3060; margin-bottom: 8px; }
.step-text  { color: #667; font-size: 0.87rem; line-height: 1.6; }
.step-text code { background: #eee; padding: 1px 4px; border-radius: 2px; font-size: 0.82rem; }

.step-connector { flex-shrink: 0; padding: 0 4px; min-width: 20px; }
.step-connector-line { height: 2px; min-width: 16px; }
.step-connector-line--12 { background: linear-gradient(to right, #1a3060, #3a82d4); }
.step-connector-line--23 { background: linear-gradient(to right, #3a82d4, #f58440); }
.step-connector-line--34 { background: linear-gradient(to right, #f58440, #28a87d); }

/* ============================================================
   INSTALLATION
   ============================================================ */
.req-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; justify-content: center; }

.req-card { flex: 1; min-width: 180px; max-width: 220px; border-radius: 8px; padding: 20px; text-align: center; }
.req-card--blue   { background: #f7f9ff; border: 1px solid #dce6f5; }
.req-card--orange { background: #fff8f2; border: 1px solid #f5ddc8; }

.req-label          { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.req-label--blue    { color: #3a82d4; }
.req-label--orange  { color: #f58440; }
.req-version        { font-size: 1.5rem; font-weight: 800; color: #1a3060; }

.install-block { background: #1a3060; border-radius: 12px; overflow: hidden; }
.install-block-head { padding: 20px 28px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
.install-block-head p { color: #8aaad4; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.install-block-body { padding: 28px; }

.install-step              { margin-bottom: 20px; }
.install-step:last-child   { margin-bottom: 0; }
.install-step-label        { color: #8aaad4; font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; }
.install-step code {
  display: block;
  color: #7dd3a8;
  font-size: 0.88rem;
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  border-radius: 6px;
  white-space: pre;
  overflow-x: auto;
}

/* ============================================================
   API SECTION
   ============================================================ */
.api-section { padding: 64px 24px; background: #f7f7f7; }
.api-section-title { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; color: #1a3060; margin-bottom: 10px; }
.api-section-sub   { color: #667; font-size: 0.95rem; line-height: 1.7; }

.api-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.api-col  { flex: 1; min-width: 260px; }

.api-col-label         { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.api-col-label--blue   { color: #8aaad4; }
.api-col-label--orange { color: #f58440; }

.api-box { border-radius: 8px; padding: 16px 18px; overflow-x: auto; }
.api-box--navy  { background: #1a3060; }
.api-box--brown { background: #3d1f08; }

.api-box code { font-size: 0.82rem; font-family: 'Courier New', monospace; white-space: pre; }
.api-box--navy  code { color: #7dd3a8; }
.api-box--brown code { color: #ffc09a; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta-section { padding: 80px 24px; background: linear-gradient(135deg, #1a3060 0%, #2a4a8a 70%, #1f6dbf 100%); color: #fff; }
.cta-inner   { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-title   { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.cta-text    { color: #b8cde8; font-size: 1rem; line-height: 1.75; max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 48px; }

.btn-email { display: inline-flex; align-items: center; gap: 10px; background: #f58440; color: #fff; text-decoration: none; padding: 14px 30px; border-radius: 6px; font-weight: 700; font-size: 1rem; }
.btn-email:hover { background: #e07030; }

.license-badge       { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 14px 24px; }
.license-badge-body  { text-align: left; }
.license-badge-title { font-size: 0.8rem; color: #7dd3a8; font-weight: 700; margin-bottom: 2px; }
.license-badge-sub   { font-size: 0.82rem; color: #b8cde8; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #111827; color: #6b7280; padding: 32px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand      { display: flex; align-items: center; gap: 10px; }
.footer-brand-text { color: #9ca3af; font-size: 0.88rem; }
.footer-links      { font-size: 0.82rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.footer-links a    { color: #6b7280; text-decoration: none; }
.footer-links a:hover { color: #9ca3af; }
.footer-sep        { margin: 0 10px; }

/* ============================================================
   LEGAL PAGE (Impressum / Imprint)
   ============================================================ */
.legal-hero {
  background: linear-gradient(135deg, #1a3060 0%, #2a4a8a 60%, #1f6dbf 100%);
  color: #fff;
  padding: 52px 24px 56px;
  text-align: center;
}

.legal-hero-inner { max-width: 760px; margin: 0 auto; }

.legal-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.legal-hero-back:hover { color: #fff; }

.legal-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.legal-hero-sub {
  color: #b8cde8;
  font-size: 0.95rem;
}

.legal-body {
  background: #fff;
  padding: 56px 24px 72px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Notice box for missing placeholders */
.legal-notice {
  background: #fff8f0;
  border: 1px solid #f5ddc8;
  border-left: 4px solid #f58440;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 40px;
  font-size: 0.88rem;
  color: #7a4a20;
  line-height: 1.6;
}
.legal-notice strong { color: #c05a10; }

.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eef0f5;
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3060;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #f58440;
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-top: 18px;
  margin-bottom: 6px;
}

.legal-p {
  color: #445;
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 10px;
}
.legal-p:last-child { margin-bottom: 0; }

.legal-p a {
  color: #1a3060;
  text-decoration: underline;
}
.legal-p a:hover { color: #f58440; }

/* Placeholder fields to fill in */
.ph {
  background: #fff0e0;
  color: #b05010;
  border: 1px dashed #f5c090;
  border-radius: 3px;
  padding: 1px 6px;
  font-style: italic;
  font-size: 0.9em;
}

.legal-address {
  background: #f7f9ff;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 0.93rem;
  color: #334;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  font-size: 0.92rem;
  color: #445;
  line-height: 1.6;
}
.legal-dt { font-weight: 600; color: #1a3060; white-space: nowrap; }
.legal-dd { margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Ab ~760px werden die Textlinks in der Nav ausgeblendet */
@media (max-width: 760px) {
  .nav-link { display: none; }
  .nav-cta  { margin-left: 0; }
}

/* Kleine Bildschirme */
@media (max-width: 520px) {
  .hero      { padding: 48px 16px 56px; }
  .hero-chart { margin-top: 36px; }
  .section   { padding: 48px 16px; }

  .stat-item { border-right: none; border-bottom: 1px solid #eef0f5; }
  .stat-item:last-child { border-bottom: none; }

  /* Schritte: Verbindungslinien ausblenden, alles untereinander */
  .step-connector { display: none; }
  .step { min-width: 100%; }

  .mode-card { padding: 24px 18px; }
  .install-block-body { padding: 20px 16px; }

  .footer-links { gap: 4px; }
}
