/* ============================================================
   OPNsense – Subdomain Stylesheet
   Security-Insider-inspiriertes Design: Dunkel, professionell,
   technisch mit OPNsense-Orange als Akzent
   ============================================================ */

:root {
  --ops-dark:        #0f1724;
  --ops-dark-mid:    #1a2332;
  --ops-dark-light:  #243044;
  --ops-surface:     #1e293b;
  --ops-border:      #334155;
  --ops-orange:      #d94f00;
  --ops-orange-mid:  #ea6a1f;
  --ops-orange-light:#fbbf24;
  --ops-orange-pale: #fff7ed;
  --ops-blue:        #3b82f6;
  --ops-blue-light:  #93c5fd;
  --ops-cream:       #f1f5f9;
  --ops-white:       #FFFFFF;
  --ops-text:        #0f172a;
  --ops-text-muted:  #64748b;
  --ops-text-on-dark:#cbd5e1;
  --ops-shadow:      rgba(15, 23, 36, 0.25);
}

/* -- Base -- */
body {
  background-color: var(--ops-cream);
  color: var(--ops-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--ops-orange); text-decoration: none; }
a:hover { color: var(--ops-orange-mid); text-decoration: underline; }

/* -- Navbar -- */
.ops-navbar {
  background: var(--ops-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  border-bottom: 3px solid var(--ops-orange);
}

.ops-navbar .container {
  display: flex;
  align-items: center;
}

.ops-navbar .navbar-brand {
  color: var(--ops-white) !important;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0;
}

.ops-navbar .navbar-brand .brand-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.ops-navbar .nav-link {
  color: var(--ops-text-on-dark) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.9rem 0.9rem !important;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.ops-navbar .nav-link:hover,
.ops-navbar .nav-link.active {
  color: var(--ops-white) !important;
  border-bottom-color: var(--ops-orange);
  background: rgba(255,255,255,0.05);
}

.ops-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.2);
}

.ops-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* -- Hero -- */
.ops-hero {
  background: linear-gradient(135deg, var(--ops-dark) 0%, #162033 45%, var(--ops-dark-light) 100%);
  color: var(--ops-white);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.ops-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20h20v20H20zM0 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ops-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,79,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ops-hero-badge {
  display: inline-block;
  background: rgba(217,79,0,0.2);
  border: 1px solid rgba(217,79,0,0.4);
  color: var(--ops-orange-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

.ops-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

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

.ops-hero p.lead {
  font-size: 1.1rem;
  color: var(--ops-text-on-dark);
  max-width: 600px;
  line-height: 1.7;
}

.ops-hero-btn-primary {
  background: var(--ops-orange);
  color: var(--ops-white) !important;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none !important;
  display: inline-block;
}

.ops-hero-btn-primary:hover {
  background: var(--ops-orange-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,79,0,0.35);
  color: var(--ops-white) !important;
}

.ops-hero-btn-outline {
  background: transparent;
  color: var(--ops-text-on-dark) !important;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  border: 2px solid var(--ops-border);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none !important;
  display: inline-block;
}

.ops-hero-btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--ops-text-on-dark);
  color: var(--ops-white) !important;
}

.ops-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.ops-hero-stat {
  text-align: center;
}

.ops-hero-stat .stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ops-orange);
}

.ops-hero-stat .stat-label {
  font-size: 0.72rem;
  color: var(--ops-text-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.ops-hero-visual {
  font-size: 7rem;
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  opacity: 0.9;
}

/* -- Info Bar -- */
.ops-info-bar {
  background: var(--ops-dark-mid);
  border-bottom: 1px solid var(--ops-border);
  padding: 1rem 0;
}

.ops-info-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem;
  color: var(--ops-text-on-dark);
  border-right: 1px solid var(--ops-border);
}

.ops-info-item:last-child { border-right: none; }

.ops-info-item .info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ops-info-item .info-text {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--ops-text-on-dark);
}

.ops-info-item .info-text strong {
  display: block;
  color: var(--ops-white);
  font-size: 0.85rem;
}

