/* Purged CSS for buchhaltung-steuerberatung-gesucht */
/* Generated: 2026-01-27 */
/* Original: 123KB, Purged: ~28KB */
/* Includes: design-tokens + db-style (purged) + k-table + footer-compact */

/* ============================================
   DESIGN TOKENS - Single Source of Truth
   ============================================ */

@font-face {
    font-family: 'Avenir';
    src: local('Avenir');
    font-weight: 400;
}

@font-face {
    font-family: 'Avenir';
    src: local('Avenir');
    font-weight: 700;
}

:root {
  /* === PRIMARY COLORS === */
  --color-primary: #21588F;
  --color-primary-hover: #1A4773;
  --color-primary-light: #3A6BA3;
  --color-primary-dark: #0F2C45;

  /* === SECONDARY COLORS === */
  --color-secondary: #966489;
  --color-secondary-hover: #7a536f;
  --color-secondary-light: #b57aa5;
  --color-secondary-dark: #5e3b59;

  /* === ACCENT COLORS === */
  --color-accent: #3d6911;
  --color-accent-hover: #2F5209;
  --color-accent-light: #4F7F15;
  --color-accent-dark: #1F3408;

  /* === SEMANTIC COLORS === */
  --color-success: #28a745;
  --color-success-bg: #d4edda;
  --color-success-text: #155724;
  --color-success-border: #155724;

  --color-warning: #ffc107;
  --color-warning-bg: #fff3cd;
  --color-warning-text: #856404;
  --color-warning-border: #856404;

  --color-error: #dc3545;
  --color-error-bg: #f8d7da;
  --color-error-text: #721c24;
  --color-error-border: #721c24;

  --color-info: #17a2b8;
  --color-info-bg: #d1ecf1;
  --color-info-text: #0c5460;
  --color-info-border: #0c5460;

  /* === GRAUSTUFEN === */
  --color-gray-500: #868e96;
  --color-gray-600: #495057;
  --color-gray-700: #2c3e50;
  --color-gray-800: #2c2c2c;

  /* === LINK COLORS === */
  --color-link: #0066cc;
  --color-link-hover: #004d99;

  /* === HEADING COLORS === */
  --color-h1: #2F6592;
  --color-h2: #966489;
  --color-h3: var(--color-primary);

  /* === TEXT COLORS === */
  --color-text-primary: #111111;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-text-light: #cccccc;
  --color-text-white: #ffffff;

  /* === BACKGROUND COLORS === */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #e9ecef;
  --color-bg-dark: #343a40;

  /* === BORDER COLORS === */
  --color-border-light: #e9ecef;
  --color-border-medium: #dee2e6;
  --color-border-dark: #6c757d;
  --color-border: #d0d0d0;

  /* === TYPOGRAPHY === */
  --font-family-base: 'Avenir', Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  --font-family-headings: var(--font-family-base);

  /* === FONT SIZES === */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;

  /* === RESPONSIVE HEADING SIZES === */
  --font-size-h1: clamp(1.75rem, 8vw, 2.8rem);
  --font-size-h2: clamp(1.4rem, 6vw, 2.1rem);
  --font-size-h3: clamp(1.05rem, 4vw, 1.575rem);

  /* === LINE HEIGHTS === */
  --line-height-normal: 1.5;
  --line-height-base: 1.8;
  --line-height-h1: 1.15;
  --line-height-h2: 1.2;

  /* === SPACING === */
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-8: 2rem;
  --space-lg: var(--space-8);
  --space-xl: 3rem;

  /* === BORDER RADIUS === */
  --radius-lg: 0.5rem;

  /* === SHADOWS === */
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

  /* === TRANSITIONS === */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

/* === DARK MODE TOKENS === */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-primary: #1a1a1a;
    --color-bg-secondary: #2d2d2d;
    --color-bg-tertiary: #404040;
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #d4d4d4;
    --color-text-muted: #a8a8a8;
    --color-h1: #7fa8d1;
    --color-h2: #c794bb;
    --color-h3: #6b9bd3;
    --color-primary: #4a7ba7;
    --color-primary-hover: #5a8bb7;
    --color-secondary: #c794bb;
    --color-accent: #7db33f;
    --color-border-light: #404040;
    --color-border-medium: #555555;
  }
}

