/*
Theme Name:   Kreditreich Child
Theme URI:    https://kreditreich.de
Description:  Kreditreich Child Theme (Astra)
Author:       Rainer Steinberg
Template:     astra
Version:      1.0.0
Text Domain:  kreditreich-child
*/

/* ── DESIGN TOKENS ── */
:root {
  --navy:       #0D1F3C;
  --blue:       #1A3A6B;
  --gold:       #C9A84C;
  --gold-light: #E8C96B;
  --gray:       #F4F6F9;
  --text:       #2C2C2C;
  --muted:      #6B7280;
  --white:      #FFFFFF;
  --radius:     12px;
}

/* ── GLOBAL ── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── ASTRA HEADER OVERRIDE ── */
.site-header,
#masthead {
  background: rgba(13, 31, 60, 0.97) !important;
  backdrop-filter: blur(8px);
}

.main-header-bar {
  background: rgba(13, 31, 60, 0.97) !important;
  padding: 0 5% !important;
  min-height: 70px !important;
}

/* Logo */
.site-title a,
.site-title a:visited {
  color: var(--white) !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
}

/* Navigation Links */
.main-header-menu .menu-item a,
.ast-builder-menu-1 .menu-item a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: color 0.2s !important;
}

.main-header-menu .menu-item a:hover,
.ast-builder-menu-1 .menu-item a:hover {
  color: var(--gold) !important;
}

/* CTA-Button in Nav */
.main-header-menu .menu-item.nav-cta a,
.ast-builder-menu-1 .menu-item.nav-cta a {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

.main-header-menu .menu-item.nav-cta a:hover {
  background: var(--gold-light) !important;
}

/* ── BUTTONS ── */
.wp-block-button__link,
.ast-button,
button[type="submit"],
input[type="submit"] {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: all 0.2s !important;
}

.wp-block-button__link:hover,
.ast-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(201,168,76,0.35) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.07) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ── HEADINGS ── */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ── LINKS ── */
a { color: var(--gold); }
a:hover { color: var(--gold-light); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

/* ── CARDS ── */
.wp-block-group,
.wp-block-column {
  border-radius: var(--radius);
}

/* ── HERO BLOCK ── */
.wp-block-cover,
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e4a8a 100%) !important;
}

.wp-block-cover .wp-block-cover__inner-container,
.wp-block-cover p,
.wp-block-cover h1,
.wp-block-cover h2 {
  color: var(--white) !important;
}

/* ── FOOTER ── */
.site-footer,
#colophon {
  background: #080F1E !important;
  color: rgba(255,255,255,0.55) !important;
}

.site-footer a,
#colophon a {
  color: rgba(255,255,255,0.55) !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--gold) !important;
}

