/* patholo — Patent Knowledge for Hogan Lovells */

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #64647a;
    --color-accent: #65a30d;          /* lime green */
    --color-accent-light: #84cc16;
    --color-border: #e5e5ed;
    --color-hero-bg: #1a2e1a;         /* dark forest */
    --color-hero-text: #ffffff;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --max-width: 1080px;
    --sidebar-collapsed: 64px;
    --sidebar-expanded: 240px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */

.header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.logo-mark {
    font-family: var(--font-mono);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-logout {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
}

.nav-logout:hover {
    color: var(--color-accent);
}

.nav-lang {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    user-select: none;
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

.lang-btn:hover {
    color: var(--color-accent-light);
}

.lang-active {
    color: var(--color-accent);
    font-weight: 600;
    cursor: default;
}

.lang-sep {
    margin: 0 0.25rem;
}

.timeline-trigger-date {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* --- Hero --- */

.hero {
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    padding: 5rem 0 4.5rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-accent {
    font-weight: 400;
    opacity: 0.85;
}

.hero-sub {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 560px;
}


/* --- Card Grid --- */

.sections {
    padding: 4rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-light);
}

.card-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}


.card p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.section-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}


.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    border-color: var(--color-accent);
}

/* --- Offices --- */

.offices {
    padding: 0 0 4rem;
}

.offices h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}


.office-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.office-list span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding-left: 0.85rem;
}

.office-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* --- Footer --- */

.footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* --- Login --- */

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.login-tabs {
    display: flex;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--color-border);
}

.login-tab {
    flex: 1;
    padding: 0.6rem 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.login-tab:hover {
    color: var(--color-text);
}

.login-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.login-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.login-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.35rem;
    margin-top: 0.75rem;
}

.login-label:first-child {
    margin-top: 0;
}

.login-input {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    color: var(--color-text);
    background: var(--color-bg);
}

.login-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.15);
}

.login-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.login-button {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    margin-top: 1.25rem;
    border: none;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.login-button:hover {
    background: var(--color-accent-light);
}

.login-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1.5rem;
}

/* --- Nav Links --- */

.nav-link {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* --- Sidebar --- */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-collapsed);
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    z-index: 40;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 150ms ease;
}

.sidebar.expanded,
.sidebar.pinned {
    width: var(--sidebar-expanded);
}

.sidebar-header {
    display: flex;
    align-items: center;
    height: 3.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    flex: 1;
    min-width: 0;
    height: 100%;
}

.sidebar-logo .logo-text {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.sidebar-pin {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.35rem;
    margin-right: 0.75rem;
    border-radius: 4px;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, color 150ms ease, background 150ms ease;
}

.sidebar.expanded .sidebar-pin,
.sidebar.pinned .sidebar-pin {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-pin:hover {
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.04);
}

.sidebar-pin svg {
    width: 16px;
    height: 16px;
    display: block;
}

.sidebar.pinned .sidebar-pin {
    color: var(--color-accent);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    transition: color 150ms ease, background 150ms ease;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-sans);
    width: 100%;
    text-align: left;
    padding: 0;
}

.sidebar-item:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.03);
}

.sidebar-item.active {
    color: var(--color-accent);
}

.sidebar-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--color-accent);
    border-radius: 0 2px 2px 0;
}

