/*
Theme Name: 2hInventar – Inventarmarktplatz
Theme URI: https://geschaeftaufloesung.de
Author: 2hInventar
Description: Der Inventarmarktplatz für Geschäftsauflösungen, Modernisierungen und Insolvenzen in Deutschland. Anbieter und Interessenten finden hier zusammen.
Version: 7.14.42
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);
  --shadow-md: 0 4px 20px rgba(11, 61, 46, 0.12);
  --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);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(11, 61, 46, 0.10);
}

.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;
  max-height: 200px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.4s ease;
}

.site-header.scrolled .branding {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.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 22px;
  background: var(--color-secondary);
  color: #1f1a11;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Header auth links */
/* ── Top bar (login / register links) ─────────────────────────── */
.top-bar {
  background: transparent;
  padding: 4px 0;
  text-align: right;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.top-bar-link {
  font-size: 0.72rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.top-bar-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.top-bar-sep {
  font-size: 0.72rem;
  color: var(--color-border);
}

.top-bar-pending {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-style: italic;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.header-auth-register {
  padding: 8px 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-auth-register:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  color: #fff;
}

.header-auth-login,
.header-auth-dashboard {
  padding: 8px 16px;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.header-auth-login:hover,
.header-auth-dashboard:hover {
  background: var(--color-surface);
}

.header-auth-pending {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Registration banner on front page */
.hero-register-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4a7a 100%);
  padding: 48px 0;
  margin: 0;
}

.hero-register-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-register-inner h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.hero-register-inner p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 560px;
}

.hero-register-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-secondary);
  color: #1f1a11;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #1f1a11;
}

/* ── Homepage widget area below registration banner ── */
.home-widget-area {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.home-widget-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.home-widget {
  flex: 1 1 280px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.home-widget-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 6px;
}

.home-widget > *:last-child {
  margin-bottom: 0;
}

.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);
  background: linear-gradient(160deg, #ffffff 0%, #f0ece3 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.hero-grid > div > img,
.hero-grid > div > .wp-post-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.hero h1 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.hero-usp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-sm);
}

.hero-usp-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
}

.hero-usp-item::before {
  content: "✓";
  font-weight: 700;
}

.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.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.firma-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.firma-card > a > img,
.firma-card > a > .wp-post-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f5f1;
  display: block;
}

.firma-card-image {
  width: 100%;
  overflow: hidden;
  background: #f7f5f1;
}

.firma-card-image img,
.firma-card-image .wp-post-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Single-firma hero profile image — same sizing for private and business */
.firma-profile-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: block;
}

.firma-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.firma-card-content {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1 1 auto; /* grow to fill card height so button can stick to bottom */
}

.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);
}

.badge--gewerblich {
  background: #ea580c;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge--privat {
  background: #6366f1;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
}

.private-user-note {
  font-size: 0.82rem;
  color: #6366f1;
  margin: -8px 0 16px;
  font-style: italic;
}

.site-header.scrolled .header-inner {
  padding: 10px 0;
  gap: 8px;
}

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

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

.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;
}
/* ── Carousel ───────────────────────────────────────────────────────────── */
.product-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f8f7f4;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.is-active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.product-gallery-thumbs .product-preview-item.is-active {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}



.product-meta p {
  margin: 8px 0 0;
}

.ad-card {
  border: 2px solid var(--color-secondary);
  background: #fffbf0;
  box-shadow: 0 4px 18px rgba(213, 160, 33, 0.12);
}

.ad-card:hover {
  box-shadow: 0 8px 28px rgba(213, 160, 33, 0.22);
  transform: translateY(-4px);
}

.ad-card .ad-thumb {
  width: 100%;
  overflow: hidden;
  background: #f2f0eb;
}

.ad-card .ad-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f5f1;
  display: block;
}

.ad-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-secondary);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.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;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.85);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 10000;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: #fff; }

@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;
}
.hero-stats {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-stat-number {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 4px;
}

.firma-contact {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.firma-contact h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.firma-contact-item {
  margin: 6px 0;
  font-size: 0.95rem;
}

.firma-contact-item a {
  color: var(--color-accent);
  overflow-wrap: break-word;
}

.firma-contact-item a:hover {
  color: var(--color-primary);
}

.contact-form {
  margin-top: var(--space-sm);
}

.contact-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-sm);
}

