/* ============================================================
   HV-Profi GmbH – Haupt-Stylesheet
   Design-System: hvp-design.md  |  Stand: April 2026
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Farben */
  --color-marine:       #1B2D4F;
  --color-marine-hover: #142340;
  --color-slate:        #2C4A7C;
  --color-gold:         #D4AF37;
  --color-gold-hover:   #C49D2A;
  --color-white:        #FFFFFF;
  --color-bg-light:     #F4F6F9;
  --color-bg-sidebar:   #E5E8ED;
  --color-border:       #E5E7EB;
  --color-text-mid:     #6B7280;
  --color-text-dark:    #1F2937;
  --color-anthrazit:    #2D3748;
  --color-error:        #DC2626;
  --color-error-bg:     #FEF2F2;
  --color-success:      #16A34A;
  --color-success-bg:   #F0FDF4;

  /* Typografie */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing (8px Basis) */
  --space-xs:   8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  /* Sonstiges */
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-card-hover: 0 8px 32px rgba(27,45,79,0.12);
  --transition: all 0.25s ease;
  --max-width: 1850px;
}

/* ---- Reset & Basis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-mid);
  line-height: 1.6;
  background: var(--color-bg-sidebar);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-marine);
  color: var(--color-white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 1024px) { .container { padding: 0 40px; } }
@media (max-width: 767px)  { .container { padding: 0 20px; } }

section {
  padding: var(--space-xl) 0;
  background: var(--color-white);
  margin: 0 auto;
  max-width: var(--max-width);
}
section:last-of-type { padding-bottom: 40px; }
@media (max-width: 767px) { section { padding: 40px 0; } }

/* ---- Typografie ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-marine);
  line-height: 1.2;
}
h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 32px; font-weight: 600; line-height: 1.25; }
h3 { font-size: 22px; font-weight: 600; color: var(--color-text-dark); line-height: 1.3; }
p  { line-height: 1.6; }

@media (max-width: 767px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-gold-hover);
  outline: none;
}
.btn-secondary {
  background: transparent;
  color: var(--color-marine);
  border: 2px solid var(--color-marine);
  padding: 13px 27px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-marine);
  color: var(--color-white);
  outline: none;
}
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 13px 27px;
}
.btn-ghost:hover, .btn-ghost:focus {
  background: rgba(255,255,255,0.15);
  outline: none;
}
@media (max-width: 767px) {
  .btn { width: 100%; justify-content: center; }
}

/* ---- Karten ---- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
@media (max-width: 767px) { .card { padding: 20px; } }

/* ---- Formulare ---- */
.form-group { margin-bottom: var(--space-sm); }
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}
label .required { color: var(--color-error); margin-left: 2px; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-dark);
  background: var(--color-white);
  transition: border-color 0.2s;
}
input::placeholder, textarea::placeholder { color: #9CA3AF; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 2px solid var(--color-marine);
}
.form-error {
  font-size: 13px;
  color: var(--color-error);
  margin-top: 4px;
}
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: var(--space-sm);
}
.alert-success { background: var(--color-success-bg); border: 1px solid var(--color-success); color: #15803D; }
.alert-error   { background: var(--color-error-bg);   border: 1px solid var(--color-error);   color: #B91C1C; }

/* ---- Video Embed ---- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-marine);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin: 0 auto;
  max-width: var(--max-width);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: 12px;
  padding-bottom: 12px;
}
/* Logo weiß auf dunklem Header */
.header-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1) !important;
  transition: opacity 0.2s;
}
.header-logo:hover img { opacity: 0.85; }
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; gap: var(--space-sm); list-style: none; }
.header-nav a {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] { border-bottom-color: var(--color-gold); }
.header-partner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-md);
}
.header-partner a { display: flex; align-items: center; opacity: 0.8; transition: opacity 0.2s; }
.header-partner a:hover { opacity: 1; }
/* Partner-Logos: Standard weiß (z.B. TeamViewer) */
.header-partner img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}
/* etg24: hat bereits transparenten Hintergrund + weiß/orange — kein Filter */
.header-partner img.partner-color {
  filter: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.hamburger-line {
  display: block;
  width: 100%; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  background: var(--color-marine-hover);
  padding: var(--space-sm) 20px var(--space-md);
}
.mobile-nav ul { list-style: none; }
.mobile-nav li + li { border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
}
.mobile-partner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-partner a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

@media (max-width: 767px) {
  .header-nav, .header-partner { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO-SLIDER
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-marine);
  height: 350px;
  margin: 0 auto;
  max-width: var(--max-width);
}
@media (max-width: 1024px) { .hero { height: 250px; } }
@media (max-width: 767px)  { .hero { height: 190px; } }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 45, 79, 0.62);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-content .container { max-width: none; }
.hero-title {
  font-family: var(--font-heading);
  font-size: 39px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  max-width: 1600px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
@media (max-width: 1024px) { .hero-title { font-size: 27px; } }
@media (max-width: 767px)  { .hero-title { font-size: 20px; max-width: 100%; } }

.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.hero-dot.active { background: var(--color-gold); }

/* ============================================================
   TRUST-BAR
   ============================================================ */
.trust-bar {
  background: #E8EAEE;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  margin: 0 auto;
  max-width: var(--max-width);
}
.trust-bar .container {
  max-width: none;
}
.trust-bar-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--color-marine);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}

