/*
Theme Name: GeneratePress Child
Template: generatepress
Description: OS Hausbetreuung Glassmorphismus Theme
Version: 1.0.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Customizer-Farben — Defaults, werden via wp_head überschrieben */
  --hv-primary: #F0C96E;
  --hv-bg:      #f0f0ee;
  --hv-text:    #122215;
  --hv-accent:  #299BCB;
  --hv-card:    rgba(240, 240, 238, 0.85);

  /* Abgeleitete Tokens */
  --color-bg:        var(--hv-bg);
  --color-bg-deep:   var(--hv-text);
  --color-bg-mid:    #999999;
  --glass-bg:        var(--hv-card);
  --glass-bg-hover:  rgba(255, 255, 255, 0.95);
  --glass-blur:      blur(8px);
  --glass-border:    rgba(255, 255, 255, 0.9);
  --glass-shadow:    0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
  --color-text:      var(--hv-text);
  --color-muted:     #666666;
  --color-gold:      var(--hv-primary);
  --color-gold-dark: #d4b05f;
  --color-blue:      var(--hv-accent);
  --color-focus:     rgba(240, 201, 110, 0.3);

  --nav-height:      70px;
  --radius:          12px;
  --max-width:       1100px;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--hv-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   GLASS PANEL (wiederverwendbare Komponente)
   ============================================================ */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-radius: var(--radius);
}

/* ============================================================
   STICKY NAVIGATION
   ============================================================ */
.hv-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #e0e0e0;
  height: var(--nav-height);
}

.hv-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

/* ============================================================
   HERO
   ============================================================ */

/* Äußerer Container - zentriert, max 1100px */
.hero-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 20px;
  background: var(--hv-bg);
}

/* Glassmorphism Box - passt sich Logo-Größe an */
.hero-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  width: 100%;
  padding: 20px;
  background: var(--hv-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  box-sizing: border-box;
}

/* Logo behält ORIGINALGRÖSSE */
.hero-glass img.site-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.hv-hero__name {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
}


@media (max-width: 767px) {
  .hero-outer { padding: 20px 12px; }
}

.hv-nav__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.hv-nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.hv-nav__menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.hv-nav__menu a:hover { color: var(--color-gold); text-decoration: none; }

