/*
Theme Name: Sicherstellen
Theme URI: https://sicherstellen.eu
Author: Gambtec
Author URI: https://gambtec.de
Description: Dunkles Business-Theme im Gambtec-Stil für Sicherstellen.eu
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: sicherstellen
*/

/* ===== RESET & VARIABLES ===== */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --accent: #e52e2e;
  --accent-hover: #ff3b3b;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.site-branding .custom-logo-link img,
.site-branding a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-branding .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-branding .site-title a {
  color: var(--text-primary);
}

.site-branding .site-title a:hover {
  color: var(--accent);
}

/* Main Navigation */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-navigation ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
  color: var(--text-primary);
}

.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current_page_item a::after {
  width: 100%;
}

.nav-cta a {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta a:hover {
  background: var(--accent-hover) !important;
}

.nav-cta a::after {
  display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-section h1 .accent {
  color: var(--accent);
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: #fff;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-number {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== SERVICE ROWS ===== */
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-row:last-child {
  border-bottom: none;
}

.service-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  min-width: 60px;
}

.service-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .product-info {
  padding: 1.5rem;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-card .product-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.product-card .product-price {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #c41f1f 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent);
}

.cta-banner .btn-primary:hover {
  background: #f0f0f0;
}

/* ===== PROCESS STEPS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== ADVANTAGES LIST ===== */
.advantages-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.advantage-item .check {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.advantage-item p {
  color: var(--text-secondary);
}

.advantage-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

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

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  background: none;
  border: none;
  color: var(--text-primary);
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-detail .icon {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail p {
  color: var(--text-secondary);
}

.contact-detail strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== WordPress-specific overrides ===== */
.wp-block-group,
.entry-content {
  color: var(--text-primary);
}

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.entry-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Hide admin bar spacing */
body.admin-bar .site-header {
  top: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .advantages-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 0 2rem;
  }

  .main-navigation ul li a {
    display: block;
    padding: 0.75rem 0;
  }

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

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item .stat-number {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   KATALOG / GÜTER SEITE
   ======================================== */

.katalog-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.katalog-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.katalog-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.katalog-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.katalog-section {
  padding-top: 40px;
}

/* Filter Bar */
.katalog-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.katalog-search input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}

.katalog-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.katalog-search input::placeholder {
  color: var(--text-muted);
}

.katalog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.katalog-filters select {
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  flex: 1;
  min-width: 180px;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.katalog-filters select:focus {
  outline: none;
  border-color: var(--accent);
}

.katalog-result-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding-left: 4px;
}

.katalog-result-count span {
  color: var(--accent);
  font-weight: 700;
}

/* Table */
.katalog-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 60px;
}

.katalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.katalog-table thead {
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 1;
}

.katalog-table th {
  padding: 16px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

.katalog-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  vertical-align: middle;
}

.katalog-table tbody tr {
  transition: background 0.2s;
}

.katalog-table tbody tr:hover {
  background: rgba(229, 46, 46, 0.05);
}

.vnr-badge {
  display: inline-block;
  background: rgba(229, 46, 46, 0.15);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: 'Inter', monospace;
  white-space: nowrap;
}

.kat-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.col-obj strong {
  color: #fff;
  font-weight: 600;
}

.col-sn {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-preis {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-align: right;
}

.col-bj {
  text-align: center;
}

.col-ort {
  white-space: nowrap;
}

/* Katalog CTA */
.katalog-cta {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 50px 30px;
  margin-bottom: 40px;
}

.katalog-cta h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 12px;
}

.katalog-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .katalog-stats {
    gap: 20px;
  }

  .katalog-stat-number {
    font-size: 1.8rem;
  }

  .katalog-filters {
    flex-direction: column;
  }

  .katalog-filters select {
    min-width: 100%;
  }

  .katalog-table {
    font-size: 0.8rem;
  }

  .katalog-table th,
  .katalog-table td {
    padding: 10px 8px;
  }

  .col-sn {
    display: none;
  }
}