.contact-form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

.contact-form-row input,
.contact-form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(47, 123, 106, 0.15);
}

.contact-form-row select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.95rem;
}

.contact-consent-row {
  align-items: flex-start;
}

.contact-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
  cursor: pointer;
}

.contact-consent-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-notice--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.contact-notice--error {
  background: #fce4ec;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.firma-links {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.firma-links-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-meta-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--color-text);
}

.field-hint {
  display: block;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.archive-intro {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 720px;
  margin: 0 0 var(--space-md);
  line-height: 1.7;
}

.footer-column h3,
.footer-column h4 {
  color: #f5f2ed;
  margin-top: 0;
}

.search-intro {
  color: var(--color-muted);
  margin-top: 0;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.footer-email {
  display: inline-block;
  color: rgba(245, 242, 237, 0.85);
  margin-top: 4px;
}

.footer-contact-link {
  display: inline-block;
  color: rgba(245, 242, 237, 0.9);
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact-link:hover {
  color: #fff;
}

/* ================================================================
   Kundenbereich & Registrierung
   ================================================================ */

/* -- Notices ---------------------------------------------------- */
.gsa-notice {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  border-left: 4px solid transparent;
}
.gsa-notice ul { margin: 0; padding-left: 1.2em; }
.gsa-notice p  { margin: 0; }
.gsa-notice-success { background: #f0fdf4; border-color: #16a34a; color: #166534; }
.gsa-notice-error   { background: #fef2f2; border-color: #dc2626; color: #7f1d1d; }
.gsa-notice-warning { background: #fffbeb; border-color: #d97706; color: #78350f; }
.gsa-notice-info    { background: #eff6ff; border-color: #2563eb; color: #1e3a8a; }

/* -- Forms ------------------------------------------------------ */
.gsa-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.gsa-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
@media (max-width: 540px) { .gsa-form-row { grid-template-columns: 1fr; } }
.gsa-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gsa-form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}
.gsa-form-group input,
.gsa-form-group select,
.gsa-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  transition: border-color 0.2s ease;
}
.gsa-form-group input:focus,
.gsa-form-group select:focus,
.gsa-form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.gsa-form-group input[disabled],
.gsa-form-group select[disabled],
.gsa-form-group textarea[disabled] {
  background: #f3f4f6;
  cursor: not-allowed;
  color: var(--color-muted);
}
.required { color: var(--color-secondary); }
.gsa-submit-btn {
  align-self: flex-start;
  padding: 12px 32px;
  font-size: 1rem;
}

/* -- Registrierung page ----------------------------------------- */
.reg-page { padding: var(--space-lg) 0; }
.reg-title { font-size: 2rem; margin-bottom: var(--space-xs); }
.reg-intro { color: var(--color-muted); margin-bottom: var(--space-md); max-width: 580px; }
/* Honeypot: invisible to real users, filled by bots */
.reg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.reg-login-link { margin-top: var(--space-xs); font-size: 0.9rem; color: var(--color-muted); }

/* Privacy note: small italic grey hint */
.privacy-note { display: block; font-size: 0.72rem; font-style: italic; color: var(--color-muted); margin-top: 2px; }

/* Address visibility toggle switch */
.toggle-label { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 500; }
.toggle-switch { position: relative; display: inline-flex; align-items: center; }
.toggle-switch input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { display: inline-block; width: 44px; height: 24px; background: #ccc; border-radius: 12px; transition: background 0.2s; position: relative; }
.toggle-switch input:checked ~ .toggle-track { background: var(--color-primary, #1e40af); }
.toggle-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 0.2s; }
.toggle-switch input:checked ~ .toggle-track .toggle-thumb { transform: translateX(20px); }

/* -- Customer dashboard ----------------------------------------- */
.customer-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  align-items: start;
}
@media (max-width: 720px) {
  /* Stack layout: nav on top, content below */
  .customer-dashboard {
    grid-template-columns: 1fr;
  }
  /* Sidebar becomes a compact top bar — not sticky so it doesn't cover content */
  .customer-sidebar {
    position: static !important;
    padding: 8px;
    display: block;
  }
  /* Avatar section: inline compact row */
  .customer-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 6px;
    text-align: left;
  }
  .customer-avatar-wrap img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
  }
  .customer-name {
    font-size: 0.88rem;
  }
  /* Nav: single horizontal scroll row — never wraps, never covers page */
  .customer-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 4px 0 6px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
  }
  .customer-nav ul::-webkit-scrollbar {
    height: 3px;
  }
  .customer-nav ul::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
  }
  .customer-nav ul li {
    flex: 0 0 auto;
    width: auto;
  }
  .customer-nav ul li a {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 7px 11px;
  }
}

.customer-sidebar {
  position: sticky;
  top: 80px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.customer-avatar-wrap {
  text-align: center;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}
.customer-avatar-wrap img {
  border-radius: 50%;
  margin: 0 auto 8px;
}
.customer-name { font-weight: 600; font-size: 0.95rem; }
.customer-role-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
}

.customer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.customer-nav ul li a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s ease;
}
.customer-nav ul li a:hover,
.customer-nav ul li.active > a {
  background: var(--color-primary);
  color: #fff;
}
.app-nav-link   { color: var(--color-accent) !important; }
.logout-nav-link { color: #dc2626 !important; }

/* -- Dashboard cards -------------------------------------------- */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.dash-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.dash-card-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.dash-card-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.dash-card-app  { border-color: var(--color-accent); }

/* -- ABO + Credits Info Grid ------------------------------------ */
.dash-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.dash-info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}
.dash-info-box--abo     { border-top: 3px solid var(--color-primary); }
.dash-info-box--credits { border-top: 3px solid var(--color-accent); }
.dash-info-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
}
.dash-info-icon  { font-size: 1.4rem; }
.dash-info-title { font-weight: 700; font-size: 1rem; color: var(--color-text); }
.dash-info-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.dash-info-value--muted { color: var(--color-muted); font-size: 1rem; }
.dash-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.875rem;
}
.dash-info-label { color: var(--color-muted); }
.dash-info-data  { font-weight: 600; color: var(--color-text); }
.dash-info-note  { font-size: 0.85rem; color: var(--color-muted); margin: 4px 0; }
.dash-info-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.dash-info-badge--active   { background: #d1fae5; color: #065f46; }
.dash-info-badge--pending  { background: #fef3c7; color: #92400e; }
.dash-info-badge--inactive { background: #f3f4f6; color: #6b7280; }
.dash-info-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.dash-info-link:hover { text-decoration: underline; }

/* -- App banner ------------------------------------------------- */
.dash-app-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
}
.dash-app-banner h3 { margin: 0 0 8px; color: #fff; }
.dash-app-banner p  { margin: 0 0 var(--space-sm); opacity: 0.85; }

/* -- Import section --------------------------------------------- */
.import-template-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}
.import-template-info h3 { margin: 0 0 6px; font-size: 1rem; }
.import-template-info p  { margin: 0 0 10px; font-size: 0.9rem; color: var(--color-muted); }

/* -- btn-secondary --------------------------------------------- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

/* -- btn-delete (frontend product delete) ----------------------- */
.product-delete-form { margin-top: var(--space-xs); }
.btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  background: transparent;
  color: #c0392b;
  border: 1px solid #c0392b;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-delete:hover { background: #c0392b; color: #fff; }

/* ================================================================
   Custom Login Page (page-anmelden.php)
   ================================================================ */

.login-page-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-lg) var(--space-sm);
  min-height: 60vh;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-lg) var(--space-md);
}

