/* homeoffice-guide.de — Main Stylesheet */
:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #ecfeff;
  --accent: #14b8a6;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --radius: 8px;
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.35rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.logo svg { width: 28px; height: 28px; color: var(--primary); }
.logo span { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--text); }
.main-nav ul { display: flex; list-style: none; gap: .25rem; }
.main-nav a { padding: .5rem .75rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; color: var(--text-light); transition: all .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-light); }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ''; border: solid var(--text-light); border-width: 0 1.5px 1.5px 0; display: inline-block; padding: 2.5px; transform: rotate(45deg); margin-left: 4px; vertical-align: 1px; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 220px; padding: .5rem 0; z-index: 200; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: .5rem 1rem; font-size: .875rem; }
.dropdown-menu a:hover { background: var(--bg-alt); }

/* Hero */
.hero { padding: 4rem 0 3rem; text-align: center; background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%); }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; color: var(--text-light); max-width: 640px; margin: 0 auto 2rem; }
.hero-cta { display: inline-flex; align-items: center; gap: .5rem; background: var(--primary); color: #fff; padding: .875rem 2rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; transition: background .2s; }
.hero-cta:hover { background: var(--primary-dark); color: #fff; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.section-subtitle { color: var(--text-light); margin-bottom: 2rem; font-size: 1.05rem; }

/* Category Cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.cat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--primary); }
.cat-card-icon svg { width: 24px; height: 24px; }
.cat-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.cat-card h3 a { color: var(--text); }
.cat-card h3 a:hover { color: var(--primary); }
.cat-card p { font-size: .9rem; color: var(--text-light); margin-bottom: 1rem; }
.cat-card-link { font-size: .875rem; font-weight: 600; display: inline-flex; align-items: center; gap: .25rem; }

/* Article Cards */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.article-card:hover { box-shadow: var(--shadow-md); }
.article-card-img { aspect-ratio: 16/9; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--text-light); }
.article-card-img svg { width: 48px; height: 48px; opacity: .3; }
.article-card-body { padding: 1.25rem; }
.article-card-tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); margin-bottom: .5rem; }
.article-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.4; }
.article-card-body h3 a { color: var(--text); }
.article-card-body h3 a:hover { color: var(--primary); }
.article-card-body p { font-size: .875rem; color: var(--text-light); }

/* Product Cards */
.product-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.product-badge { display: inline-block; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 100px; margin-bottom: 1rem; }
.product-badge.silver { background: var(--text-light); }
.product-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.product-meta { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: .875rem; color: var(--text-light); }
.product-rating { display: flex; align-items: center; gap: .25rem; color: #f59e0b; }
.product-rating svg { width: 16px; height: 16px; fill: currentColor; }
.product-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.pros h4, .cons h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.pros h4 { color: #16a34a; }
.cons h4 { color: #dc2626; }
.pros li, .cons li { font-size: .85rem; margin-bottom: .25rem; padding-left: 1rem; position: relative; list-style: none; }
.pros li::before { content: '+'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.cons li::before { content: '\2013'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }
.product-cta { display: inline-flex; align-items: center; gap: .5rem; background: #f59e0b; color: #fff; padding: .625rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; transition: background .2s; }
.product-cta:hover { background: #d97706; color: #fff; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .875rem; }
.comparison-table th, .comparison-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--bg-alt); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-light); position: sticky; top: 64px; }
.comparison-table tr:hover td { background: var(--primary-light); }
.comparison-table .winner { font-weight: 600; color: var(--primary); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Breadcrumbs */
.breadcrumbs { padding: 1rem 0; font-size: .85rem; color: var(--text-light); }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 .375rem; }

/* Article Content */
.article-header { padding: 2.5rem 0 1.5rem; }
.article-header h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.25; margin-bottom: .75rem; }
.article-header .meta { font-size: .9rem; color: var(--text-light); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.article-content { max-width: 780px; }
.article-content h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; font-weight: 700; }
.article-content h3 { font-size: 1.15rem; margin: 2rem 0 .75rem; font-weight: 600; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: .375rem; }
.article-content blockquote { border-left: 3px solid var(--primary); padding: 1rem 1.25rem; background: var(--primary-light); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }

/* Info Box / Callout */
.info-box { background: var(--primary-light); border: 1px solid #a5f3fc; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; display: flex; gap: 1rem; align-items: flex-start; }
.info-box svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.info-box p { margin: 0; font-size: .9rem; }

/* Affiliate Disclosure */
.affiliate-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .825rem; color: #92400e; }

/* Footer */
.site-footer { background: var(--text); color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #e2e8f0; font-size: .9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: #94a3b8; font-size: .875rem; padding: .25rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }

/* Cookie Banner */
.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--text); color: #e2e8f0; padding: 1.25rem; z-index: 9999; box-shadow: 0 -4px 12px rgba(0,0,0,.2); }
.cookie-banner.show { display: block; }
.cookie-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie-inner p { font-size: .875rem; flex: 1; min-width: 280px; }
.cookie-inner a { color: var(--accent); }
.cookie-btns { display: flex; gap: .75rem; }
.cookie-btn { padding: .5rem 1.25rem; border-radius: var(--radius); border: none; cursor: pointer; font-weight: 600; font-size: .875rem; }
.cookie-accept { background: var(--primary); color: #fff; }
.cookie-decline { background: #334155; color: #e2e8f0; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 1rem; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .hero { padding: 2.5rem 0 2rem; }
  .product-pros-cons { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}