/* ============================================================
   CTA – Rotierender Block
   ============================================================ */
.cta-section {
  background: var(--color-marine);
  padding: 12px 0;
  text-align: center;
  margin: 0 auto;
  max-width: var(--max-width);
}
.cta-question {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}
.cta-answer {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 1600px;
  margin: 0 auto;
  line-height: 1.7;
}
.cta-section .container { max-width: none; }
.cta-section .btn { display: none; }
@media (max-width: 767px) { .cta-question { font-size: 22px; } }

/* ============================================================
   KACHELN (B2B / B2C)
   ============================================================ */
.kacheln-section {
  background: var(--color-white);
  padding-top: 40px;
  padding-bottom: var(--space-xl);
}
.kacheln-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 767px) { .kacheln-grid { grid-template-columns: 1fr; } }

.kachel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.kachel:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.kachel-img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}
.kachel-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.kachel-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}
.kachel-text {
  font-size: 15px;
  color: var(--color-text-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-md);
}
.kachel-list {
  list-style: none;
  margin-bottom: var(--space-md);
}
.kachel-list li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 15px;
  color: var(--color-text-mid);
}
.kachel-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
}

/* ============================================================
   BLOG-KARTEN
   ============================================================ */
.blog-section { background: var(--color-bg-light); }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { display: flex; flex-direction: column; }
.blog-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.blog-card .card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--color-white);
}
.blog-card .card-cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}
.blog-card .card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-marine);
  margin-bottom: var(--space-xs);
  line-height: 1.35;
}
.blog-card .card-excerpt {
  font-size: 14px;
  color: var(--color-text-mid);
  flex: 1;
  margin-bottom: var(--space-sm);
}
.blog-card .card-meta {
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: var(--space-xs);
}
.blog-card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-marine);
  transition: color 0.2s;
}
.blog-card .card-link:hover { color: var(--color-gold); }

/* ============================================================
   BLOG-SEITE
   ============================================================ */
.blog-header {
  background: var(--color-marine);
  padding: var(--space-xl) 0;
  color: var(--color-white);
}
.blog-header h1 { color: var(--color-white); }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
@media (max-width: 1024px) { .blog-layout { grid-template-columns: 1fr; } }

.blog-sidebar h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-marine);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-gold);
}
.sidebar-cat-list { list-style: none; }
.sidebar-cat-list li + li { border-top: 1px solid var(--color-border); }
.sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text-mid);
  transition: color 0.2s;
}
.sidebar-cat-list a:hover { color: var(--color-marine); }