.login-logo {
  text-align: center;
  margin-bottom: var(--space-md);
}
.login-logo img { max-height: 56px; width: auto; }
.login-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.login-heading {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: var(--color-primary);
  text-align: center;
}
.login-subheading {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
}

.login-remember { margin: 0; }
.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-muted);
  cursor: pointer;
}
.login-checkbox-label input[type="checkbox"] { width: auto; margin: 0; }

.login-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px;
}

.login-links {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.login-links a { color: var(--color-accent); text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-links-sep { margin: 0 8px; color: var(--color-border); }

/* ================================================================
   Artikel melden – link + modal
   ================================================================ */

.product-report-row {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border);
}

.product-report-link {
  font-size: 0.78rem;
  color: #dc2626;
  text-decoration: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.product-report-link:hover { color: #991b1b; text-decoration: underline; }

/* ab_18 + external link styles (v7.14.28) */
.produkt-ab18-hinweis {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-left: 6px solid #b02a37;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #58151c;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.20);
    line-height: 1.5;
}
.produkt-ab18-hinweis::before {
    content: "⛔";
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.produkt-ab18-hinweis strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
    color: #b02a37;
}
.produkt-link a,
.produkt-anbieter-link a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}
.produkt-link a:hover,
.produkt-anbieter-link a:hover {
    text-decoration: underline;
}

/* Preis display */
.produkt-preis {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 1.1rem;
}
.produkt-preis .preis-label {
    font-weight: 600;
    color: #374151;
}
.produkt-preis .preis-wert {
    font-weight: 700;
    color: #b4642a;
    font-size: 1.25rem;
}
.produkt-preis .preis-kostenlos {
    color: #16a34a;
}
.produkt-preis .preis-keine-angabe {
    font-weight: 400;
    font-style: italic;
    color: #9ca3af;
    font-size: 0.9rem;
}
.produkt-preis .preis-hinweis {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}
.badge--preis {
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
}
.badge--kostenlos {
    background: #d1fae5;
    color: #065f46;
}
/* Semantic helper classes used by get_produkt_preis_display() */
.produkt-preis--gratis {
    color: #16a34a;
    font-weight: 700;
    font-size: 1.1rem;
}
.produkt-preis--keine-angabe {
    color: #6b7280;
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 400;
}
.produkt-detail-preis {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 1.1rem;
}
.produkt-detail-preis strong {
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}
.produkt-detail-preis .produkt-preis {
    font-weight: 700;
    color: #b4642a;
    font-size: 1.25rem;
}

/* Gewerblich ribbon banner */
.product-preview-grid,
.product-thumb-wrap {
  position: relative;
  overflow: hidden;
}
.banner--gewerblich {
  position: absolute;
  top: 14px;
  left: -28px;
  width: 110px;
  padding: 4px 0;
  background: #d97706;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-45deg);
  transform-origin: center;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.banner--privat {
  position: absolute;
  top: 14px;
  left: -28px;
  width: 110px;
  padding: 4px 0;
  background: #6366f1;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-45deg);
  transform-origin: center;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

/* Modal overlay */
.report-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.report-modal:not([aria-hidden="true"]) {
  display: flex;
}
.report-modal-inner {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg) var(--space-md);
  width: min(540px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.report-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.report-modal-close:hover { color: var(--color-text); }
.report-modal-inner h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.15rem;
  color: var(--color-primary);
}

/* Math challenge & honeypot */
.gsa-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.gsa-math-challenge { margin: 14px 0; padding: 14px 16px; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; }
.gsa-math-q { font-weight: 600; margin: 0 0 10px; font-size: 1rem; }
.gsa-math-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gsa-math-btn { padding: 10px 22px; border: 2px solid #ced4da; border-radius: 6px; background: #fff; cursor: pointer; font-size: 1.1rem; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.gsa-math-btn:hover { border-color: var(--color-primary, #0056b3); }
.gsa-math-btn.selected { border-color: var(--color-primary, #0056b3); background: var(--color-primary, #0056b3); color: #fff; box-shadow: 0 0 0 3px rgba(0,86,179,.35); transform: scale(1.08); }
.gsa-math-btn.selected::after { content: ' ✓'; }
/* firma-melden button-reset so <button> looks like the old <a> */
button.firma-melden-link { background: none; border: none; padding: 0; font-size: inherit; font-family: inherit; }
.gsa-math-hint { font-size: 0.8rem; color: #6c757d; margin: 4px 0 0; }
.gsa-math-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* =========================================================
   Google Maps Section
   ========================================================= */
.firma-map-section { margin-bottom: var(--space-xl); }
.firma-map-address {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.firma-map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-bg-alt);
  line-height: 0; /* remove gap under iframe */
}
.firma-map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
@media (max-width: 600px) {
  .firma-map-embed iframe { height: 240px; }
}

/* =========================================================
   Nearby Firms Section
   ========================================================= */
.nearby-firms-section { margin-top: var(--space-xl); }
.nearby-firms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.nearby-firma-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.nearby-firma-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.nearby-firma-thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.nearby-firma-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nearby-firma-body {
  padding: var(--space-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nearby-firma-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.nearby-firma-desc {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0;
}
.nearby-firma-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}
.nearby-firma-meta span {
  font-size: 0.72rem;
  background: var(--color-bg-alt);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--color-muted);
}

/* ============================================================
   Rechnungen Tab
   ============================================================ */
.rechnungen-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-md);
}
.rechnung-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.rechnung-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.rechnung-info {
  flex: 1;
}
.rechnung-title {
  font-weight: 600;
  color: var(--color-text);
}
.rechnung-dl {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   Konto verwalten Tab
   ============================================================ */
.konto-section {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.konto-section h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--color-text);
}
.konto-danger-zone {
  background: #fff5f5;
  border: 2px solid #fca5a5;
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: var(--space-lg);
}
.konto-danger-zone h3 {
  margin: 0 0 10px;
  color: #dc2626;
  font-size: 1.1rem;
}
.konto-danger-zone p {
  color: #7f1d1d;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}
.btn-danger {
  display: inline-block;
  padding: 10px 20px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

/* ── Share buttons ──────────────────────────────────────────── */
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}
.share-label {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  color: #fff;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); color: #fff; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--telegram  { background: #0088cc; }
.share-btn--email     { background: #6b7280; }
.share-btn--facebook  { background: #1877f2; }
.share-btn--twitter   { background: #000; }
.share-btn--linkedin  { background: #0a66c2; }
.share-btn--copy      { background: var(--color-primary); }
/* Compact share row (product cards) */
.share-row--compact {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  gap: 5px;
}
.share-btn--icon {
  padding: 5px 8px;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  min-width: 32px;
  justify-content: center;
}

/* ── Share Dropdown (single product page) ───────────────────────────── */
.share-dropdown {
  margin-top: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.share-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  color: var(--color-primary);
}
.share-dropdown-toggle::-webkit-details-marker { display: none; }
.share-dropdown-toggle::after {
  content: '▾';
  margin-left: auto;
  transition: transform 0.2s;
}
.share-dropdown[open] .share-dropdown-toggle::after { transform: rotate(180deg); }
.share-dropdown-panel {
  padding: var(--space-md);
  background: #fff;
}
.share-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-sm);
}
.share-dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
}
.share-dropdown-item:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }
.share-dropdown-icon { font-size: 1.5rem; line-height: 1; }
.share-dropdown-label { text-align: center; line-height: 1.2; }
/* Xing brand colour */
.share-btn--xing { background: #026466; }

/* ================================================================
   Nachrichten / Messaging
   ================================================================ */
.message-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.message-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.message-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; gap: 12px; user-select: none; }
.message-header::-webkit-details-marker { display: none; }
.message-subject { font-weight: 600; color: var(--color-text); flex: 1; }
.message-date { font-size: 0.8rem; color: var(--color-muted); white-space: nowrap; }
.message-body { padding: 16px; border-top: 1px solid var(--color-border); background: #fafafa; line-height: 1.7; }

/* ================================================================
   Abo & Credit System
   ================================================================ */

/* Credit badge in sidebar nav */
.credit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-primary, #2563eb);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 6px;
}

/* Credit balance box */
.credit-balance-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md, 8px);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d4ed8;
}
.credit-info-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
}
.credit-info-tooltip {
  background: #1e293b;
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 400;
  max-width: 280px;
  line-height: 1.5;
}

/* Abo status box */
.abo-status-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md, 8px);
  padding: 16px 20px;
  margin-bottom: 16px;
}

/* Abo package grid */
.abo-pakete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.abo-paket-card {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow 0.15s;
}
.abo-paket-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.abo-paket-name { font-weight: 700; font-size: 1.05rem; }
.abo-paket-preis { font-size: 1.8rem; font-weight: 800; color: #2563eb; line-height: 1; }
.abo-paket-info { display: flex; gap: 10px; font-size: 0.82rem; color: #6b7280; flex-wrap: wrap; }
.abo-paket-beschreibung { font-size: 0.85rem; color: #6b7280; line-height: 1.5; }

/* Ad upload form */
.ad-upload-form {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 24px;
  margin-top: 16px;
}

/* Ad campaigns list */
.ad-campaigns-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ad-campaign-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-sm, 6px);
  padding: 12px;
}

/* ── Spruch-Widget-Bar (below header) ─────────────────────────────────────── */
.spruch-bar {
  background: linear-gradient(135deg, #0a2540 0%, #1a3a6b 100%);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
}
.widget-spruch { display: inline; }
.spruch-text {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #e8f4fd;
}

/* ── Product card: Anbieter row + action buttons ──────────────────────────── */
.product-anbieter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid #e5e7eb;
}
.product-anbieter-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.product-anbieter-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary, #0a2540);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.button--sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}
.button--primary {
  background: var(--color-primary, #0a2540);
  color: #fff;
  border: none;
}
.button--primary:hover {
  background: #1a3a6b;
  color: #fff;
}
.button--secondary {
  background: #fff;
  color: var(--color-primary, #0a2540);
  border: 1px solid var(--color-primary, #0a2540);
}
.button--secondary:hover {
  background: #f0f4f8;
}
.button--details {
  display: inline-block;
  margin-top: auto; /* push button to bottom of flex-column card content */
  padding: 7px 14px;
  background: #1a5276;
  color: #fff !important;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.button--details:hover {
  background: #154360;
  color: #fff !important;
}

/* ── firma-card description spacer (fills space so button stays at bottom) */
.firma-card-content > p {
  flex: 1 1 auto;
  margin-bottom: var(--space-xs, 8px);
}

/* ── Projekt-Produkt Search (single-firma.php) ───────────────────────── */
.firma-produkt-search-section { padding-top: 0; padding-bottom: 0; }
.firma-produkt-search-form { margin-bottom: var(--space-md, 28px); }
.firma-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.firma-search-row input[type="search"],
.firma-search-row select {
  flex: 1 1 180px;
  padding: 8px 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.9rem;
}
.firma-search-row .button { flex-shrink: 0; }
.firma-kat-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.firma-kat-chip {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--color-surface, #f7f5f1);
  border: 1px solid var(--color-border, #e2e8f0);
  font-size: 0.8rem;
  line-height: 1.4;
  min-height: 32px;
  white-space: nowrap;
  text-decoration: none !important;
  color: var(--color-text, #1a1a1a) !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.firma-kat-chip:hover,
.firma-kat-chip--active {
  background: #1a5276 !important;
  border-color: #1a5276 !important;
  color: #fff !important;
  text-decoration: none !important;
}
@media (max-width: 768px) {
  .firma-kat-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .firma-kat-chip {
    display: inline-flex !important;
    padding: 8px 16px;
    min-height: 36px;
    font-size: 0.85rem;
    background: var(--color-surface, #f7f5f1) !important;
    border: 1px solid var(--color-border, #e2e8f0) !important;
    border-radius: 20px !important;
    color: var(--color-text, #1a1a1a) !important;
    text-decoration: none !important;
  }
  .firma-kat-chip--active {
    background: #1a5276 !important;
    border-color: #1a5276 !important;
    color: #fff !important;
  }
}

/* ── Meine Projekte tab ──────────────────────────────────────────── */
.meine-projekte-liste { display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.mein-projekt-card { display:flex; justify-content:space-between; align-items:center; background:#f9fafb; border:1px solid #e2e8f0; border-radius:8px; padding:12px 16px; gap:12px; flex-wrap:wrap; }
.mein-projekt-info { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.mein-projekt-count { font-size:.8rem; color:#64748b; }
.mein-projekt-actions { display:flex; gap:8px; }
.badge--active  { background:#d1fae5; color:#065f46; padding:2px 8px; border-radius:12px; font-size:.75rem; }
.badge--draft   { background:#fef3c7; color:#92400e; padding:2px 8px; border-radius:12px; font-size:.75rem; }
.neues-projekt-form-wrap { background:#f0f9ff; border:1px solid #bae6fd; border-radius:8px; padding:20px; margin-top:24px; }
.neues-projekt-form-wrap h3 { margin-top:0; }

/* ── Impressum + Melden links on firma profile ───────────────────── */
.firma-footer-links { display:flex; gap:16px; flex-wrap:wrap; margin-top:16px; padding-top:12px; border-top:1px solid #e2e8f0; font-size:.85rem; }
.firma-impressum-link { color:#0a2540; text-decoration:none; }
.firma-impressum-link:hover { text-decoration:underline; }
.firma-melden-link { color:#b91c1c; text-decoration:none; cursor:pointer; }
.firma-melden-link:hover { text-decoration:underline; }

/* ── Impressum page section ──────────────────────────────────────── */
.impressum-section { padding:40px 0; max-width:760px; }
.impressum-section h1 { font-size:1.8rem; margin-bottom:1.5rem; }
.impressum-section h2 { font-size:1.25rem; margin-top:2rem; }
.impressum-section address { font-style:normal; background:#f9fafb; border-left:3px solid #0a2540; padding:12px 16px; border-radius:0 6px 6px 0; margin:1rem 0; line-height:1.8; }
.impressum-hr { border:none; border-top:1px solid #e2e8f0; margin:2rem 0; }

/* ── Social Login Buttons ────────────────────────────────────────── */
.gsa-social-login-wrap { margin:20px 0; }
.gsa-social-divider { position:relative; text-align:center; margin:20px 0 16px; }
.gsa-social-divider::before { content:''; position:absolute; top:50%; left:0; right:0; height:1px; background:#e2e8f0; }
.gsa-social-divider span { position:relative; background:#fff; padding:0 12px; font-size:.85rem; color:#64748b; }
.gsa-social-buttons { display:flex; flex-direction:column; gap:10px; }
.gsa-social-btn { display:flex; align-items:center; justify-content:center; gap:10px; padding:11px 16px; border-radius:8px; font-size:.9rem; font-weight:600; text-decoration:none; transition:opacity .2s, box-shadow .2s; border:1px solid transparent; }
.gsa-social-btn:hover { opacity:.88; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.gsa-social-google  { background:#fff; color:#3c4043; border-color:#dadce0; }
.gsa-social-facebook{ background:#1877F2; color:#fff; }
.gsa-social-apple   { background:#000; color:#fff; }

/* ─── Early Bird Badge — "User der ersten Stunde" (erste 100 Mitglieder) ─── */

/* Cards need position:relative so the corner ribbon can be positioned inside */
.firma-card { position: relative; }

/* Corner ribbon overlay on firma cards */
.gsa-eb-corner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 96px;
  height: 96px;
  overflow: hidden;
  pointer-events: none;
}
.gsa-eb-corner::before {
  content: "🏅 Erste 100";
  position: absolute;
  top: 20px;
  left: -28px;
  width: 126px;
  padding: 5px 0;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #FFD700 0%, #E65100 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .40);
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Early bird badge chip in .badges row */
.badge--early-bird {
  background: linear-gradient(135deg, #FFD700 0%, #F5A623 50%, #E65100 100%);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  border: none;
}

/* Hero rosette on single-firma profile page */
.gsa-eb-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 8px;
  text-align: center;
}
.gsa-eb-rosette svg {
  filter: drop-shadow(0 3px 8px rgba(230, 81, 0, .35));
  transition: transform 0.35s ease;
}
.gsa-eb-rosette svg:hover {
  transform: rotate(6deg) scale(1.07);
}
.gsa-eb-hero-label {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(90deg, #F5A623, #E65100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}
.gsa-eb-hero-desc {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-muted);
  max-width: 260px;
}

/* ================================================================
   Popup-Modul (gsa_popup)
   ================================================================ */

/* Defensive fix: hide orphaned checkbox toggles (e.g. from nav plugins)
   that may appear on Android/Chrome if their CSS doesn't load in time. */
input[type="checkbox"]#modal-check,
input[type="checkbox"]#nav-check,
input[type="checkbox"]#menu-toggle,
input[type="checkbox"].modal-check,
input[type="checkbox"].nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gsa-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.65);
  display: none; /* shown via JS */
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: var(--space-sm);
}

.gsa-popup-box {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  padding: var(--space-lg) var(--space-md);
  width: min(640px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: gsaPopupIn 0.25s ease both;
}

@keyframes gsaPopupIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.gsa-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0 4px;
}
.gsa-popup-close:hover { color: var(--color-text); }

.gsa-popup-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Shipping note on product pages (v7.14.39) */
.produkt-versand-hinweis {
  font-size: 0.875rem;
  color: #374151;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
  border-radius: 0 4px 4px 0;
}
