/* ============================================================
   STEFAN GIESBERG LERNCOACHING – Website-spezifische Styles
   Wird zusätzlich zu giesberg-design.css geladen (nur /website/)
   ============================================================ */

/* =================================================================
   DESIGN TOKEN OVERRIDES — Precision Authority (alle Seiten)
   ================================================================= */

:root {
  --color-primary:     #1A2744;
  --color-accent:      #FF9F0A;
  --color-accent-dark: #D98500;
  --color-light:       #F8F9FA;
  --color-text:        #12213A;
  --color-text-light:  #3D5070;
  --color-border:      #D8DDE8;
  --color-white:       #ffffff;
  --font-display:      'Playfair Display', Georgia, serif;
  --font-primary:      'DM Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-white);
  margin: 0;
}

/* =================================================================
   HEADER – Hamburger-Nav (alle Seiten, identisch zu index.html)
   ================================================================= */

.g-page-header {
  background: var(--color-primary) !important;
  border-bottom: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
}

.g-page-header .g-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.g-page-header__brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
}

.g-page-header__logo { width: 28px; height: 28px; flex-shrink: 0; }

.g-page-header__brand {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--color-white) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-bottom: 0 !important;
  opacity: 1 !important;
  white-space: nowrap;
}

/* Hamburger — immer sichtbar */
.nav-hamburger {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-hamburger:hover,
.nav-hamburger:focus-visible { background: rgba(255,255,255,0.1); outline: none; }
.nav-hamburger span {
  display: block !important;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.9) !important;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.nav-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.nav-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.nav-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Dropdown-Nav — rechts ausgerichtet */
.g-page-header__nav {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  right: 2rem !important;
  left: auto !important;
  min-width: 210px;
  background: var(--color-primary) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 6px;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0.4rem 0 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 300;
  margin-top: 0 !important;
}
.g-page-header__nav.nav-open { display: flex !important; }
.g-page-header__nav a {
  padding: 0.85rem 1.3rem !important;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem !important;
  color: rgba(255,255,255,0.85) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 0 !important;
  background: none !important;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.g-page-header__nav a:last-child { border-bottom: none !important; }
.g-page-header__nav a:hover,
.g-page-header__nav a.active {
  background: rgba(255,255,255,0.08) !important;
  color: var(--color-white) !important;
}

@media (max-width: 640px) {
  .g-page-header__nav {
    left: 0 !important;
    right: 0 !important;
    min-width: 0 !important;
    border-radius: 0 0 6px 6px !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }
}

/* =================================================================
   FOOTER – Dreispaltiges Grid-Layout
   ================================================================= */

.g-footer {
  text-align: left;
  margin-top: 0;
}

.g-footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.g-footer__section h3 {
  color: var(--color-white) !important;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.g-footer__section h4 {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.g-footer__section p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: none;
}

.g-footer__section a {
  display: block;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-bottom: 5px;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.g-footer__section a:hover {
  color: var(--color-accent) !important;
}

.g-footer__bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.g-footer__bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.g-footer__bottom a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .g-footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* =================================================================
   CTA BUTTON GROUP – gestapelte/nebeneinander CTAs
   ================================================================= */

.cta-btn-group {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-phone-number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .cta-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn-group .g-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* =================================================================
   TESTIMONIALS – Anführungszeichen neu gestaltet (small-caps Label)
   ================================================================= */

.testimonial-card {
  padding-top: calc(var(--space-xl) + 1.5rem);
}

.testimonial-card::before {
  content: 'Erfahrungsbericht';
  position: absolute;
  top: var(--space-md);
  left: var(--space-xl);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-family: var(--font-primary, sans-serif);
  font-style: normal;
  opacity: 0.85;
  line-height: 1;
}

/* =================================================================
   BILD-PLATZHALTER (bis echte Fotos hochgeladen werden)
   ================================================================= */

.img-placeholder {
  background: linear-gradient(135deg, #dde4ea 0%, #c8d3dd 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  min-height: 280px;
  color: var(--color-text-subtle);
  text-align: center;
  gap: var(--space-md);
  border: 2px dashed rgba(45, 64, 89, 0.2);
}

.img-placeholder p {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
  max-width: none;
  margin: 0;
  font-style: italic;
}

.photo-placeholder {
  width: 220px;
  height: 270px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  color: rgba(255, 255, 255, 0.6);
  gap: var(--space-sm);
}

.photo-placeholder p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-style: italic;
  max-width: none;
}

/* =================================================================
   KONZEPT-VERGLEICHSTABELLE
   ================================================================= */

.konzept-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
  font-size: 0.95rem;
}

.konzept-table tr {
  border-bottom: 1px solid var(--color-border);
}

.konzept-table tr:last-child {
  border-bottom: none;
}

.konzept-table td {
  padding: var(--space-sm) var(--space-md);
  vertical-align: top;
  line-height: 1.6;
}

.konzept-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  width: 35%;
  white-space: nowrap;
}

.konzept-table td:last-child {
  color: var(--color-text-light);
}

/* =================================================================
   UTILITY – Sektion-Wrapper, Lead-Text
   ================================================================= */

.section-inner {
  max-width: var(--max-width, 1100px);
  margin: 0 auto;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: none;
}

/* =================================================================
   PHONE CTA – Rufnummer-Anzeige & Button-Varianten
   ================================================================= */

/* Dunkle Rufnummer für helle Hintergründe (steps, fuerwen) */
.cta-phone-number--dark {
  color: var(--color-primary);
}

/* Kleinere Rufnummer für Card-Kontext (konzept-card) */
.cta-phone-number--sm {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: var(--space-sm);
}

/* Outline-Button für dunkle Hintergründe (weiße Umrandung) */
.g-btn--outline-white {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: var(--color-white) !important;
}

.g-btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Icon-Ausrichtung in Buttons */
.g-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4em;
}

/* Pulse-Animation für Hero-CTA */
@keyframes phone-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(255, 159, 10, 0.5); }
  60%       { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 0 0 12px rgba(255, 159, 10, 0); }
}

.hero .g-btn--primary {
  animation: phone-pulse 2.8s ease-in-out infinite;
}
