/* ============================================
   PST Verwaltung GmbH — pst-hausverwaltung.de
   Design-System: Dark Theme (Navy/Blue/Amber)
   Basierend auf globalem PST Design-System
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Primärfarben */
  --pst-blue:        #1D4ED8;
  --pst-blue-light:  #3B82F6;
  --pst-blue-dark:   #1E40AF;
  --pst-amber:       #F59E0B;
  --pst-amber-light: #FBBF24;
  --pst-amber-dark:  #D97706;

  /* Logo-Farbe (nur für Logo) */
  --pst-orange:      #FF8908;
  --pst-logo-dark:   #222221;

  /* Hintergründe (Dark Theme) */
  --pst-bg-primary:  #0B1120;
  --pst-bg-card:     #111827;
  --pst-bg-elevated: #1F2937;
  --pst-bg-subtle:   #374151;

  /* Text */
  --pst-text-primary:   #F9FAFB;
  --pst-text-secondary: #D1D5DB;
  --pst-text-muted:     #9CA3AF;
  --pst-text-subtle:    #6B7280;

  /* Borders */
  --pst-border:       #1F2937;
  --pst-border-light: #374151;

  /* Semantische Farben */
  --pst-success: #10B981;
  --pst-warning: #F59E0B;
  --pst-error:   #EF4444;
  --pst-info:    #3B82F6;

  /* Font */
  --pst-font: 'Inter', system-ui, -apple-system, sans-serif;
  --pst-line-height: 1.625;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--pst-font);
  font-size: 16px;
  line-height: var(--pst-line-height);
  color: var(--pst-text-secondary);
  background: var(--pst-bg-primary);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--pst-text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { color: var(--pst-text-secondary); line-height: var(--pst-line-height); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--pst-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--pst-amber);
  color: var(--pst-bg-primary);
}
.btn-primary:hover {
  background-color: var(--pst-amber-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-white {
  background-color: transparent;
  color: var(--pst-text-primary);
  border: 2px solid rgba(255,255,255,0.3);
  padding: calc(0.75rem - 2px) 1.5rem;
}
.btn-white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--pst-blue-light);
  border: 1px solid var(--pst-blue-light);
}
.btn-secondary:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--pst-blue-light);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pst-border);
  transition: box-shadow 0.3s ease;
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--pst-text-primary);
  line-height: 1.2;
}

.logo-text .pst { color: var(--pst-orange); }
.logo-text .verwaltung {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pst-text-muted);
  display: block;
  margin-top: 0;
}

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pst-text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--pst-amber);
  transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--pst-text-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pst-text-primary); transition: all 0.3s; }

/* --- Hero Section --- */
.hero {
  color: var(--pst-text-primary);
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--pst-bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(11,17,32,0.92) 0%, rgba(11,17,32,0.65) 100%);
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--pst-text-primary); margin-bottom: 24px; max-width: 700px; }
.hero h1 .highlight { color: var(--pst-amber); }
.hero p { color: var(--pst-text-muted); font-size: 18px; max-width: 550px; margin-bottom: 40px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-sub { padding: 140px 0 70px; }

/* --- Section Styles --- */
.section { padding: 100px 0; }
.section-light { background: var(--pst-bg-card); }
.section-dark { background: var(--pst-bg-primary); color: var(--pst-text-primary); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .label {
  display: inline-block;
  color: var(--pst-amber);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; }

/* --- Service Cards --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.service-card {
  background: var(--pst-bg-card);
  border: 1px solid var(--pst-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--pst-border-light);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.service-card .card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-card .card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--pst-bg-card), transparent);
}

.service-card .card-content { padding: 28px 30px 36px; }
.service-card .category {
  color: var(--pst-blue-light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 15px; }

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(135deg, var(--pst-blue) 0%, var(--pst-blue-dark) 100%);
  color: var(--pst-text-primary);
  padding: 60px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--pst-amber-light);
}
.stat-item .label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* --- Photo Banner --- */
.photo-banner {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.photo-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(11,17,32,0.85) 0%, rgba(29,78,216,0.4) 100%);
}

.photo-banner .container { position: relative; z-index: 2; }
.photo-banner h2 { color: var(--pst-text-primary); margin-bottom: 16px; }
.photo-banner p { color: var(--pst-text-muted); max-width: 550px; margin: 0 auto 32px; font-size: 17px; }

/* --- Split Section --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-image {
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}
.split-image .accent-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--pst-blue), var(--pst-amber));
  z-index: 1;
}

.split-content .label {
  display: inline-block;
  color: var(--pst-amber);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.split-content h2 { margin-bottom: 20px; }
.split-content p { margin-bottom: 16px; font-size: 15px; line-height: 1.7; }
.split-content .btn { margin-top: 16px; }

/* --- Mieter Section --- */
.mieter-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .feature-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--pst-blue);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
.feature-item h4 { font-size: 14px; margin-bottom: 4px; }
.feature-item p { font-size: 14px; }