/* -- Section Headers -- */
.ops-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.ops-section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ops-text);
  margin: 0;
  white-space: nowrap;
}

.ops-section-header .section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--ops-orange), transparent);
  border-radius: 2px;
}

.ops-section-header .section-icon {
  font-size: 1.3rem;
  color: var(--ops-orange);
}

/* -- Category Pills -- */
.ops-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.ops-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid #d1d5db;
  color: var(--ops-text-muted);
  background: var(--ops-white);
  text-decoration: none !important;
  transition: all 0.2s;
}

.ops-cat-pill:hover,
.ops-cat-pill.active {
  background: var(--ops-dark);
  border-color: var(--ops-dark);
  color: var(--ops-white) !important;
}

/* -- Article Cards -- */
.ops-article-card {
  background: var(--ops-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.ops-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--ops-shadow);
}

.ops-article-card .card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ops-dark) 0%, var(--ops-dark-light) 100%);
  flex-shrink: 0;
}

.ops-article-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ops-article-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.ops-article-card .card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.3;
  color: var(--ops-text-on-dark);
}

.ops-article-card .card-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--ops-orange);
  color: var(--ops-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ops-article-card .card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ops-article-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ops-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ops-article-card .card-excerpt {
  font-size: 0.84rem;
  color: var(--ops-text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ops-article-card .card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.76rem;
  color: var(--ops-text-muted);
  background: #f8fafc;
}

.ops-article-card .read-more-link {
  color: var(--ops-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
}

.ops-article-card .read-more-link:hover { text-decoration: underline; }

/* -- Featured Article -- */
.ops-featured-card {
  background: var(--ops-white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px var(--ops-shadow);
  display: flex;
  min-height: 280px;
}

.ops-featured-card .featured-img {
  width: 45%;
  background: linear-gradient(135deg, var(--ops-dark), var(--ops-dark-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.ops-featured-card .featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ops-featured-card .featured-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ops-featured-badge {
  display: inline-block;
  background: var(--ops-orange);
  color: var(--ops-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.8rem;
}

.ops-featured-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ops-text);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.ops-featured-card p {
  color: var(--ops-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.ops-btn-primary {
  display: inline-block;
  background: var(--ops-orange);
  color: var(--ops-white) !important;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 5px;
  text-decoration: none !important;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}

.ops-btn-primary:hover {
  background: var(--ops-orange-mid);
  transform: translateY(-1px);
}

/* -- Category Cards -- */
.ops-cat-card {
  background: var(--ops-white);
  border-radius: 8px;
  padding: 1.4rem;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  display: block;
  transition: all 0.25s;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ops-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ops-orange);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.ops-cat-card:hover::before {
  transform: scaleY(1);
}

.ops-cat-card:hover {
  border-color: var(--ops-orange);
  box-shadow: 0 6px 20px var(--ops-shadow);
  transform: translateY(-3px);
}

.ops-cat-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  display: block;
}

.ops-cat-card .cat-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ops-text);
  margin-bottom: 0.3rem;
}

.ops-cat-card .cat-count {
  font-size: 0.78rem;
  color: var(--ops-text-muted);
}

.ops-cat-card .cat-arrow {
  margin-top: 0.6rem;
  color: var(--ops-orange);
  font-weight: 700;
  font-size: 1rem;
}

/* -- Article Page -- */
.ops-article-hero {
  background: linear-gradient(135deg, var(--ops-dark), var(--ops-dark-light));
  color: var(--ops-white);
  padding: 3.5rem 0 3rem;
}

.ops-article-hero .breadcrumb-item a { color: var(--ops-text-on-dark); }
.ops-article-hero .breadcrumb-item.active { color: rgba(255,255,255,0.55); }
.ops-article-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

.ops-article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.ops-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ops-text-on-dark);
}

.ops-article-meta-bar .meta-cat-badge {
  background: var(--ops-orange);
  color: var(--ops-white);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--ops-white) !important;
}

/* -- Article Content -- */
.ops-article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ops-text);
}

.ops-article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ops-dark);
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ops-orange);
}