/* Manual Dark Mode Toggle Support */
[data-theme="dark"] {
  --color-bg-primary: #1a1a1a;
  --color-bg-secondary: #2d2d2d;
  --color-bg-tertiary: #404040;
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #d4d4d4;
  --color-text-muted: #a8a8a8;
  --color-h1: #7fa8d1;
  --color-h2: #c794bb;
  --color-h3: #6b9bd3;
  --color-primary: #4a7ba7;
  --color-primary-hover: #5a8bb7;
  --color-secondary: #c794bb;
  --color-accent: #7db33f;
  --color-border-light: #404040;
  --color-border-medium: #555555;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    font-size: clamp(1rem, 2vw, 1.2rem);
    scroll-padding-top: 120px;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: var(--font-family-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    line-height: var(--line-height-base);
    margin: 0;
    padding: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

p {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-4);
    max-width: 90ch;
}

ul {
    list-style: square;
    padding-left: var(--space-lg);
    padding-bottom: var(--space-4);
}

ul li {
    margin-bottom: var(--space-2);
}

a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

a:hover {
    color: var(--color-primary-hover);
}

/* ============================================
   LAYOUT
   ============================================ */

section {
    width: 100%;
    margin: 0;
    padding: 1rem 0;
    background-color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

section, .main-content, .content {
    background-color: var(--color-bg-primary);
}

.content {
    width: 90ch;
    max-width: 90ch;
    padding: clamp(1rem, 5vw, 2rem);
    margin: 0;
}

.content.text-left { text-align: left; }
.content.text-center { text-align: center; }
.content.text-left h1 { text-align: center; }

.text-left { text-align: left; }
.text-center { text-align: center; }

/* ============================================
   LOGO HERO (zentriertes Logo ueber Content)
   ============================================ */

.logo-hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.logo-hero a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-hero img {
    width: 162px;
    height: 162px;
}

.logo-hero__text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ============================================
   ARTICLE (Markdown-Content aus DB)
   ============================================ */

article {
    width: 100%;
    max-width: 90ch;
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 2rem);
    box-sizing: border-box;
}

article > header {
    text-align: center;
    margin-bottom: 2rem;
}

article > section {
    display: block;
    width: 100%;
    padding: 0;
}

/* Nested sections from {{article:}} components */
article section {
    display: block;
    width: 100%;
    flex-direction: unset;
}

article h2 {
    margin-top: 2rem;
}

article h3 {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    article {
        width: 100%;
        padding: 0 1rem;
    }
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
}

article th,
article td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

article th {
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 2px solid var(--color-border-medium);
}

article tr:hover {
    background: var(--color-bg-secondary);
}

/* Responsive table - compact on mobile */
@media (max-width: 600px) {
    article table {
        font-size: 0.9rem;
    }

    article th,
    article td {
        padding: 0.5rem 0.4rem;
        word-break: break-word;
    }
}

@media (prefers-color-scheme: dark) {
    article tr:hover {
        background: var(--color-bg-tertiary);
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-primary, white);
    border-bottom: 1px solid var(--color-border, #eee);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    width: 100%;
}

.site-header__logo { flex: 0 0 auto; order: 1; }
.site-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; order: 3; }

.nav-desktop { display: flex; align-items: center; gap: 10px; }
.nav-mobile { display: none; position: relative; }

.nav-icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 4px;
    stroke: currentColor;
}