/* --- Values Grid --- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--pst-bg-card);
  border: 1px solid var(--pst-border);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}
.value-item:hover {
  border-color: var(--pst-border-light);
  transform: translateY(-2px);
}
.value-item .value-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border: 2px solid var(--pst-blue);
  color: var(--pst-amber);
  font-size: 24px;
  font-weight: 700;
  border-radius: 0.5rem;
  margin-bottom: 24px;
}
.value-item h3 { margin-bottom: 12px; font-size: 16px; }
.value-item p { font-size: 14px; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--pst-bg-card);
  border: 1px solid var(--pst-border);
  border-radius: 0.75rem;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}
.contact-info-card:hover { border-color: var(--pst-blue); }
.contact-info-card .icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(29, 78, 216, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--pst-blue-light);
  border-radius: 0.5rem;
}
.contact-info-card h4 { font-size: 13px; margin-bottom: 4px; }
.contact-info-card p { font-size: 14px; }

/* --- Google Maps --- */
.map-container { width: 100%; height: 400px; border: 1px solid var(--pst-border); border-radius: 0.75rem; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pst-bg-card);
  text-align: center;
  padding: 40px;
}
.map-placeholder p { font-size: 14px; margin-bottom: 16px; }
.map-placeholder .btn { margin-top: 8px; }