.ast-footer-copyright {
  color: rgba(255,255,255,0.35) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

/* ── FORMS ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
  padding: 0.8rem 1rem !important;
  font-family: inherit !important;
  transition: border-color 0.2s !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold) !important;
  outline: none !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .ast-mobile-header-wrap {
    background: rgba(13, 31, 60, 0.97) !important;
  }

  .ast-mobile-menu-trigger-btn {
    color: var(--white) !important;
  }
}

/* ── LEGAL PAGES ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(13,31,60,0.06);
}

.legal-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.legal-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.2rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.legal-card ul {
  margin: 0.5rem 0 0.8rem 1.2rem;
}

.legal-card ul li {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.legal-card a { color: var(--gold); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray);
}

.info-row:last-child { border: none; padding-bottom: 0; }

.info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  min-width: 180px;
  flex-shrink: 0;
}

.info-value {
  font-size: 0.92rem;
  color: var(--text);
}

.erlaubnis-tag {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.speicher-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
}

.speicher-table th {
  background: var(--navy);
  color: var(--gold);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.speicher-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--gray);
  color: var(--muted);
}

.speicher-table tr:last-child td { border: none; }
.speicher-table tr:hover td { background: var(--gray); }

.right-highlight {
  background: rgba(201,168,76,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: var(--text);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e4a8a 100%);
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { max-width: 650px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.35);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-number { font-size: 1.9rem; font-weight: 800; color: var(--gold); display: block; line-height: 1; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 0.3rem; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--gray);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #E5E7EB;
}

.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.trust-icon { width: 20px; height: 20px; fill: var(--gold); }

/* ── SECTION GLOBALS ── */
section { padding: 90px 5%; }
.products { background: var(--white); }
.process { background: var(--gray); }
.advisor { background: var(--white); }

/* ── PRODUKTE ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }

.product-card {
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.product-card:hover { border-color: var(--gold); box-shadow: 0 12px 40px rgba(13,31,60,0.1); transform: translateY(-4px); }

.product-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
}

.product-card.featured .card-label { color: var(--gold); }
.product-card.featured .card-title { color: var(--white); }
.product-card.featured .card-desc,
.product-card.featured .card-feature { color: rgba(255,255,255,0.75); }

.featured-badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.card-icon { width: 48px; height: 48px; background: rgba(201,168,76,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; font-size: 1.4rem; }
.product-card.featured .card-icon { background: rgba(255,255,255,0.1); }
.card-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.card-title { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 0.7rem; }
.card-desc { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.6; }
.card-amount { font-size: 2rem; font-weight: 800; color: var(--gold); display: block; margin-bottom: 0.3rem; }
.card-amount-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 1.2rem; }
.card-features { list-style: none; margin-bottom: 1.5rem; }
.card-feature { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); padding: 0.3rem 0; }
.check { color: var(--gold); font-weight: 700; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--gold); text-decoration: none; }

/* ── PROZESS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }

.step { text-align: center; padding: 2rem 1.5rem; background: var(--white); border-radius: var(--radius); }

.step-number { width: 52px; height: 52px; background: var(--navy); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin: 0 auto 1.2rem; }
.step-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.step-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── BERATER ── */
.advisor-inner { display: grid; grid-template-columns: 2fr 3fr; gap: 1.5rem; align-items: center; }

.advisor-photo { display: flex; flex-direction: column; gap: 1rem; }
.advisor-img {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  aspect-ratio: 1/1; max-height: 380px; max-width: 380px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.advisor-caption {
  text-align: center;
  padding: 0.4rem 0 0;
}
.advisor-caption strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.advisor-caption span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 0.2px;
}

.advisor-quote { font-size: 1.2rem; font-style: italic; color: var(--navy); font-weight: 500; line-height: 1.5; margin-bottom: 1.5rem; padding-left: 1.5rem; border-left: 3px solid var(--gold); }
.advisor-text { font-size: 0.95rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }
.advisor-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.tag { background: var(--gray); color: var(--navy); padding: 0.35rem 0.9rem; border-radius: 50px; font-size: 0.82rem; font-weight: 600; }

/* ── KONTAKT ── */
.contact { background: var(--navy); }
.contact .section-title { color: var(--white); }
.contact .section-sub { color: rgba(255,255,255,0.65); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info { color: rgba(255,255,255,0.85); }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.8rem; }

.contact-icon {
  width: 42px; height: 42px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.contact-detail-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 600; margin-bottom: 0.2rem; }
.contact-detail-value { font-size: 0.95rem; color: rgba(255,255,255,0.85); }

.contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-form .wpcf7-form input,
.contact-form .wpcf7-form select,
.contact-form .wpcf7-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
  padding: 0.8rem 1rem !important;
  color: var(--white) !important;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form select:focus,
.contact-form .wpcf7-form textarea:focus { border-color: var(--gold) !important; outline: none; }

.contact-form .wpcf7-form input::placeholder,
.contact-form .wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.3) !important; }

.contact-form .form-submit,
.contact-form .wpcf7-submit {
  width: 100%;
  background: var(--gold) !important;
  color: var(--navy) !important;
  border: none !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.contact-form .form-note { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-align: center; margin-top: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }

/* ── ANIMATION ── */
@keyframes textPulse {
  0%   { color: var(--white); text-shadow: none; }
  50%  { color: var(--gold-light); text-shadow: 0 0 18px rgba(232,201,107,0.7); }
  100% { color: var(--white); text-shadow: none; }
}

.card-title-animated { animation: textPulse 10s ease-in-out infinite; animation-delay: 2s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-stats { gap: 1.5rem; }
  .advisor-inner { grid-template-columns: 1fr; }
  .advisor-img { aspect-ratio: 3/2; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-bar { gap: 1.5rem; }
  .hero { padding: 70px 5% 50px !important; min-height: auto; }
  section { padding: 60px 5%; }
}

/* Astra Header-Button auf Mobile ausblenden */
@media (max-width: 921px) {
  .ast-header-break-point .ast-header-html-1,
  .ast-header-break-point .ast-header-custom-item,
  .ast-mobile-header-wrap .ast-header-html-1 { display: none !important; }
}