/* Paginierung */
.pagination {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: var(--transition);
}
.pagination a:hover { background: var(--color-marine); color: var(--color-white); border-color: var(--color-marine); }
.pagination .current { background: var(--color-marine); color: var(--color-white); border-color: var(--color-marine); }

/* ============================================================
   EINZELNER BLOG-POST
   ============================================================ */
.post-header {
  background: var(--color-marine);
  padding: var(--space-xl) 0;
}
.post-header h1 { color: var(--color-white); font-size: 36px; }
@media (max-width: 767px) { .post-header h1 { font-size: 26px; } }
.post-meta { color: rgba(255,255,255,0.75); font-size: 14px; margin-top: var(--space-xs); }
.post-content {
  max-width: 760px;
  margin: var(--space-xl) auto;
  padding: 0 20px;
}
.post-content p  { margin-bottom: var(--space-sm); color: var(--color-text-dark); font-size: 17px; }
.post-content h2 { margin: var(--space-lg) 0 var(--space-sm); }
.post-content h3 { margin: var(--space-md) 0 var(--space-xs); }
.post-content ul, .post-content ol {
  margin: var(--space-sm) 0 var(--space-sm) var(--space-md);
}
.post-content li { margin-bottom: 6px; color: var(--color-text-dark); font-size: 17px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-md); }
.tag-pill {
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-mid);
  transition: var(--transition);
}
.tag-pill:hover { border-color: var(--color-marine); color: var(--color-marine); }

/* ============================================================
   ÜBER UNS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
@media (max-width: 767px) { .team-grid { grid-template-columns: 1fr; } }
.team-member img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}
.team-member h3 { font-size: 22px; color: var(--color-marine); }
.team-member .role { font-size: 14px; color: var(--color-gold); font-weight: 600; margin-bottom: var(--space-sm); }
.team-member p { color: var(--color-text-mid); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-contact {
  background: var(--color-anthrazit);
  padding: 24px 0;
  color: var(--color-white);
  margin: 0 auto;
  max-width: var(--max-width);
}
.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 767px) { .footer-contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); } }
.footer-office h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}
.footer-office address {
  font-style: normal;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}
.footer-office p { line-height: 1.8; }
.footer-office a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.footer-office a:hover { color: var(--color-gold); }

.footer-bottom {
  background: #1A2235;
  padding: var(--space-sm) 0;
  margin: 0 auto;
  max-width: var(--max-width);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-bottom p, .footer-bottom a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer-bottom nav { display: flex; gap: var(--space-md); }
.footer-bottom a:hover { color: var(--color-white); }

/* ============================================================
   IMPRESSUM / DATENSCHUTZ
   ============================================================ */
.legal-page {
  max-width: 760px;
  margin: var(--space-xl) auto;
  padding: 0 20px var(--space-xl);
}
.legal-page h1 { margin-bottom: var(--space-lg); }
.legal-page h2 { font-size: 20px; margin: var(--space-lg) 0 var(--space-xs); }
.legal-page p, .legal-page li {
  color: var(--color-text-dark);
  font-size: 16px;
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}
.legal-page ul { margin-left: var(--space-md); }
.legal-page a { color: var(--color-marine); text-decoration: underline; }

/* ============================================================
   PAGE-HERO (Unterseiten)
   ============================================================ */
.page-hero {
  background: var(--color-marine);
  padding: var(--space-xl) 0 var(--space-lg);
  color: var(--color-white);
}
.page-hero h1 { color: var(--color-white); }
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  max-width: 640px;
  margin-top: var(--space-sm);
}

/* HVP-Seite: Alternative Hero-Farbe */
.hvp-hero {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}
.hvp-hero h1 { color: var(--color-marine); }
.hvp-hero p {
  color: var(--color-text-mid);
  font-size: 18px;
  max-width: 640px;
  margin-top: var(--space-sm);
}

/* ============================================================
   LEISTUNGS-SEITEN (Hausverwaltungen / Eigentümer)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (max-width: 767px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}
.service-icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
}
.service-card h3 { margin-bottom: var(--space-xs); }
.service-card p  { font-size: 15px; }