.hv-nav__menu a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.hv-nav__cta {
  background: var(--color-gold);
  color: var(--color-bg-deep) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.hv-nav__cta:hover {
  background: var(--color-gold-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hamburger */
.hv-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hv-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hv-nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hv-nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.hv-nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Dropdown */
.hv-nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.hv-nav__mobile.is-open { display: flex; }

.hv-nav__mobile a {
  color: #122215;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.hv-nav__mobile .hv-nav__cta {
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  border: none;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.hv-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.hv-section-title {
  text-align: center;
  margin-bottom: 40px;
}

.hv-section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.hv-section-title p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* ============================================================
   LEISTUNGSKACHELN
   ============================================================ */
#leistungen { margin-bottom: 48px; }

.hv-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hv-card {
  padding: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 24px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  background: var(--hv-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.9);
}

.hv-card:hover {
  box-shadow:
    0 4px 12px rgba(0,0,0,0.10),
    0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.hv-card__icon {
  color: var(--color-gold);
  flex-shrink: 0;
}

.hv-card__icon svg { width: 64px; height: 64px; }

.hv-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #122215;
}

.hv-card__text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ============================================================
   ANFRAGE HINTERGRUNDBILD (Vollbreite)
   ============================================================ */
.hv-anfrage-bg {
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url('assets/hero-bg.jpg') center/cover no-repeat;
}

.hv-anfrage-bg__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #122215;
  margin-bottom: 12px;
}

.hv-anfrage-bg__sub {
  font-size: 1.1rem;
  color: #555;
}

/* ============================================================
   ANFRAGEFORMULAR SECTION
   ============================================================ */
#anfrage { margin-bottom: 0; }

.hv-main--form {
  padding-top: 48px;
  padding-bottom: 80px;
}

.hv-form-section {
  padding: 48px 40px;
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

.hv-form-section .hv-form-wrap { max-width: 100%; padding: 0; }

.hv-form-section .hv-field label {
  color: #122215;
  font-size: 0.9rem;
}

.hv-form-section .hv-field input,
.hv-form-section .hv-field select,
.hv-form-section .hv-field textarea {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #122215;
  border-radius: 8px;
}

.hv-form-section .hv-field input::placeholder,
.hv-form-section .hv-field textarea::placeholder {
  color: #aaa;
}

.hv-form-section .hv-field select option {
  background: #ffffff;
  color: #122215;
}

.hv-form-section .hv-field input:focus,
.hv-form-section .hv-field select:focus,
.hv-form-section .hv-field textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(240, 201, 110, 0.2);
  outline: none;
  background: #ffffff;
}

.hv-form-section .hv-rueckruf-box {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.hv-form-section .hv-rueckruf-btn {
  color: #122215;
  font-weight: 600;
}
.hv-form-section .hv-rueckruf-btn:hover { color: var(--color-gold-dark); }

.hv-form-section .hv-submit-btn {
  background: var(--color-gold);
  color: #122215;
  font-weight: 700;
  border-radius: 6px;
  height: 52px;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.hv-form-section .hv-submit-btn:hover { background: var(--color-gold-dark); }

.hv-form-section .hv-message--success {
  background: rgba(45, 140, 45, 0.1);
  color: #2d6e2d;
  border-color: rgba(45, 140, 45, 0.3);
}

.hv-form-section .hv-message--error {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.3);
}

.hv-form-section .hv-datenschutz label { color: #555; }
.hv-form-section .hv-datenschutz a { color: var(--color-blue); }
.hv-form-section .hv-req { color: #e74c3c; }

/* ============================================================
   FOOTER
   ============================================================ */
.hv-footer {
  border-radius: 0;
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-top: 1px solid #e0e0e0;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hv-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 24px;
}

.hv-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.hv-footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.hv-footer__col p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

.hv-footer__col a {
  color: #122215;
  font-size: 0.9rem;
}

.hv-footer__col a:hover { color: var(--color-gold); }

.hv-footer__icon-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.hv-footer__icon-row svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   LEGAL DETAILS (Impressum & Datenschutz — Schachburg-Stil)
   ============================================================ */
.hv-legal-details {
  border-top: 1px solid #e0e0e0;
  margin-top: 8px;
}

.hv-legal-details summary {
  list-style: none;
  cursor: pointer;
  display: block;
  text-align: center;
  padding: 14px 24px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(18, 34, 21, 0.35);
  transition: color 0.2s ease;
  user-select: none;
}

.hv-legal-details summary::-webkit-details-marker { display: none; }
.hv-legal-details summary::marker { display: none; }

.hv-legal-details summary::after {
  content: ' \25BE';
  font-size: 0.75em;
  vertical-align: middle;
}

.hv-legal-details[open] summary::after {
  content: ' \25B4';
}

.hv-legal-details summary:hover { color: var(--color-gold); }

.hv-legal-content {
  padding-bottom: 40px;
}

.hv-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  max-width: 900px;
  margin-inline: auto;
  padding: 24px 24px 0;
  border-top: 1px solid #e0e0e0;
}

.hv-legal-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.hv-legal-section p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.8;
  margin: 0 0 8px;
}

.hv-legal-section strong { color: #444; }

.hv-legal-section a {
  color: #444;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.hv-footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  padding-bottom: 24px;
}

/* ============================================================
   RESPONSIVE — Tablet (768–1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hv-card__icon svg { width: 56px; height: 56px; }
  .hv-form-section { padding: 36px 28px; }
}

/* ============================================================
   RESPONSIVE — Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .hv-nav__menu { display: none; }
  .hv-nav__hamburger { display: flex; }

  .hv-main { padding: 40px 16px; }

  .hv-card { padding: 16px; gap: 16px; }
  .hv-card__icon svg { width: 48px; height: 48px; }

  .hv-anfrage-bg { min-height: 220px; padding: 60px 16px; }

  .hv-form-section { padding: 24px 16px; }

  .hv-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hv-legal-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   RESPONSIVE — iPhone klein (< 480px)
   ============================================================ */
@media (max-width: 479px) {
  .hv-card { gap: 12px; }
  .hv-card__icon svg { width: 40px; height: 40px; }
  .hv-anfrage-bg__title { font-size: 1.8rem; }
}

/* ============================================================
   HOMEPAGE NAV — Floating Glass Pill
   Sicherstellt dass GeneratePress/Plugins nicht überschreiben
   ============================================================ */
.site-header,
#site-header,
header.site-header,
.has-sticky-header .site-header,
.site-header.is-sticky {
  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 1180px !important;
  z-index: 9999 !important;
  background: rgba(18,34,21,0.55) !important;
  background-color: rgba(18,34,21,0.55) !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15) !important;
  padding: 10px 28px !important;
}

@media (max-width: 640px) {
  .site-header,
  #site-header,
  header.site-header {
    top: 10px !important;
    width: calc(100% - 20px) !important;
    padding: 9px 12px 9px 6px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 389px) {
  .site-header,
  #site-header,
  header.site-header {
    padding: 10px 12px !important;
  }
}

.site-header .nav-menu a {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
}
.site-header .nav-menu a:hover {
  color: #F0C96E !important;
}
.site-header .nav-phone a {
  color: #F0C96E !important;
  border-color: #F0C96E !important;
}
.site-header .nav-phone a:hover {
  background: #F0C96E !important;
  color: #122215 !important;
}

/* Inhalt nicht unter fixierter Nav */
.site-main,
#content,
.content-area,
.wp-site-blocks {
  margin-top: 0 !important;
}
