/* ===========================================================
   TippMaster — Eigene Styles auf Bootstrap 5
   =========================================================== */

:root {
  /* TippMaster-Markenfarben (aus dem offiziellen Logo extrahiert) */
  --tm-primary: #1E4F70;       /* Stoppuhr-Rahmen / dunkelblau */
  --tm-primary-dark: #143A56;  /* Hover/Active */
  --tm-primary-light: #3873A0; /* Subtile Akzente */
  --tm-accent: #ED6A10;        /* Zifferblatt / orange */
  --tm-accent-dark: #C45A0E;
  --tm-dark: #1d2d3d;          /* Footer-Hintergrund */
  --tm-bg: #FDFEFF;            /* Off-White */
  --bs-primary: var(--tm-primary);
  --bs-primary-rgb: 30, 79, 112;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1f2937;
  background-color: #fff;
}

/* Bootstrap-Override für Primary */
.btn-primary {
  --bs-btn-bg: var(--tm-primary);
  --bs-btn-border-color: var(--tm-primary);
  --bs-btn-hover-bg: var(--tm-primary-dark);
  --bs-btn-hover-border-color: var(--tm-primary-dark);
  --bs-btn-active-bg: var(--tm-primary-dark);
  --bs-btn-active-border-color: var(--tm-primary-dark);
}

.bg-primary { background-color: var(--tm-primary) !important; }
.text-primary { color: var(--tm-primary) !important; }

a { color: var(--tm-primary); text-decoration: none; }
a:hover { color: var(--tm-primary-dark); text-decoration: underline; }

.letter-spacing { letter-spacing: 0.08em; }

/* ---------- Brand-Logo ---------- */
.tm-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.tm-brand-logo--footer { width: 32px; height: 32px; }

/* ---------- Navbar ---------- */
.tm-navbar {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}
.tm-navbar .nav-link {
  font-weight: 500;
  color: #4b5563;
  padding-left: 1rem;
  padding-right: 1rem;
}
.tm-navbar .nav-link:hover,
.tm-navbar .nav-link.active {
  color: var(--tm-primary);
}

/* ---------- Hero ---------- */
.tm-hero {
  background:
    radial-gradient(ellipse at top right, rgba(25, 118, 210, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(76, 175, 80, 0.06), transparent 50%),
    var(--tm-bg);
  position: relative;
  overflow: hidden;
}
.tm-hero h1 { line-height: 1.1; }
.tm-badge {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--tm-primary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.tm-hero-image img {
  border: 1px solid #e5e7eb;
}

/* ---------- Feature Cards ---------- */
.tm-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-color: #e5e7eb !important;
}
.tm-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.tm-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* ---------- Workflow Steps ---------- */
.tm-step {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tm-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.tm-step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--tm-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Dezenter SEO-Linkblock am Ende der Startseite — bewusst unauffaellig.
   Niedriger Kontrast, schmaler Hairline-Strich darueber, kleine Schrift. */
.tm-seo-links {
  background: #fafbfc;
  border-top: 1px solid #eef0f3;
  color: #64748b;
}
.tm-seo-links h2 { letter-spacing: 0.08em; font-size: 11px; }
.tm-seo-links a { color: #475569; }
.tm-seo-links a:hover { color: #1E4F70; }

/* Anleitungs-Uebersicht: bayerische Schularten als separater Block.
   Dezenter Trennstrich oben + leicht abgesetzte Hintergrundfarbe,
   damit der Block sich klar von den allgemeinen Anleitungen abhebt,
   ohne wie ein farbiger Werbe-Bereich zu wirken. */
.tm-anleitungen-bayern {
  background: #fafbfc;
  border-top: 2px solid #e2e8f0;
}

/* ---------- Footer ---------- */
.tm-footer {
  background-color: var(--tm-dark);
}
.tm-footer h5,
.tm-footer h6 {
  color: #fff;
}
.tm-footer a {
  color: #cbd5e1;
}
.tm-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.tm-footer .text-muted-light { color: #9ca3af; }
.tm-footer-brand { color: var(--tm-accent); }
.tm-footer-brand:hover { color: var(--tm-accent); text-decoration: underline; }

/* ---------- Section Spacing ---------- */
.py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
@media (max-width: 992px) {
  .py-lg-6 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}

/* ---------- FAQ Accordion ---------- */
.accordion-button:not(.collapsed) {
  background-color: rgba(25, 118, 210, 0.05);
  color: var(--tm-primary);
  font-weight: 600;
}
.accordion-item {
  border-color: #e5e7eb;
  margin-bottom: 0.5rem;
  border-radius: 0.75rem !important;
  overflow: hidden;
}
.accordion-button:focus {
  border-color: var(--tm-primary);
  box-shadow: 0 0 0 0.15rem rgba(25, 118, 210, 0.2);
}

/* ---------- Form ---------- */
.form-control:focus {
  border-color: var(--tm-primary);
  box-shadow: 0 0 0 0.15rem rgba(25, 118, 210, 0.15);
}

/* ---------- Pricing-Cards ---------- */
.tm-tier-card {
  /* Einheitlicher Radius + overflow hidden, damit der Card-Header
     mit der Card-Rundung mitgeht. */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb !important;
  background: #ffffff;
  /* Etwas kraeftigerer Standardschatten — Karten wirken "schwebend"
     auf dem Light-Grau-Hintergrund der Sektion. */
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tm-tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12) !important;
}
/* Highlight-Karte (Empfohlen): subtile Akzent-Border statt 2px Block. */
.tm-tier-card.tm-tier-highlight {
  border: 1px solid var(--tm-primary) !important;
  box-shadow: 0 10px 28px rgba(30, 79, 112, 0.16) !important;
}
.tm-tier-card.tm-tier-highlight:hover {
  box-shadow: 0 16px 40px rgba(30, 79, 112, 0.20) !important;
}

/* Spacer fuer Karten OHNE Card-Header, damit alle Karten gleich hoch
   beginnen (Header ist sonst nur bei "Empfohlen"/"Aktion" da und macht
   diese Karten kuenstlich groesser). Hoehe = py-2 + Schriftgroesse. */
.tm-tier-card .tm-tier-spacer {
  height: 38px;
}

/* Card-Header (Empfohlen / Aktion): Top-Ecken mit Card-Radius */
.tm-tier-card .card-header {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-radius: 13px 13px 0 0;
  border-bottom: none;
}

/* Lange Tarif-Namen sauber umbrechen — Bindestrich-Auto-Trennung deaktivieren */
.tm-tier-card .tm-tier-name {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.tm-tier-card .tm-tier-audience {
  min-height: 1.4em;
}

/* Preis-Block: Original durchgestrichen, neuer Preis prominent, Suffix gedaempft */
.tm-tier-card .tm-tier-original {
  font-size: 0.95rem;
  color: #94a3b8;
}
.tm-tier-card .tm-tier-price {
  font-size: 2.3rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tm-tier-card .tm-tier-suffix {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: 0;
}

/* Discount-Badges sauberer */
.tm-tier-card .tm-tier-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.tm-tier-card .tm-tier-validity {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 6px;
}

/* Feature-Liste: Icon und Text als Flex-Row, damit zweite Zeile
   sauber unter dem Text einrueckt (nicht unter dem Icon).            */
.tm-tier-card .tm-tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
}
.tm-tier-card .tm-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 4px 0;
}
.tm-tier-card .tm-tier-features li > i {
  flex-shrink: 0;
  margin-top: 3px;
  color: #16a34a;
  font-size: 0.95rem;
}

