/* ============================================================
   LAUF-TOOLS — VDOT-Rechner (gratis) + Laufplan-Generator (29 EUR)
   Nutzt das bestehende Gold/Schwarz-System (base.css / style.css).
   ============================================================ */

.tools {
  padding: clamp(5rem, 8vw, 8rem) 0;
  margin-top: 150px;
}

.tools-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.tools-title {
  margin-bottom: 0.8rem;
}

.tools-subtext {
  color: var(--ink-2);
  max-width: 600px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}

@media (max-width: 900px) {
  .tools {
    margin-top: 120px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tools {
    margin-top: 96px;
    padding: clamp(4rem, 8vw, 6.5rem) 0;
  }
}

/* ---- Karte ---- */
.tool-card {
  position: relative;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.tool-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.tool-badge {
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  margin-bottom: 0.9rem;
}

.tool-badge--free {
  background: color-mix(in srgb, var(--status-green), transparent 80%);
  color: var(--status-green);
  border: 1px solid color-mix(in srgb, var(--status-green), transparent 55%);
}

.tool-badge--paid {
  background: color-mix(in srgb, var(--brand), transparent 82%);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand), transparent 55%);
}

.tool-card-title {
  font-size: var(--fs-h3);
  margin-bottom: 0.4rem;
  color: var(--ink-1);
}

.tool-card-sub {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

/* ---- Formular ---- */
.tool-form {
  display: grid;
  gap: 0.9rem;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 480px) {
  .tool-form-grid {
    grid-template-columns: 1fr;
  }
}

.tool-field {
  display: flex;
  flex-direction: column;
}

.tool-field--full {
  grid-column: 1 / -1;
}

.tool-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}

.tool-field input,
.tool-field select {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink-1);
  font-size: 0.95rem;
  width: 100%;
}

.tool-field input:focus,
.tool-field select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand), transparent 50%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 78%);
}

/* ---- Buttons ---- */
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.tool-btn {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border-radius: 12px;
  background: var(--brand);
  color: #0b0b0c;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--brand), white 18%);
  transition: filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.tool-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.tool-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tool-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tool-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tool-legal-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 1rem 0 0.9rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
}

.tool-legal-consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--brand);
}

.tool-price-hint {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 0.6rem;
}

.tool-contact-note {
  margin-top: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 58%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand), transparent 90%);
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.55;
}

.tool-contact-note a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.tool-error {
  margin-top: 0.6rem;
  min-height: 1.1em;
  color: #ffb4b4;
  font-size: 0.88rem;
}

/* ---- Ergebnis / Teaser ---- */
.tool-result {
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-vdot {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.tool-vdot span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.tool-vdot strong {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
}

.tool-block-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 1rem 0 0.5rem;
}

.tool-rows {
  display: grid;
  gap: 0;
}

.tool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
}

.tool-row span {
  color: var(--ink-2);
}

.tool-row strong {
  color: var(--ink-1);
  font-weight: 600;
  text-align: right;
}

.tool-preview-meta {
  margin: 0.4rem 0 0.2rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
}

.tool-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.tool-bridge {
  margin-top: 1.2rem;
}

.tool-bridge .tool-btn--ghost {
  width: 100%;
}

/* ---- Gruppen (Lauf / Kraft) ---- */
.tools-group {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tools-group:last-child {
  margin-bottom: 0;
}

.tools-group-title {
  font-size: var(--fs-h3);
  color: var(--ink-1);
  margin-bottom: 1.3rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-group-banner {
  width: 100%;
  height: clamp(160px, 22vw, 280px);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.3rem;
}

.tools-group-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---- Warnhinweis (Befund-Vorpruefung) ---- */
.tool-notice {
  margin: 0 0 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--brand), transparent 58%);
  color: var(--ink-1);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================================
   STARTSEITE: drei Bild-Karten mit Text-Overlay (Laufen / Kraft / Reha)
   Look wie Optimalwerte: Bild fuellt die Karte, Titel + Untertitel unten drin.
   ============================================================ */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

@media (max-width: 860px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  position: relative;
  display: block;
  height: clamp(200px, 23vw, 320px);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  border-color: color-mix(in srgb, var(--brand), transparent 35%);
}

.plan-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}

.plan-card:hover .plan-card-img {
  transform: scale(1.06);
}

/* dunkler Verlauf unten, damit Titel + Untertitel immer lesbar sind */
.plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(8, 8, 9, 0.92) 0%,
      rgba(8, 8, 9, 0.55) 32%,
      rgba(8, 8, 9, 0.05) 66%,
      transparent 100%);
}

.plan-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
}

.plan-card .plan-card-title {
  color: #fff;
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  line-height: 1.15;
  margin: 0 0 0.35rem;
}

.plan-card .plan-card-text {
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Einzelne Generator-Karte (Trainings-/Reha-Unterseite) zentriert */
.tools-grid.is-single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================================
   ÜBER-MICH-UNTERSEITE: Story-Artikel + Qualifikationen
   ============================================================ */
.about-article {
  max-width: 880px;
  margin-inline: auto;
}

.about-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.about-portrait {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.about-lead p:first-child {
  font-size: 1.15rem;
  color: var(--ink-1);
  font-weight: 600;
}

.about-claim {
  color: var(--brand);
  font-weight: 600;
  font-size: 1.05rem;
}

.about-quali-intro,
.about-quali-outro {
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 760px;
}

.about-quali-outro {
  margin-top: 1.2rem;
}

.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.about-cta-row .tool-btn {
  flex: 0 1 auto;
  min-width: 220px;
}

@media (max-width: 700px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    max-width: 320px;
  }
}

/* ============================================================
   HERO: goldener "Trainingspläne"-Button (unter den Coaching-CTAs)
   ============================================================ */
.hero-actions-plans {
  margin-top: 0.85rem;
}

.hero-cta-plans {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  background: var(--brand);
  color: #0b0b0c;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--brand), white 18%);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand), transparent 70%);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.hero-cta-plans:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* ============================================================
   "Über mich"-Sektion: Link zur Unterseite (statt Lizenzen-Grid)
   ============================================================ */
.profile-cta {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}

.profile-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid color-mix(in srgb, var(--brand), transparent 55%);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-cta-btn:hover {
  background: color-mix(in srgb, var(--brand), transparent 88%);
  transform: translateY(-1px);
}

/* ============================================================
   UNTERSEITEN: Abstand fuer fixierten Header + Zurueck-Link
   ============================================================ */
.tools.subpage,
.profile.subpage {
  margin-top: 0;
  padding-top: clamp(115px, 16vw, 165px);
}

.subpage-back {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.subpage-back:hover {
  text-decoration: underline;
}