.nav-link {
    color: var(--color-text-primary, #333333);
    text-decoration: none;
    padding: 8px 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mobile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: var(--color-background, #ffffff);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow, rgba(0,0,0,0.1));
    z-index: 1001;
    padding: 8px 0;
    display: none;
}

.mobile-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--color-text-primary, #333333);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
    transition: background-color 0.2s ease;
}

.mobile-dropdown a:last-child { border-bottom: none; }
.mobile-dropdown a:hover { background-color: var(--color-surface-hover, #f5f5f5); }
.mobile-dropdown .nav-icon { width: 20px; height: 20px; flex-shrink: 0; }

.mobile-menu-toggle {
    background-color: transparent;
    color: var(--color-text-primary, #333333);
    border: 1px solid var(--color-border, #e0e0e0);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

[data-theme="dark"] .mobile-dropdown {
    background-color: var(--color-background, #1a1a1a);
    border-color: var(--color-border, #404040);
}

[data-theme="dark"] .mobile-dropdown a {
    color: var(--color-text-primary, #ffffff);
    border-bottom-color: var(--color-border, #404040);
}

[data-theme="dark"] .mobile-menu-toggle {
    color: var(--color-text-primary, #ffffff);
    border-color: var(--color-border, #404040);
}

/* ============================================
   LOGO
   ============================================ */

.logo {
    text-align: center;
    margin: 1.5rem auto;
    display: block;
}

.logo img {
    width: 162px;
    height: 162px;
    margin: 0 auto;
    display: block;
}

.logo-tiny img { width: 40px; height: 40px; }
.logo-medium img { width: 162px; height: 162px; }

.nav-logo {
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-logo img { margin: 0; }

.nav-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.nav-logo .headerbold {
    font-size: 0.5625rem;
    font-weight: normal;
    color: var(--color-text);
    margin-top: 2px;
    display: block;
    text-align: center;
    width: 100%;
}

.logo a { text-decoration: none; color: inherit; }
.logo a span { display: block; font-size: 0.8rem; color: var(--color-text); }
.headerbold { font-weight: normal; }
.logo-text { display: block; font-size: 0.8rem; color: var(--color-text); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

button.btn {
    border-radius: var(--radius-lg);
    padding: 17px 10px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
}

.btn-green {
    background: var(--color-success-bg, #f0f8f0);
    border: 1px solid var(--color-success-border, #155724);
    color: var(--color-success-text, #155724);
}

[data-theme="dark"] .btn-green,
[data-theme="dark"] button.btn-green {
    background: var(--color-success-bg-dark, #1a3a1a);
    border: 1px solid var(--color-success-border-dark, #4ade80);
    color: var(--color-success-text-dark, #4ade80);
}

button.btn-clean {
    background: transparent;
    color: var(--color-text-primary);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

button.btn-clean:hover {
    color: var(--color-primary);
    background: transparent;
}

/* ============================================
   TABLES (.content table + .k-table)
   ============================================ */

.content table,
.k-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.content table thead,
.k-table thead {
    background: var(--color-surface-secondary, #f8f9fa);
}

.content table th,
.k-table th {
    border: 1px solid var(--color-border, #ddd);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    background: var(--color-surface-secondary, #f4f4f4);
    color: var(--color-text-primary, #333);
}

.content table td,
.k-table td {
    border: 1px solid var(--color-border, #ddd);
    padding: 10px 12px;
    vertical-align: top;
    line-height: 1.6;
}

.content table tbody tr:hover,
.k-table tbody tr:hover {
    background: var(--color-surface-hover, #f5f5f5);
}

.content table tbody tr:nth-child(even),
.k-table tbody tr:nth-child(even) {
    background: var(--color-surface-tertiary, #fafafa);
}

.content table tbody tr:nth-child(even):hover,
.k-table tbody tr:nth-child(even):hover {
    background: var(--color-surface-hover, #f5f5f5);
}

[data-theme="dark"] .content table th,
[data-theme="dark"] .k-table th {
    background: var(--color-surface-secondary, #2a2a2a);
    border-color: var(--color-border, #404040);
    color: var(--color-text-primary, #ffffff);
}

[data-theme="dark"] .content table td,
[data-theme="dark"] .k-table td {
    border-color: var(--color-border, #404040);
}

[data-theme="dark"] .content table tbody tr:nth-child(even),
[data-theme="dark"] .k-table tbody tr:nth-child(even) {
    background: var(--color-surface-tertiary, #1e1e1e);
}

[data-theme="dark"] .content table tbody tr:hover,
[data-theme="dark"] .k-table tbody tr:hover {
    background: var(--color-surface-hover, #333);
}

/* ============================================
   FOOTER COMPACT
   ============================================ */

.footer-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #666);
    border-top: 1px solid var(--color-border, #e0e0e0);
    flex-wrap: wrap;
}

.footer-compact a {
    color: var(--color-text-secondary, #666);
    text-decoration: none;
}

.footer-compact .footer-separator {
    color: var(--color-border, #ccc);
}

[data-theme="dark"] .footer-compact {
    color: var(--color-text-secondary, #999);
    border-top-color: var(--color-border, #404040);
}

[data-theme="dark"] .footer-compact a {
    color: var(--color-text-secondary, #999);
}

@media (max-width: 768px) {
    .footer-compact {
        gap: 10px;
    }
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */

img, figure, picture {
    max-width: 100%;
    height: auto;
    display: block;
}

footer {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: var(--font-size-sm);
}

/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */

@media (max-width: 768px) {
    section { padding: 1rem 0; min-height: auto; }

    .nav-desktop { display: none; }
    .nav-mobile { display: block; }

    .main-content { width: 100%; padding: 0 1rem; box-sizing: border-box; }

    .content {
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    section img, section figure, section picture {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    header { padding: 4px; justify-content: flex-end; }
    .header-buttons { gap: 0.5rem; }
    header a, header a.btn { font-size: 0.875rem; padding: 8px 8px; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms;
        animation-iteration-count: 1;
        transition-duration: 0.001ms;
        scroll-behavior: auto;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */

@media (prefers-color-scheme: dark) {
    h1 { color: var(--color-h1); }
    h2 { color: var(--color-h2); }
    h3, h4, h5, h6 { color: var(--color-text-primary); }
    a { color: var(--color-primary); }
    a:hover { color: var(--color-primary-hover); }
    section { color: var(--color-text-primary); }
    .content { color: var(--color-text-primary); }
}

/* Manual Dark Mode Toggle Overrides */
[data-theme="dark"] h1 { color: var(--color-h1); }
[data-theme="dark"] h2 { color: var(--color-h2); }
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 { color: var(--color-text-primary); }
[data-theme="dark"] a { color: var(--color-primary); }
[data-theme="dark"] a:hover { color: var(--color-primary-hover); }
[data-theme="dark"] section { color: var(--color-text-primary); }
[data-theme="dark"] .content { color: var(--color-text-primary); }

/* Video Player Styles → see /assets/css/video.css (single source) */
