/*
Theme Name: Geschaeftsausstattung Deutschland
Theme URI: https://example.com
Author: Codex Agent
Description: Modernes WordPress-Theme fuer Firmenprofile und Inventar-Listings in Deutschland.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geschaeftsausstattung
*/

:root {
  --color-bg: #f6f4f1;
  --color-surface: #ffffff;
  --color-primary: #0b3d2e;
  --color-secondary: #d5a021;
  --color-accent: #2f7b6a;
  --color-text: #1d1d1b;
  --color-muted: #6e6e6a;
  --color-border: #e3e0da;
  --shadow-soft: 0 12px 30px rgba(11, 61, 46, 0.08);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --space-xl: 72px;
  --space-lg: 48px;
  --space-md: 28px;
  --space-sm: 16px;
  --space-xs: 10px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, #ffffff 0%, #f3efe8 55%, #efe9df 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  text-align: center;
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.branding-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.branding-logo img,
.branding-logo svg {
  max-height: 56px;
  width: auto;
}

.branding-title {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.header-nav {
  display: flex;
  justify-content: center;
  font-weight: 500;
  color: var(--color-muted);
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-cta {
  padding: 10px 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.breadcrumb-bar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 8px;
  color: var(--color-border);
}

.breadcrumb-item a {
  color: var(--color-muted);
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  color: var(--color-primary);
}

.breadcrumb-item span {
  color: var(--color-text);
  font-weight: 600;
}

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.hero-card {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: var(--space-sm);
}

.hero p {
  color: var(--color-muted);
  margin-top: 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.filter-panel label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 6px;
  display: block;
}

.filter-panel select,
.filter-panel input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.95rem;
}

.filter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: var(--space-sm);
}

.button {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-secondary);
  color: #1f1a11;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.section-title {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.firma-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.firma-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.firma-card-content {
  padding: var(--space-sm);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.badge {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f0eb;
  color: var(--color-muted);
}

.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
  background: #0f2a22;
  color: #f5f2ed;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.footer-note {
  color: rgba(245, 242, 237, 0.7);
}

.page-title {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  margin: var(--space-lg) 0 var(--space-md);
}

.product-list {
  display: grid;
  gap: 14px;
}

.product-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-border);
}

.product-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #f2f0eb;
  overflow: hidden;
  display: block;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb-placeholder {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.product-details h3 {
  margin-top: 0;
}

.product-card .product-thumb {
  border-radius: 0;
  border: none;
}

.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
  background: #f7f5f1;
}

.product-preview-item {
  appearance: none;
  border: none;
  background: #f2f0eb;
  padding: 0;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.product-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-preview-item.is-single {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-gallery-main .product-preview-item {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product-meta p {
  margin: 8px 0 0;
}

.ad-card .ad-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f0eb;
}

.ad-card .ad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(90vw, 980px);
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .product-item {
    grid-template-columns: 1fr;
  }

  .product-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    text-align: center;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: var(--space-lg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.6s ease both;
}