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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Hintergrund */
  --color-bg:        #405C33;
  --color-bg-deep:   #122215;
  --color-bg-mid:    #566355;

  /* Glassmorphismus */
  --glass-bg:        rgba(255, 255, 255, 0.08);
  --glass-bg-hover:  rgba(255, 255, 255, 0.13);
  --glass-blur:      blur(16px);
  --glass-border:    rgba(240, 201, 110, 0.25);
  --glass-shadow:    0 8px 32px rgba(18, 34, 21, 0.4);

  /* Typografie */
  --color-text:      #ffffff;
  --color-muted:     #BF9C9A;

  /* Akzente */
  --color-gold:      #F0C96E;
  --color-gold-dark: #d4b05f;
  --color-blue:      #299BCB;
  --color-focus:     rgba(240, 201, 110, 0.6);

  /* Layout */
  --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:
    linear-gradient(rgba(10, 20, 10, 0.62), rgba(10, 20, 10, 0.62)),
    url('assets/hero-bg.jpg') center / cover no-repeat;
  background-attachment: scroll;
  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: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

/* ============================================================
   STICKY NAVIGATION
   ============================================================ */
.hv-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0d1a0d;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--glass-border);
  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
   ============================================================ */
.hv-hero {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
}

.hv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(240, 201, 110, 0.1) 0%, rgba(41, 155, 203, 0.06) 50%, transparent 75%);
  pointer-events: none;
}

.hv-hero__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: rgba(220, 225, 220, 0.18);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hv-hero__logo-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.hv-hero__name {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
  text-shadow: 0 4px 24px rgba(240, 201, 110, 0.3);
}

@media (min-width: 1025px) {
  .hv-hero__card {
    max-width: var(--max-width);
  }
}

@media (max-width: 767px) {
  .hv-hero { height: 320px; }
  .hv-hero__card {
    padding: 24px 20px;
    max-width: calc(100% - 32px);
  }
}

.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: rgba(18, 34, 21, 0.95);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

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

.hv-nav__mobile a {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.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: 80px; }

.hv-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hv-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.hv-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow), 0 0 24px rgba(240, 201, 110, 0.15);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

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

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

.hv-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.hv-card__text {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

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

.hv-form-section {
  padding: 48px 40px;
  max-width: 760px;
  margin: 0 auto;
}

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

.hv-form-section .hv-field label {
  color: var(--color-text);
  font-size: 0.9rem;
}

.hv-form-section .hv-field input,
.hv-form-section .hv-field select,
.hv-form-section .hv-field textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
  border-radius: 6px;
}

.hv-form-section .hv-field input::placeholder,
.hv-form-section .hv-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hv-form-section .hv-field select option {
  background: var(--color-bg-deep);
  color: var(--color-text);
}

.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 var(--color-focus);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.hv-form-section .hv-rueckruf-box {
  background: rgba(240, 201, 110, 0.1);
  border: 1px solid var(--glass-border);
}

.hv-form-section .hv-rueckruf-btn { color: var(--color-gold); }

.hv-form-section .hv-submit-btn {
  background: var(--color-gold);
  color: var(--color-bg-deep);
  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, 106, 45, 0.3);
  color: #90EE90;
  border-color: rgba(45, 106, 45, 0.5);
}

.hv-form-section .hv-message--error {
  background: rgba(192, 57, 43, 0.2);
  color: #ffb3b3;
  border-color: rgba(192, 57, 43, 0.4);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.hv-footer {
  border-radius: 0;
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--glass-border);
  background: rgba(18, 34, 21, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.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: var(--color-muted);
  line-height: 1.8;
}

.hv-footer__col a {
  color: var(--color-blue);
  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-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   LEGAL DETAILS (Impressum & Datenschutz — Schachburg-Stil)
   ============================================================ */
.hv-legal-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  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(255, 255, 255, 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 rgba(255, 255, 255, 0.06);
}

.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: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin: 0 0 8px;
}

.hv-legal-section strong { color: rgba(255, 255, 255, 0.7); }

.hv-legal-section a {
  color: rgba(255, 255, 255, 0.7);
  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: var(--color-bg-mid);
  padding-bottom: 24px;
}

/* ============================================================
   RESPONSIVE — Tablet (768–1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hv-cards { grid-template-columns: repeat(2, 1fr); }
  .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-cards { grid-template-columns: 1fr; }

  .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-nav__logo img { height: 38px; }
  .hv-section-title h2 { font-size: 1.4rem; }
  .hv-card { padding: 24px 16px; }
}