.sidebar-icon {
    width: var(--sidebar-collapsed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-label {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 150ms ease;
    overflow: hidden;
    padding-right: 1rem;
}

.sidebar.expanded .sidebar-label,
.sidebar.pinned .sidebar-label {
    opacity: 1;
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}

.sidebar-lang-item {
    cursor: default;
}

.sidebar-lang-item:hover {
    background: transparent;
    color: var(--color-text-muted);
}

.sidebar-lang {
    display: flex;
    align-items: center;
}

.sidebar-hamburger {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background 150ms ease;
}

.sidebar-hamburger:hover {
    background: var(--color-accent-light);
}

.sidebar-hamburger svg {
    width: 22px;
    height: 22px;
}

.sidebar-overlay {
    display: none;
}

/* Layout: pages with sidebar */

.has-sidebar {
    padding-left: var(--sidebar-collapsed);
    transition: padding-left 150ms ease;
}

.has-sidebar.sidebar-pinned {
    padding-left: var(--sidebar-expanded);
}

.has-sidebar .tool-results {
    top: 1.5rem;
}

.no-scroll {
    overflow: hidden;
}

/* --- Tool Pages --- */

.tool-page {
    padding: 2rem 0 4rem;
}

.tool-header {
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tool-subtitle {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.tool-input {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-results {
    position: sticky;
    top: 4.5rem;
}

/* Input sections */

.input-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}


.input-section select {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    cursor: pointer;
}

.input-section select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.15);
}

/* Streitwert */

.streitwert-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.streitwert-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.streitwert-prefix {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.streitwert-field {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
    width: 100%;
    max-width: 240px;
}

.streitwert-field:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.15);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--color-border);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    border: 2px solid var(--color-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    border: 2px solid var(--color-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.streitwert-presets {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.streitwert-presets button {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.streitwert-presets button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.streitwert-presets button.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Instance cards */

.instance-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: border-color 0.15s ease;
}

.instance-card.enabled {
    border-color: var(--color-accent-light);
}

.instance-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
}

.instance-header input[type="checkbox"] {
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.instance-header label {
    flex: 1;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.instance-header label strong {
    font-weight: 500;
}

.instance-toggle {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.2rem;
}

.instance-details {
    padding: 0.75rem 0.85rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.instance-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.field-row label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text);
}

.field-row select {
    font-size: 0.82rem;
    padding: 0.3rem 0.5rem;
}

.field-row input[type="checkbox"] {
    accent-color: var(--color-accent);
}

/* Results panel */

.result-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.result-total-section {
    text-align: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-accent);
}

.result-total-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.result-total {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent);
}

.result-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    padding: 2rem 0;
}

.result-summary {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.result-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    color: var(--color-text-muted);
}

.result-section {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.result-section:last-child {
    border-bottom: none;
}

.result-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-section-label {
    font-size: 0.88rem;
    font-weight: 600;
}

.result-section-total {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-accent);
}

.result-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 0.15rem 0;
    color: var(--color-text-muted);
}

.result-detail-sum {
    font-weight: 600;
    color: var(--color-text);
    padding-top: 0.25rem;
    border-top: 1px dotted var(--color-border);
    margin-top: 0.15rem;
}

.result-attorney-detail {
    margin: 0.4rem 0;
    padding-left: 0.5rem;
    border-left: 2px solid var(--color-border);
}

.result-detail-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.result-detail-note {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 0.25rem;
}

/* Result action buttons */

.result-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.result-action-btn {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.result-action-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.result-action-btn--accent {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.result-action-btn--accent:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: #fff;
}

.result-action-btn.copied {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Scenario comparison */

.comparison-container {
    margin-top: 2rem;
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.comparison-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.comparison-col-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.comparison-diff {
    margin-top: 1.5rem;
}

.comparison-diff-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.comparison-diff-card.diff-decrease {
    border-color: var(--color-accent);
    background: rgba(101, 163, 13, 0.04);
}

.comparison-diff-card.diff-increase {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.04);
}

.comparison-diff-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.comparison-diff-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
}

.diff-decrease .comparison-diff-value {
    color: var(--color-accent);
}

.diff-increase .comparison-diff-value {
    color: #e53e3e;
}

.diff-neutral .comparison-diff-value {
    color: var(--color-text-muted);
}

.comparison-diff-pct {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.comparison-diff-detail {
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

/* Print header/footer (hidden on screen) */

.print-header,
.print-footer {
    display: none;
}

/* --- Fristenrechner --- */

.fristen-wizard {
    max-width: 720px;
}

.wizard-step {
    margin-bottom: 2rem;
}

.wizard-step-label {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.proceeding-group {
    margin-bottom: 1.25rem;
}

.proceeding-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}


.proceeding-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proceeding-btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.proceeding-btn:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}

.proceeding-btn.active {
    border-color: var(--color-accent);
    background: rgba(101, 163, 13, 0.06);
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.15);
}

.proceeding-btn strong {
    font-weight: 500;
}

/* Date input */

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.date-field-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    min-width: 160px;
}