/* --- Footer --- */
.footer { background: #060A14; color: var(--pst-text-muted); padding: 80px 0 30px; border-top: 1px solid var(--pst-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer h4 {
  color: var(--pst-text-primary);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer p, .footer a { font-size: 14px; color: var(--pst-text-muted); line-height: 1.8; }
.footer a:hover { color: var(--pst-amber); }
.footer-bottom {
  border-top: 1px solid var(--pst-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom a { margin-left: 24px; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pst-text-primary);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--pst-font);
  font-size: 15px;
  border: 1px solid var(--pst-border);
  background: var(--pst-bg-elevated);
  color: var(--pst-text-primary);
  border-radius: 0.5rem;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--pst-text-subtle);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--pst-blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.file-upload {
  border: 2px dashed var(--pst-border-light);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  border-radius: 0.75rem;
  background: var(--pst-bg-card);
}
.file-upload:hover { border-color: var(--pst-blue-light); background: rgba(59, 130, 246, 0.05); }
.file-upload input[type="file"] { display: none; }
.file-upload .upload-icon { font-size: 32px; color: var(--pst-text-muted); margin-bottom: 8px; }
.file-upload p { font-size: 14px; }
.file-upload .hint { font-size: 12px; color: var(--pst-text-subtle); margin-top: 4px; }

/* --- Password Protected Area --- */
.login-box {
  max-width: 400px;
  margin: 0 auto;
  padding: 48px;
  background: var(--pst-bg-card);
  border: 1px solid var(--pst-border);
  border-radius: 0.75rem;
}
.login-box h2 { text-align: center; margin-bottom: 8px; }
.login-box .subtitle { text-align: center; margin-bottom: 32px; }

/* --- FAQ / Ratgeber --- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--pst-border);
  border-radius: 0.75rem;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--pst-border-light); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--pst-bg-card);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--pst-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--pst-text-primary);
  transition: background 0.3s;
}

.faq-question:hover { background: var(--pst-bg-elevated); }

.faq-question .arrow {
  font-size: 20px;
  color: var(--pst-amber);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  background: var(--pst-bg-card);
}

.faq-answer-inner p { font-size: 15px; margin-bottom: 8px; }
.faq-answer-inner ul { list-style: disc; padding-left: 24px; margin-bottom: 12px; }
.faq-answer-inner li { color: var(--pst-text-secondary); margin-bottom: 4px; font-size: 14px; }

/* --- Notfall-Karten --- */
.notfall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.notfall-card {
  padding: 32px;
  background: var(--pst-bg-card);
  border: 1px solid var(--pst-border);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.notfall-card:hover { border-color: var(--pst-border-light); }
.notfall-card.urgent { border-color: var(--pst-error); background: rgba(239, 68, 68, 0.05); }
.notfall-card .notfall-icon { font-size: 32px; margin-bottom: 16px; }
.notfall-card h3 { margin-bottom: 12px; font-size: 16px; }
.notfall-card p { font-size: 14px; margin-bottom: 8px; }
.notfall-card .notfall-steps { margin-top: 16px; }
.notfall-card .notfall-step {
  padding: 12px 0;
  border-bottom: 1px solid var(--pst-border);
}
.notfall-card .notfall-step:last-child { border-bottom: none; }
.notfall-card .notfall-step p { font-size: 14px; }
.notfall-card .notfall-step strong { color: var(--pst-text-primary); }
.notfall-card .steps { list-style: none; counter-reset: step; padding-left: 0; margin-top: 16px; }
.notfall-card .steps li {
  counter-increment: step;
  padding: 8px 0 8px 36px;
  position: relative;
  font-size: 14px;
  color: var(--pst-text-secondary);
  border-bottom: 1px solid var(--pst-border);
}
.notfall-card .steps li:last-child { border-bottom: none; }
.notfall-card .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  width: 24px; height: 24px;
  background: var(--pst-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* --- Downloads --- */
.download-list { max-width: 700px; margin: 0 auto; }
.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--pst-bg-card);
  border: 1px solid var(--pst-border);
  border-radius: 0.75rem;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
.download-item:hover { border-color: var(--pst-blue); }
.download-item .dl-info h4 { font-size: 14px; margin-bottom: 4px; }
.download-item .dl-info p { font-size: 13px; color: var(--pst-text-subtle); }
.download-item .dl-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--pst-amber);
  color: var(--pst-bg-primary);
  font-family: var(--pst-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.download-item .dl-btn:hover { background: var(--pst-amber-light); }

/* --- Cookie Banner --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--pst-bg-card);
  color: var(--pst-text-secondary);
  padding: 20px 0;
  border-top: 1px solid var(--pst-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.cookie-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-banner p { color: var(--pst-text-secondary); font-size: 14px; flex: 1; min-width: 280px; }
.cookie-banner p a { color: var(--pst-amber); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-buttons .btn { padding: 12px 24px; font-size: 0.75rem; }

/* --- Legal Pages --- */
.legal-content h2 { font-size: 1.3rem; margin: 48px 0 16px; letter-spacing: normal; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1rem; margin: 32px 0 12px; letter-spacing: normal; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-content li { color: var(--pst-text-secondary); margin-bottom: 6px; font-size: 15px; }
.legal-content a { color: var(--pst-blue-light); }
.legal-content a:hover { color: var(--pst-amber); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .split { gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 40px; }
  .notfall-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0; right: 0; bottom: 0;
    background: var(--pst-bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 24px;
    border-top: 1px solid var(--pst-border);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 140px 0 80px; }
  .hero-sub { padding: 120px 0 60px; }
  .section { padding: 60px 0; }

  .services-grid, .values-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse { direction: ltr; }
  .split-image { height: 300px; }
  .mieter-features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
  .photo-banner { background-attachment: scroll; }
  .notfall-grid { grid-template-columns: 1fr; }
}