.ops-article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ops-text);
  margin: 1.5rem 0 0.5rem;
}

.ops-article-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ops-article-content blockquote {
  border-left: 4px solid var(--ops-orange);
  background: var(--ops-orange-pale);
  padding: 1rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  color: var(--ops-text-muted);
  font-style: italic;
}

.ops-article-content ul, .ops-article-content ol {
  padding-left: 1.5rem;
}

.ops-article-content li { margin-bottom: 0.4rem; }

.ops-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.ops-article-content th {
  background: var(--ops-dark);
  color: var(--ops-white);
  padding: 0.7rem 1rem;
  text-align: left;
}

.ops-article-content td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.ops-article-content tr:hover td { background: #f8fafc; }

.ops-article-content code {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.88em;
}

.ops-article-content pre {
  background: var(--ops-dark);
  color: #e2e8f0;
  padding: 1.2rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid var(--ops-orange);
}

.ops-article-content pre code {
  background: transparent;
  padding: 0;
}

/* -- Sidebar -- */
.ops-sidebar-box {
  background: var(--ops-white);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.ops-sidebar-box h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ops-dark);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ops-orange);
}

/* -- Affiliate Cards -- */
.ops-affiliate-card {
  background: var(--ops-white);
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.ops-affiliate-card:hover {
  box-shadow: 0 8px 28px var(--ops-shadow);
  transform: translateY(-4px);
}

.ops-affiliate-card .aff-img-wrap {
  height: 160px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.ops-affiliate-card .aff-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.ops-affiliate-card .aff-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ops-affiliate-card .aff-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ops-text);
  margin-bottom: 0.4rem;
}

.ops-affiliate-card .aff-desc {
  font-size: 0.8rem;
  color: var(--ops-text-muted);
  flex: 1;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.ops-affiliate-card .aff-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ops-orange);
  margin-bottom: 0.7rem;
}

.ops-affiliate-card .aff-btn {
  display: block;
  text-align: center;
  background: var(--ops-orange);
  color: var(--ops-white) !important;
  padding: 0.55rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: background 0.2s;
}

.ops-affiliate-card .aff-btn:hover { background: var(--ops-orange-mid); }

.ops-affiliate-card .aff-attribution {
  text-align: center;
  font-size: 0.68rem;
  color: var(--ops-text-muted);
  padding: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

/* -- Category Page -- */
.ops-cat-hero {
  background: linear-gradient(135deg, var(--ops-dark), var(--ops-dark-light));
  color: var(--ops-white);
  padding: 3rem 0;
}

.ops-cat-hero h1 { font-size: 2rem; font-weight: 800; }

/* -- Footer -- */
.ops-footer {
  background: var(--ops-dark);
  color: var(--ops-text-on-dark);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.ops-footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ops-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.ops-footer p { font-size: 0.82rem; line-height: 1.6; color: var(--ops-text-on-dark); }

.ops-footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ops-orange);
  margin-bottom: 0.75rem;
}

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

.ops-footer ul li { margin-bottom: 0.4rem; }

.ops-footer a {
  color: var(--ops-text-on-dark);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.ops-footer a:hover { color: var(--ops-orange); }

.ops-footer-bottom {
  border-top: 1px solid var(--ops-border);
  padding-top: 1.2rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ops-text-on-dark);
}

.ops-footer-version a {
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
}

/* -- Breadcrumb -- */
.ops-breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0.5rem;
}

/* -- Responsive -- */
@media (max-width: 767px) {
  .ops-hero { padding: 3rem 0 2.5rem; }
  .ops-hero-visual { font-size: 4rem; }
  .ops-hero-stats { gap: 1.5rem; }
  .ops-featured-card { flex-direction: column; }
  .ops-featured-card .featured-img { width: 100%; height: 200px; }
  .ops-info-item { border-right: none; border-bottom: 1px solid var(--ops-border); }
  .ops-info-item:last-child { border-bottom: none; }
}