.trigger-event-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-accent);
}

.date-input {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
}

.date-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.15);
}

.calculate-btn {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
    align-self: flex-start;
}

.calculate-btn:hover {
    background: var(--color-accent-light);
}

.reset-btn {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.reset-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Timeline */

.timeline-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.timeline-header strong {
    font-size: 1rem;
}

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 0.75rem;
    min-height: 4rem;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14px;
    flex-shrink: 0;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-surface);
    box-shadow: 0 0 0 2px var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.dot-root {
    width: 14px;
    height: 14px;
    margin-top: 0.2rem;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: var(--color-border);
    margin: 0.25rem 0;
}

.timeline-content {
    flex: 1;
    padding-bottom: 1rem;
}

.timeline-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-name {
    font-size: 0.88rem;
    font-weight: 500;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.timeline-court-set {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-style: italic;
    text-align: right;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.party-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.1rem 0.45rem;
    border-radius: 99px;
}

.party-claimant {
    background: #dbeafe;
    color: #1e40af;
}

.party-defendant {
    background: #fef3c7;
    color: #92400e;
}

.party-court {
    background: #f3e8ff;
    color: #6b21a8;
}

.party-both {
    background: #e5e7eb;
    color: #374151;
}

.optional-badge {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
    background: #fef3c7;
    color: #92400e;
}

.timeline-rule {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.timeline-adjusted {
    font-size: 0.78rem;
    color: #d97706;
    margin-top: 0.2rem;
}

.timeline-notes {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 0.15rem;
}

/* --- Responsive: Sidebar --- */

@media (max-width: 1023px) {
    .sidebar {
        width: var(--sidebar-expanded);
        transform: translateX(-100%);
        transition: transform 150ms ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar .sidebar-label {
        opacity: 1;
    }

    .sidebar .sidebar-pin {
        display: none;
    }

    .sidebar-hamburger {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 35;
        opacity: 0;
        pointer-events: none;
        transition: opacity 150ms ease;
    }

    .sidebar-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .has-sidebar,
    .has-sidebar.sidebar-pinned {
        padding-left: 0;
    }
}

/* --- Glossar --- */

.glossar-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.btn-suggest {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.btn-suggest:hover {
    background: var(--color-accent-light);
}

.btn-suggest-icon {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.glossar-controls {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.glossar-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.glossar-search-icon {
    position: absolute;
    left: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--color-text-muted);
    pointer-events: none;
}

.glossar-search {
    width: 100%;
    padding: 0.65rem 0.75rem 0.65rem 2.5rem;
    font-size: 0.92rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.15s ease;
}

.glossar-search:focus {
    border-color: var(--color-accent);
}

.glossar-count {
    position: absolute;
    right: 0.75rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.glossar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-pill {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: 99px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.filter-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-pill.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.glossar-table-wrap {
    overflow-x: auto;
}

.glossar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.glossar-table thead th {
    text-align: left;
    padding: 0.7rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.glossar-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.1s ease;
}

.glossar-table tbody tr:hover {
    background: rgba(101, 163, 13, 0.04);
}

.glossar-table td {
    padding: 0.65rem 0.75rem;
    vertical-align: top;
}

.glossar-de {
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.glossar-en {
    color: var(--color-text);
}

.glossar-def {
    color: var(--color-text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
    max-width: 380px;
}

.glossar-no-def {
    color: var(--color-border);
}

.glossar-col-actions {
    width: 2.5rem;
}

.glossar-actions {
    text-align: center;
}

.glossar-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    opacity: 0.4;
}

.glossar-table tbody tr:hover .glossar-feedback-btn {
    opacity: 1;
}

.glossar-feedback-btn:hover {
    background: rgba(101, 163, 13, 0.1);
    color: var(--color-accent);
    opacity: 1;
}

.glossar-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Modal --- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-card {
    background: var(--color-surface);
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--color-text);
}

#suggest-form {
    padding: 1.25rem 1.5rem 1.5rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--color-accent);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.btn-cancel {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: border-color 0.15s ease;
}

.btn-cancel:hover {
    border-color: var(--color-text-muted);
}

.btn-submit {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.15s ease;
}

.btn-submit:hover {
    background: var(--color-accent-light);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-msg {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    min-height: 1.25rem;
}

.form-msg-error {
    color: #dc2626;
}

.form-msg-success {
    color: var(--color-accent);
}

/* --- Responsive: General --- */

/* --- Downloads --- */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.download-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.download-card:hover .download-btn {
    background: var(--color-accent);
    color: #fff;
}

.download-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-accent);
}

.download-icon svg {
    width: 100%;
    height: 100%;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.download-info p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.download-action {
    flex-shrink: 0;
}

.download-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: var(--radius);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .grid, .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .office-list {
        gap: 1.25rem;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-results {
        position: static;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .proceeding-btns {
        flex-direction: column;
    }

    .date-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .timeline-item-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .glossar-header-row {
        flex-direction: column;
    }

    .glossar-de {
        white-space: normal;
    }

    .glossar-def {
        max-width: none;
    }

    .glossar-table {
        font-size: 0.82rem;
    }

    .glossar-table td,
    .glossar-table thead th {
        padding: 0.5rem;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .links-header-row {
        flex-direction: column;
        gap: 1rem;
    }

    .links-header-actions {
        align-self: flex-start;
    }

    .links-category-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .result-actions {
        flex-direction: column;
    }
}

/* --- Links --- */

.links-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.links-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.links-pending-badge {
    font-size: 0.78rem;
    color: var(--color-accent);
    background: rgba(101, 163, 13, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.links-suggest-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.links-suggest-btn:hover {
    background: var(--color-accent-light);
}

.links-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.links-filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.links-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.links-filter-btn.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.links-category-heading {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 2rem 0 0.75rem;
    color: var(--color-text);
}

.links-category-heading:first-child {
    margin-top: 0;
}

.links-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.link-card {
    display: flex;
    align-items: stretch;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.link-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.link-card-placeholder {
    opacity: 0.55;
    pointer-events: auto;
}

.link-card-body {
    flex: 1;
    min-width: 0;
}

.link-card-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}

.link-card-external {
    flex-shrink: 0;
    color: var(--color-text-muted);
    opacity: 0.6;
}

.link-card:hover .link-card-external {
    color: var(--color-accent);
    opacity: 1;
}

.link-card-desc {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.link-card-feedback {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding: 0.25rem;
    margin-left: 0.5rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.link-card:hover .link-card-feedback {
    opacity: 0.5;
}

.link-card-feedback:hover {
    opacity: 1 !important;
    color: var(--color-accent);
}

.links-empty {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 2rem 0;
}

/* --- Modals --- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--color-surface);
    border-radius: calc(var(--radius) * 1.5);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-content-sm {
    max-width: 380px;
}

.modal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-field textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: var(--color-accent-light);
}

.btn-secondary {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
}

.form-message {
    font-size: 0.82rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
}

.form-message-success {
    color: var(--color-accent);
}

.form-message-error {
    color: #dc2626;
}

/* --- Print --- */

@media print {
    .header, .footer, .sidebar, .sidebar-hamburger, .sidebar-overlay,
    .tool-input, .result-actions, .reset-btn, #step-1, #step-2,
    .calculate-btn, .modal-overlay, .glossar-feedback-btn, .btn-suggest,
    .comparison-header button, .comparison-container {
        display: none !important;
    }

    .print-header, .print-footer {
        display: block !important;
    }

    .print-header {
        padding: 1.5rem 0 1rem;
        border-bottom: 2px solid #65a30d;
        margin-bottom: 1.5rem;
    }

    .print-header-brand {
        font-size: 1.2rem;
        color: #1a1a2e;
    }

    .print-header-brand strong {
        color: #65a30d;
        font-size: 1.4rem;
    }

    .print-header-meta {
        margin-top: 0.75rem;
        font-size: 0.85rem;
        color: #64647a;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
    }

    .print-footer {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e5ed;
        font-size: 0.75rem;
        color: #64647a;
        display: flex;
        justify-content: space-between;
    }

    .has-sidebar {
        padding-left: 0 !important;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-results {
        position: static;
    }

    .tool-header {
        display: none;
    }

    .result-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    body {
        font-size: 11pt;
        color: #000;
    }

    @page {
        margin: 2cm;
        size: A4;
    }
}

/* --- Geb\u00fchrentabellen --- */

.gebuehren-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.gebuehren-lookup {
    margin-bottom: 1.5rem;
}

.gebuehren-lookup label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.gebuehren-lookup-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 480px;
}

.gebuehren-currency {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

.gebuehren-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: var(--color-surface);
    transition: border-color 0.15s;
}

.gebuehren-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.15);
}

.btn-lookup {
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.btn-lookup:hover {
    background: var(--color-accent-light);
}

/* Lookup result cards */
.gebuehren-lookup-result {
    margin-bottom: 1.5rem;
}

.gebuehren-lookup-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gebuehren-lookup-card {
    background: var(--color-surface);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 160px;
}

.gebuehren-lookup-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gebuehren-lookup-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-accent);
}

/* Tabs */
.gebuehren-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.gebuehren-tab {
    padding: 0.625rem 1.25rem;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.gebuehren-tab:hover {
    color: var(--color-text);
}

.gebuehren-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Panels */
.gebuehren-panel {
    min-height: 200px;
}

.gebuehren-versions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gebuehren-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-text);
}

.gebuehren-section-title:first-child {
    margin-top: 0;
}

/* Fee tables */
.gebuehren-table-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: auto;
    max-height: 520px;
}

.gebuehren-table-wrap-short {
    max-height: none;
}

.gebuehren-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.gebuehren-table th,
.gebuehren-table td {
    padding: 0.5rem 0.875rem;
    text-align: right;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.gebuehren-table th {
    background: var(--color-bg);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
}

.gebuehren-table th:first-child,
.gebuehren-table td:first-child {
    text-align: left;
}

.gebuehren-table tbody tr:hover {
    background: rgba(101, 163, 13, 0.04);
}

.gebuehren-table tbody tr.highlight {
    background: rgba(101, 163, 13, 0.12);
    font-weight: 600;
}

.gebuehren-table tbody tr.highlight td {
    border-bottom-color: var(--color-accent);
}

.gebuehren-table-compact th,
.gebuehren-table-compact td {
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
}

/* UPC summary cards */
.gebuehren-upc-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.gebuehren-upc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    min-width: 160px;
    flex: 1;
}

.gebuehren-upc-card-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.gebuehren-upc-card-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Multipliers section */
.gebuehren-multipliers {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.gebuehren-multipliers h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.gebuehren-multipliers-desc {
    font-size: 0.825rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .gebuehren-lookup-row {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .gebuehren-input {
        min-width: 0;
    }

    .gebuehren-lookup-cards {
        flex-direction: column;
    }

    .gebuehren-upc-cards {
        flex-direction: column;
    }

    .gebuehren-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .gebuehren-table th,
    .gebuehren-table td {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media print {
    .gebuehren-lookup,
    .gebuehren-tabs,
    .gebuehren-versions,
    .btn-suggest,
    .gebuehren-lookup-result,
    .modal-overlay {
        display: none !important;
    }

    .gebuehren-panel {
        display: block !important;
    }

    .gebuehren-table-wrap {
        max-height: none;
        overflow: visible;
        border: 1px solid #ccc;
    }
}
