/* ====================================================
   Tillodo · Core CSS
   ==================================================== */

:root {
    /* Farben */
    --color-bg:           #FAFAF9;
    --color-bg-secondary: #F4F2EE;
    --color-bg-card:      #FFFFFF;
    --color-text:         #1F1F1D;
    --color-text-soft:    #5F5E5A;
    --color-text-muted:   #888780;
    --color-border:       #E5E3DC;
    --color-border-soft:  #EFEDE6;

    --color-primary:        #6366F1;
    --color-primary-hover:  #5256E5;
    --color-primary-soft:   #EEEDFE;
    --color-primary-text:   #3C3489;

    --color-success:      #0F6E56;
    --color-success-bg:   #E1F5EE;
    --color-warning:      #854F0B;
    --color-warning-bg:   #FAEEDA;
    --color-danger:       #A32D2D;
    --color-danger-bg:    #FBEAEA;
    --color-info:         #185FA5;
    --color-info-bg:      #E6F1FB;

    /* Maße */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow:    0 1px 3px rgba(0,0,0,0.05), 0 0 0 0.5px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.05);

    --container-width: 1100px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====================================================
   Reset & Basis
   ==================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
img { max-width: 100%; display: block; }

/* ====================================================
   Layout
   ==================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-narrow {
    max-width: 720px;
}
.main { min-height: calc(100vh - 320px); }

/* ====================================================
   Navbar
   ==================================================== */
.navbar {
    background: var(--color-bg-card);
    border-bottom: 0.5px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: var(--color-text);
}
.brand:hover { color: var(--color-text); }
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 17px;
}
.brand-name { font-size: 16px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 14px;
}
.nav-links > a {
    color: var(--color-text-soft);
    font-weight: 400;
}
.nav-links > a:hover { color: var(--color-text); }

.lang-switch {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.25rem;
    font-size: 12px;
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.lang-switch a {
    padding: 4px 9px;
    color: var(--color-text-muted);
    font-weight: 500;
}
.lang-switch a.active {
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
}

/* ====================================================
   Buttons
   ==================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border: 0.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1.4;
}
.btn-lg {
    padding: 0.7rem 1.5rem;
    font-size: 15px;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #fff;
}
.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-secondary:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}
.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-ghost:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}
.btn-block {
    display: flex;
    width: 100%;
}

/* ====================================================
   Hero
   ==================================================== */
.hero {
    padding: 4rem 0 5rem;
    text-align: center;
}
.demo-banner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: 13px;
    line-height: 1.5;
}
.demo-banner strong { font-weight: 500; }
.demo-banner span { color: var(--color-primary-text); opacity: 0.8; }

.hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 500;
    margin: 0 0 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 17px;
    color: var(--color-text-soft);
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.hero-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 110px;
    gap: 12px;
    max-width: 880px;
    margin: 0 auto;
    padding: 14px;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: left;
}

/* Tile-Sammlung */
.tile {
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tile-2x2 { grid-column: span 2; grid-row: span 2; }
.tile-2x1 { grid-column: span 2; }
.tile-accent {
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
}
.tile-accent .tile-label { color: var(--color-primary-text); opacity: 0.85; }
.tile-accent .tile-value { color: var(--color-primary-text); }
.tile-accent .tile-sublabel { color: var(--color-primary-text); opacity: 0.75; }
.tile-label {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}
.tile-value-xl {
    font-size: 38px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.tile-value {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}
.tile-sublabel {
    font-size: 11px;
    color: var(--color-text-soft);
    margin-top: 0.25rem;
}
.tile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.8;
}
.tile-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.check {
    width: 12px;
    height: 12px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ====================================================
   Sections
   ==================================================== */
.section-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 500;
    text-align: center;
    margin: 0 0 0.5rem;
    letter-spacing: -0.015em;
}
.section-subtitle {
    text-align: center;
    color: var(--color-text-soft);
    font-size: 16px;
    margin: 0 0 3rem;
}

.features {
    padding: 4rem 0;
    background: var(--color-bg-secondary);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.feature-grid-detail {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 17px;
    font-weight: 500;
}
.feature-card p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 14px;
    line-height: 1.6;
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.feature-icon-purple { background: #EEEDFE; color: #534AB7; }
.feature-icon-green  { background: #E1F5EE; color: #0F6E56; }
.feature-icon-blue   { background: #E6F1FB; color: #185FA5; }
.feature-icon-orange { background: #FAEEDA; color: #854F0B; }

/* ====================================================
   CTA
   ==================================================== */
.cta {
    padding: 5rem 0;
    text-align: center;
}
.cta h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 500;
    margin: 0 0 0.5rem;
    letter-spacing: -0.015em;
}
.cta p {
    color: var(--color-text-soft);
    margin: 0 0 1.75rem;
    font-size: 16px;
}
.cta-mini {
    text-align: center;
    margin-top: 3rem;
}

/* ====================================================
   Pricing
   ==================================================== */
.pricing-section {
    padding: 4rem 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}
.price-card {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card-popular {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow);
}
.price-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
}
.price-name {
    font-size: 13px;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.price-amount {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.price-suffix {
    font-size: 13px;
    color: var(--color-text-soft);
    font-weight: 400;
}
.price-description {
    color: var(--color-text-soft);
    font-size: 13px;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 13px;
    color: var(--color-text);
}
.price-features li.feature-off {
    color: var(--color-text-muted);
}
.check-icon {
    color: var(--color-success);
    font-weight: 500;
    flex-shrink: 0;
    width: 16px;
}
.feature-off .check-icon {
    color: var(--color-text-muted);
}

/* ====================================================
   Auth Pages
   ==================================================== */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-secondary);
}
.auth-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    color: var(--color-text);
}
.auth-step-badge {
    display: inline-block;
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.auth-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 0.5rem;
}
.auth-subtitle {
    color: var(--color-text-soft);
    font-size: 14px;
    margin: 0 0 2rem;
    line-height: 1.5;
}
.auth-form { text-align: left; }
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-soft);
    margin-bottom: 0.4rem;
}
.form-group input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-family: inherit;
    font-size: 14px;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.15s, background 0.15s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-card);
}
.auth-hint {
    margin-top: 1.25rem;
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.auth-link { font-weight: 500; }
.auth-sep { color: var(--color-text-muted); margin: 0 0.4rem; }
.auth-back {
    margin-top: 0.5rem;
    font-size: 12px;
}
.auth-back a {
    color: var(--color-text-muted);
}

.code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.25rem 0 1.5rem;
}
.code-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.15s, background 0.15s;
}
.code-digit:focus {
    outline: none;
    border-color: var(--color-primary);
    border-width: 2px;
    background: var(--color-bg-card);
}

.auth-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 12px;
    color: var(--color-text-muted);
}
.auth-footer a { color: var(--color-text-muted); margin: 0 0.25rem; }
.auth-footer a:hover { color: var(--color-text-soft); }
.auth-footer-sep { margin: 0 0.5rem; }

/* ====================================================
   Footer
   ==================================================== */
.footer {
    background: var(--color-bg-card);
    border-top: 0.5px solid var(--color-border);
    padding: 2rem 0;
    margin-top: 4rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 13px;
}
.footer-links a { color: var(--color-text-soft); }
.footer-links a:hover { color: var(--color-text); }
.footer-copy {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ====================================================
   Flash Messages
   ==================================================== */
.flash-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
}
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
}
.flash-success { background: var(--color-success-bg); color: var(--color-success); }
.flash-info    { background: var(--color-info-bg);    color: var(--color-info); }
.flash-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.flash-error   { background: var(--color-danger-bg);  color: var(--color-danger); }

/* ====================================================
   Error & Maintenance Pages
   ==================================================== */
.error-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    padding: 2rem;
}
.error-page {
    text-align: center;
    max-width: 440px;
}
.error-code {
    font-size: 84px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}
.error-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}
.error-page h1 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 0.5rem;
}
.error-page p {
    color: var(--color-text-soft);
    margin: 0 0 1.75rem;
}

/* ====================================================
   Legal pages
   ==================================================== */
.legal {
    padding: 3rem 0;
}
.legal h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 1.5rem;
}
.legal-placeholder {
    color: var(--color-text-muted);
    padding: 1.5rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    text-align: center;
}

/* ====================================================
   Mobile
   ==================================================== */
@media (max-width: 720px) {
    .nav-links {
        gap: 0.75rem;
        font-size: 13px;
    }
    .nav-links > a:not(.btn) {
        display: none;
    }
    .nav-links > a:not(.btn).btn,
    .nav-links > .btn { display: inline-flex; }
    .lang-switch { display: flex; }
    .hero { padding: 2rem 0 3rem; }
    .hero-preview {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 90px;
    }
    .tile-2x2, .tile-2x1 { grid-column: span 2; }
    .tile-2x2 { grid-row: span 2; }
    .footer-inner { flex-direction: column; text-align: center; }
}
/* ====================================================
   Tillodo · Phase 1B Schritt 3 · CSS-Erweiterungen
   ====================================================
   Diese Datei wird an core.css ANGEHÄNGT
   (oder ersetzt einfach die alte core.css komplett)
   ==================================================== */

/* ====================================================
   User-Navbar Erweiterungen
   ==================================================== */
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 13px;
}
.btn-xs {
    padding: 0.3rem 0.65rem;
    font-size: 12px;
}
.nav-user {
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 500;
}
.nav-admin-link {
    background: var(--color-primary-soft);
    color: var(--color-primary-text) !important;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}
.nav-admin-link:hover {
    background: #DCDAFB;
    color: var(--color-primary-text) !important;
}

/* ====================================================
   Dashboard-Platzhalter
   ==================================================== */
.dashboard-placeholder {
    padding: 3rem 0;
}
.dashboard-greeting {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 2rem;
    letter-spacing: -0.015em;
}
.placeholder-card {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.placeholder-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}
.placeholder-card h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 0.5rem;
}
.placeholder-card > p {
    color: var(--color-text-soft);
    margin: 0 0 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.placeholder-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.placeholder-stat {
    text-align: center;
}
.placeholder-stat-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.placeholder-stat-value {
    font-size: 18px;
    font-weight: 500;
}
.placeholder-stat-small {
    font-size: 14px;
}

/* ====================================================
   Admin-Bereich
   ==================================================== */
.admin-body {
    background: var(--color-bg-secondary);
}
.admin-navbar {
    background: var(--color-bg-card);
}
.admin-badge {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admin-badge-small {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    font-size: 9px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 0.4rem;
    text-transform: uppercase;
}
.admin-nav-links a {
    color: var(--color-text-soft);
}
.admin-nav-links a.active {
    color: var(--color-primary-text);
    font-weight: 500;
}
.admin-nav-links a:hover { color: var(--color-text); }
.admin-nav-links a.active:hover { color: var(--color-primary-text); }
.nav-sep { color: var(--color-border); }
.nav-back { font-size: 12px; color: var(--color-text-muted) !important; }

.admin-section {
    padding: 2.5rem 0 4rem;
}
.admin-h1 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 1.5rem;
    letter-spacing: -0.015em;
}
.admin-h1-count {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 18px;
    margin-left: 0.4rem;
}
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-search {
    flex: 0 1 320px;
}
.admin-search-input {
    width: 100%;
    padding: 0.5rem 0.85rem;
    font-family: inherit;
    font-size: 13px;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
}
.admin-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Stats-Boxen */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.admin-stat {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.admin-stat-label {
    font-size: 11px;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.admin-stat-value {
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
}
.admin-stat-sub {
    font-size: 11px;
    color: var(--color-success);
    margin-top: 0.4rem;
}

/* Karten-Grid */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 720px) {
    .admin-grid-2 { grid-template-columns: 1fr; }
}
.admin-card {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}
.admin-card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 1rem;
    color: var(--color-text);
}
.admin-card-text {
    color: var(--color-text-soft);
    font-size: 13px;
    margin: 0 0 1rem;
}
.admin-card-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
}
.admin-empty {
    color: var(--color-text-muted);
    font-size: 13px;
    margin: 0;
}

.admin-user-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.admin-user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-top: 0.5px solid var(--color-border-soft);
    font-size: 13px;
}
.admin-user-list li:first-child { border-top: 0; }
.admin-user-name {
    font-weight: 500;
    color: var(--color-text);
}
.admin-user-email {
    color: var(--color-text-soft);
    font-size: 12px;
}
.admin-user-meta {
    color: var(--color-text-muted);
    font-size: 12px;
}
.admin-inline-form {
    margin: 0;
}

/* Tabelle */
.admin-table-wrap {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table thead th {
    background: var(--color-bg-secondary);
    text-align: left;
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: var(--color-text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 0.5px solid var(--color-border);
}
.admin-table tbody td {
    padding: 0.7rem 1rem;
    border-top: 0.5px solid var(--color-border-soft);
    vertical-align: middle;
}
.admin-table tbody tr:first-child td { border-top: 0; }
.admin-table .muted { color: var(--color-text-muted); font-size: 12px; }
.user-email { font-weight: 500; }

.status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-active { background: var(--color-success-bg); color: var(--color-success); }
.status-suspended { background: var(--color-danger-bg); color: var(--color-danger); }
.self-badge {
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 0.3rem;
    font-weight: 500;
}

/* Aktionen */
.row-actions {
    position: relative;
}
.row-actions summary {
    cursor: pointer;
    list-style: none;
    padding: 4px 12px;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-soft);
    display: inline-block;
}
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions[open] summary { background: var(--color-primary-soft); color: var(--color-primary-text); }
.row-actions-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 220px;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.row-form {
    display: flex;
    gap: 0.4rem;
    margin: 0;
}
.row-select {
    flex: 1;
    padding: 0.3rem 0.5rem;
    font-size: 12px;
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
}
.row-action-btn {
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 12px;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.row-action-btn:hover {
    background: var(--color-bg-secondary);
}
/* ====================================================
   Tillodo · Phase 1C Schritt 1 · Dashboard CSS
   Wird an core.css ANGEHÄNGT
   ==================================================== */

/* ====================================================
   Dashboard / Page Tabs
   ==================================================== */
.dashboard {
    padding: 1rem 0 4rem;
}
.page-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1.5rem;
    margin-bottom: 1.25rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.tabs-strip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.page-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.page-tab:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}
.page-tab.active {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 0.5px solid var(--color-border);
}
.tab-default-icon {
    color: var(--color-warning);
    font-size: 11px;
}

.page-tab-more, .page-tab-new {
    position: relative;
}
.page-tab-more summary, .page-tab-new summary {
    cursor: pointer;
    list-style: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    color: var(--color-primary-text);
    background: var(--color-primary-soft);
    font-size: 13px;
    font-weight: 500;
}
.page-tab-more summary::-webkit-details-marker,
.page-tab-new summary::-webkit-details-marker { display: none; }
.page-tab-new summary {
    background: transparent;
    border: 0.5px dashed var(--color-border-secondary);
    color: var(--color-text-muted);
}
.page-tab-new summary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-text);
    background: var(--color-primary-soft);
}

.page-tab-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 50;
}
.dropdown-label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px 4px;
}
.dropdown-item {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--color-text);
    border-radius: var(--radius-sm);
}
.dropdown-item:hover { background: var(--color-bg-secondary); color: var(--color-text); }
.dropdown-action { color: var(--color-primary); font-weight: 500; }
.dropdown-sep {
    height: 0.5px;
    background: var(--color-border);
    margin: 4px 0;
}

.new-page-form {
    display: flex;
    gap: 6px;
    padding: 6px;
}
.new-page-form input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.new-page-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ====================================================
   Page Canvas / Grid
   ==================================================== */
.page-canvas {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.empty-state {
    background: var(--color-bg-card);
    border: 0.5px dashed var(--color-border-secondary);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}
.empty-state h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 0.5rem;
}
.empty-state p {
    color: var(--color-text-soft);
    margin: 0;
}

/* ====================================================
   GridStack Kacheln
   ==================================================== */
.grid-stack {
    background: transparent;
}
.grid-stack-item-content {
    inset: 0 !important;
}
.tile-wrap {
    width: 100%;
    height: 100%;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}
.tile-wrap:hover {
    box-shadow: var(--shadow);
}
.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 0.5px solid var(--color-border-soft);
    opacity: 0;
    transition: opacity 0.15s;
    height: 0;
    overflow: hidden;
}
body.editing .tile-header {
    opacity: 1;
    height: auto;
}
.tile-name {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tile-delete-form { margin: 0; }
.tile-delete-btn {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.tile-delete-btn:hover {
    background: var(--color-danger);
    color: #fff;
}
.tile-body {
    flex: 1;
    padding: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Während des Bearbeitens: Kacheln verschiebbar markieren */
body.editing .grid-stack-item {
    cursor: move;
}
body.editing .tile-wrap {
    border: 1px dashed var(--color-primary);
}

/* ====================================================
   Uhrzeit-App
   ==================================================== */
.app-clock {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.clock-time {
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}
.clock-time.time-sm { font-size: 18px; }
.clock-time.time-md { font-size: 32px; }
.clock-time.time-lg { font-size: 48px; }
.clock-time.time-xl { font-size: 64px; }
.clock-date {
    font-size: 13px;
    color: var(--color-text-soft);
    margin-top: 0.5rem;
}

.tile-error {
    color: var(--color-danger);
    font-size: 12px;
    padding: 1rem;
    text-align: center;
}

/* ====================================================
   Pages Overview
   ==================================================== */
.pages-overview {
    padding: 2.5rem 0 4rem;
}
.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.overview-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 0.25rem;
    letter-spacing: -0.015em;
}
.overview-subtitle {
    color: var(--color-text-soft);
    margin: 0;
    font-size: 14px;
}

.new-page-trigger {
    position: relative;
}
.new-page-trigger summary {
    cursor: pointer;
    list-style: none;
}
.new-page-trigger summary::-webkit-details-marker { display: none; }
.new-page-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 280px;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}
.new-page-popover-card {
    left: 0;
    right: auto;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.page-card {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    position: relative;
    transition: box-shadow 0.15s, transform 0.15s;
}
.page-card:hover {
    box-shadow: var(--shadow);
}
.page-card-default {
    border-color: var(--color-primary);
}
.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 2;
}
.badge-default {
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
}
.page-card-preview {
    display: block;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 8px;
    transition: opacity 0.15s;
}
.page-card-preview:hover { opacity: 0.85; }

.preview-skeleton {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 4px;
    width: 100%;
    height: 100%;
}
.skeleton-tile {
    background: var(--color-border-soft);
    border-radius: 3px;
}
.skeleton-tile-0 { grid-column: span 2; grid-row: span 2; background: var(--color-primary-soft); }
.skeleton-tile-1 { grid-column: span 2; }
.skeleton-tile-2 { grid-column: span 1; }
.skeleton-tile-3 { grid-column: span 1; }
.skeleton-tile-4 { grid-column: span 2; }
.skeleton-tile-5 { display: none; }

.page-card-body {
    padding: 0 4px;
}
.page-card-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.rename-trigger { position: relative; flex: 1; min-width: 0; }
.rename-trigger summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rename-trigger summary::-webkit-details-marker { display: none; }
.rename-pencil {
    color: var(--color-text-muted);
    font-size: 11px;
    margin-left: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.rename-trigger:hover .rename-pencil,
.rename-trigger[open] .rename-pencil { opacity: 1; }
.rename-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 50;
    display: flex;
    gap: 6px;
}
.rename-popover input[type="text"] {
    padding: 6px 10px;
    font-size: 13px;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.rename-popover input[type="text"]:focus {
    outline: none; border-color: var(--color-primary);
}

.page-card-menu { position: relative; flex-shrink: 0; }
.page-card-menu summary {
    cursor: pointer;
    list-style: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    font-size: 14px;
    letter-spacing: 1px;
}
.page-card-menu summary::-webkit-details-marker { display: none; }
.page-card-menu summary:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}
.page-card-actions {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 50;
    min-width: 180px;
}
.action-link, .action-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 12px;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.action-link:hover, .action-btn:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}
.action-danger { color: var(--color-danger); }
.action-danger:hover { background: var(--color-danger-bg); color: var(--color-danger); }

.page-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
}
.meta-visibility {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 500;
}
.meta-private {
    background: var(--color-bg-secondary);
    color: var(--color-text-soft);
}
.meta-public {
    background: var(--color-info-bg);
    color: var(--color-info);
}
.meta-password {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}
.meta-ip_restricted {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}
.meta-tiles { color: var(--color-text-muted); }

/* Empty Slot */
.new-page-card-trigger { position: relative; }
.new-page-card-trigger summary {
    cursor: pointer;
    list-style: none;
}
.new-page-card-trigger summary::-webkit-details-marker { display: none; }
.page-card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0.5px dashed var(--color-border-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    min-height: 220px;
    color: var(--color-text-muted);
    transition: all 0.15s;
}
.page-card-empty:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-text);
    background: var(--color-primary-soft);
}
.empty-icon-large {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.empty-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.empty-sub {
    font-size: 11px;
}
/* ====================================================
   Tillodo · Hotfix CSS-Erweiterung
   An core.css ANHÄNGEN
   ==================================================== */

/* Tile Header: Buttons-Container */
.tile-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}
.tile-config-btn {
    background: var(--color-bg-secondary);
    color: var(--color-text-soft);
    border: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.tile-config-btn:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
}

/* Stadt-Label in der Uhr-Kachel */
.clock-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

/* ====================================================
   Modal für Tile-Konfiguration
   ==================================================== */
.config-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.config-modal[hidden] { display: none; }
.config-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}
.config-modal-box {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.config-modal-content {
    padding: 1.5rem;
}
.config-loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
}

body.modal-open {
    overflow: hidden;
}

.tile-config-form {
    margin: 0;
}
.config-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.5px solid var(--color-border);
    letter-spacing: -0.01em;
}
.config-row {
    margin-bottom: 1rem;
}
.config-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-soft);
    margin-bottom: 0.3rem;
}
.config-input {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
}
.config-input:focus {
    outline: none;
    border-color: var(--color-primary);
}
select.config-input {
    cursor: pointer;
}
.config-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    cursor: pointer;
}
.config-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}
.config-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 0.5px solid var(--color-border);
}

/* ====================================================
   Upsell (gesperrter Neue-Seite-Button)
   ==================================================== */
.page-tab-new-locked summary {
    background: linear-gradient(135deg, #FAEEDA 0%, #EEEDFE 100%);
    color: var(--color-warning);
    border: 0.5px solid var(--color-warning);
    border-style: solid;
}
.page-tab-new-locked summary:hover {
    background: linear-gradient(135deg, #F5E0BF 0%, #DCDAFB 100%);
}
.lock-icon {
    margin-left: 4px;
    font-size: 11px;
}

.upsell-popover {
    width: 280px;
    padding: 1.25rem !important;
    text-align: center;
}
.upsell-icon {
    font-size: 32px;
    margin-bottom: 0.5rem;
}
.upsell-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.upsell-text {
    font-size: 12px;
    color: var(--color-text-soft);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.upsell-btn {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%) !important;
    color: #fff !important;
    border: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.upsell-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.page-card-upsell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEEDFE 0%, #FAEEDA 100%);
    border: 0.5px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    min-height: 220px;
    text-align: center;
    color: var(--color-text);
    transition: transform 0.15s, box-shadow 0.15s;
}
.page-card-upsell:hover {
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.upsell-icon-large {
    font-size: 36px;
    margin-bottom: 0.5rem;
}
.upsell-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}
.upsell-sub {
    font-size: 11px;
    color: var(--color-text-soft);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.upsell-arrow {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primary-text);
    background: var(--color-bg-card);
    padding: 6px 12px;
    border-radius: 999px;
    border: 0.5px solid var(--color-primary);
}
/* ====================================================
   Tillodo · Phase 1C Schritt 2 · Erweiterungen
   ==================================================== */

/* ====================================================
   Floating Action Button
   ==================================================== */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 14px;
    z-index: 40;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.fab:hover {
    background: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.fab-icon {
    font-size: 20px;
    line-height: 1;
}

/* ====================================================
   Modal-System
   ==================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.modal-card {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--color-text-muted);
    cursor: pointer;
}
.modal-close:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}
.modal-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 1.25rem;
    padding-right: 30px;
}

/* ====================================================
   Tile Header Actions (Zahnrad + Löschen)
   ==================================================== */
.tile-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}
.tile-config-btn,
.tile-delete-btn {
    background: var(--color-bg-secondary);
    border: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--color-text-soft);
}
.tile-config-btn:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
}
.tile-delete-btn {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    font-size: 16px;
}
.tile-delete-btn:hover {
    background: var(--color-danger);
    color: #fff;
}

/* ====================================================
   Form-Elemente in Modals
   ==================================================== */
.form-row {
    margin-bottom: 1rem;
}
.form-row label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-soft);
    margin-bottom: 0.4rem;
}
.form-row input[type="text"],
.form-row input[type="url"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-family: inherit;
    font-size: 14px;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-card);
}
.form-row textarea {
    resize: vertical;
    min-height: 80px;
}
.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
}
.checkbox-row input[type="checkbox"] {
    margin: 0;
}
.form-info {
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 12px;
    color: var(--color-text-soft);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.form-hint {
    font-size: 11px;
    color: var(--color-text-muted);
    margin: 0.4rem 0 0;
    line-height: 1.5;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Color-Picker für Notizen */
.color-picker {
    display: flex;
    gap: 8px;
}
.color-option {
    cursor: pointer;
    margin: 0 !important;
}
.color-option input[type="radio"] {
    display: none;
}
.color-swatch {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: transform 0.1s;
}
.color-yellow .color-swatch { background: #FEF08A; }
.color-blue   .color-swatch { background: #BFDBFE; }
.color-green  .color-swatch { background: #BBF7D0; }
.color-pink   .color-swatch { background: #FBCFE8; }
.color-white  .color-swatch { background: #F4F2EE; border-color: var(--color-border); }
.color-option input:checked + .color-swatch {
    border-color: var(--color-primary);
    transform: scale(1.1);
}

/* Bookmarks Link-Editor */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}
.link-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 6px;
}
.link-row input {
    padding: 6px 10px !important;
    font-size: 13px !important;
}
.link-remove {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}
.link-remove:hover {
    background: var(--color-danger);
    color: #fff;
}

/* ====================================================
   Notizen-App
   ==================================================== */
.app-notes {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: -14px;
    box-sizing: border-box;
    position: relative;
}
.app-notes-yellow { background: #FEF7C7; color: #713F12; }
.app-notes-blue   { background: #DBEAFE; color: #1E3A8A; }
.app-notes-green  { background: #DCFCE7; color: #14532D; }
.app-notes-pink   { background: #FCE7F3; color: #831843; }
.app-notes-white  { background: var(--color-bg-card); color: var(--color-text); border: 0.5px solid var(--color-border); }

.notes-title {
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    padding: 0 0 6px;
    width: 100%;
    outline: none;
}
.notes-title::placeholder {
    color: currentColor;
    opacity: 0.5;
}
.notes-content {
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    color: inherit;
    flex: 1;
    resize: none;
    outline: none;
    width: 100%;
    line-height: 1.5;
}
.notes-content::placeholder {
    color: currentColor;
    opacity: 0.4;
}
.notes-status {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.notes-status.show {
    opacity: 0.7;
}

/* ====================================================
   Lesezeichen-App
   ==================================================== */
.app-bookmarks {
    width: 100%;
    height: 100%;
    overflow: auto;
}
.bookmarks-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-soft);
    margin-bottom: 8px;
}
.bookmarks-empty {
    font-size: 12px;
    color: var(--color-text-muted);
    padding: 1rem;
    text-align: center;
    line-height: 1.5;
}
.bookmarks-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bookmarks-list li {
    margin: 0;
}
.bookmarks-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: background 0.1s;
}
.bookmarks-list a:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}
.bookmark-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}
.bookmark-favicon-placeholder {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}
.bookmark-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ====================================================
   App-Store
   ==================================================== */
.store-section {
    padding: 2.5rem 0 4rem;
}
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.store-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 0.25rem;
    letter-spacing: -0.015em;
}
.store-subtitle {
    color: var(--color-text-soft);
    margin: 0;
    font-size: 14px;
}

.store-filters {
    margin-bottom: 1.5rem;
}
.store-search-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-size: 15px;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.store-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}
.store-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cat-pill {
    padding: 6px 14px;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-soft);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.cat-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-text);
}
.cat-pill.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.store-app-card {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}
.store-app-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.store-app-card.app-locked {
    opacity: 0.7;
}
.store-app-card.app-locked:hover {
    transform: none;
    box-shadow: none;
}

.store-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.store-badge.featured {
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
}
.store-badge.plan-badge.plan-pro {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}
.store-badge.plan-badge.plan-teams {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.store-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.store-icon-svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}
.store-app-name {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 0.4rem;
}
.store-app-desc {
    color: var(--color-text-soft);
    font-size: 12px;
    margin: 0 0 1rem;
    flex: 1;
    line-height: 1.5;
}
.store-add-form {
    margin: 0;
}
.store-page-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 13px;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}
.store-empty-search {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}

/* ====================================================
   Page Visibility Settings
   ==================================================== */
.visibility-section {
    padding: 2.5rem 0 4rem;
}
.visibility-header {
    margin-bottom: 2rem;
}
.back-link {
    display: inline-block;
    color: var(--color-text-soft);
    font-size: 13px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}
.back-link:hover {
    color: var(--color-text);
}
.visibility-title {
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 0.4rem;
    letter-spacing: -0.015em;
}
.visibility-subtitle {
    color: var(--color-text-soft);
    margin: 0;
    font-size: 14px;
}

.visibility-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.visibility-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}
.visibility-option:hover {
    border-color: var(--color-text-soft);
}
.visibility-option.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}
.visibility-option.visibility-locked {
    cursor: not-allowed;
    opacity: 0.55;
}
.visibility-option.visibility-locked:hover {
    border-color: var(--color-border);
}
.visibility-option input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}
.vo-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.vo-content { flex: 1; }
.vo-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vo-pro-badge {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 999px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vo-desc {
    font-size: 13px;
    color: var(--color-text-soft);
    line-height: 1.5;
}

.visibility-detail {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: none;
}
.visibility-detail h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 1rem;
}

.slug-input {
    display: flex;
    align-items: stretch;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.slug-prefix {
    padding: 0.55rem 0.75rem;
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    font-size: 13px;
    border-right: 0.5px solid var(--color-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.slug-input input {
    flex: 1;
    border: 0 !important;
    background: var(--color-bg-card) !important;
    border-radius: 0 !important;
}

.public-url-display {
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 13px;
}
.public-url-display strong {
    font-weight: 500;
    color: var(--color-text-soft);
}
.public-url-display a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-primary);
}

/* ====================================================
   Upsell-Popover (für Free → Pro)
   ==================================================== */
.upsell-popover {
    text-align: center;
    padding: 1rem !important;
    min-width: 240px;
}
.upsell-popover-icon {
    font-size: 28px;
    margin-bottom: 0.5rem;
}
.upsell-popover-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0.4rem;
}
.upsell-popover-text {
    font-size: 12px;
    color: var(--color-text-soft);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.page-tab-locked summary {
    color: var(--color-text-muted) !important;
    background: transparent !important;
    border: 0.5px dashed var(--color-border-secondary);
}

/* ====================================================
   Public Page (geteilte Seiten)
   ==================================================== */
.public-page-body {
    background: var(--color-bg-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.public-page-body .main {
    flex: 1;
}
.public-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}
.public-page-header {
    text-align: center;
    margin-bottom: 2rem;
}
.public-page-header h1 {
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.public-page-author {
    color: var(--color-text-soft);
    font-size: 14px;
    margin: 0;
}
.public-tile {
    box-shadow: var(--shadow);
}
.public-page-footer {
    padding: 1.5rem;
    text-align: center;
    background: var(--color-bg-card);
    border-top: 0.5px solid var(--color-border);
}
.public-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-decoration: none;
}
.public-footer-brand:hover {
    color: var(--color-text);
}
.public-footer-brand .brand-logo {
    width: 20px;
    height: 20px;
    font-size: 11px;
}

/* Public Password Screen */
.public-password-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--color-bg-secondary);
}
.password-card {
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    max-width: 380px;
    width: 100%;
    text-align: center;
}
.password-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}
.password-card h1 {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 0.5rem;
}
.password-card p {
    color: var(--color-text-soft);
    font-size: 14px;
    margin: 0 0 1.75rem;
}
.password-form input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: inherit;
    font-size: 15px;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: 0.1em;
}
.password-form input[type="password"]:focus {
    outline: none;
    border-color: var(--color-primary);
}
/* ====================================================
   HOTFIX 1C-2a: Notizen Box-in-Box-Problem
   ====================================================
   Diese Regeln ans Ende der core.css anhängen.
   ==================================================== */

/* Bei Notiz-Kacheln: Outer-Wrap transparent + ohne Border, damit nur
   die farbige Notiz-Innenfläche sichtbar ist. */
.tile-app-notes {
    background: transparent !important;
    border: 0 !important;
    overflow: visible;
}
.tile-app-notes .tile-body {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius);
}
.tile-app-notes:hover {
    box-shadow: none;
}

/* Im Bearbeiten-Modus: gestrichelter Rahmen außenrum */
body.editing .tile-app-notes {
    border: 1px dashed var(--color-primary) !important;
    border-radius: var(--radius);
}

/* Notiz selbst füllt komplett den Body aus */
.app-notes {
    margin: 0;
    border-radius: var(--radius);
    padding: 14px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow);
}

/* Im Bearbeiten-Modus: Header oben sitzen lassen, Notiz-Body kürzer */
body.editing .tile-app-notes .tile-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 0;
}

/* ====================================================
   HOTFIX 2d: 3-Punkte-Menü auf Kacheln + Bookmark-Import
   ==================================================== */

/* Tile-Menü ist absolut oben rechts in jeder Kachel */
.tile-menu {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
}
.tile-menu summary {
    cursor: pointer;
    list-style: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 1;
    user-select: none;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
    opacity: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.tile-menu summary::-webkit-details-marker { display: none; }

/* Beim Hover über die Kachel: Menü-Button erscheinen */
.tile-wrap:hover .tile-menu summary,
.tile-menu[open] summary {
    opacity: 1;
}
.tile-menu summary:hover {
    background: var(--color-bg-card);
    color: var(--color-text);
}
.tile-menu[open] summary {
    background: var(--color-primary);
    color: #fff;
}

/* Touch-Geräte: immer sichtbar */
@media (hover: none) {
    .tile-menu summary { opacity: 0.7; }
}

/* Popover */
.tile-menu-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: var(--color-bg-card);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    line-height: 1.2;
}
.tile-menu-item:hover {
    background: var(--color-bg-secondary);
}
.tile-menu-icon {
    width: 18px;
    text-align: center;
    color: var(--color-text-soft);
    font-size: 14px;
    flex-shrink: 0;
}
.tile-menu-sep {
    height: 0.5px;
    background: var(--color-border);
    margin: 4px 6px;
}
.tile-menu-danger { color: var(--color-danger); }
.tile-menu-danger:hover {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}
.tile-menu-danger .tile-menu-icon { color: var(--color-danger); }

/* Kachel relative — damit absolutes Menü positioniert werden kann */
.tile-wrap {
    position: relative;
}

/* Im Bearbeiten-Modus: Kachel-Header (Drag-Handle) wieder oben */
body.editing .tile-wrap {
    border: 1px dashed var(--color-primary);
}
body.editing .tile-menu summary { opacity: 1; }

/* ====================================================
   Bookmark-Import: Tabbar + Import-UI
   ==================================================== */
.tabbar {
    display: flex;
    gap: 4px;
    border-bottom: 0.5px solid var(--color-border);
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}
.tab-btn {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
    margin-bottom: -0.5px;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active {
    color: var(--color-primary-text);
    border-bottom-color: var(--color-primary);
    font-weight: 500;
}
.tab-panel {
    animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.import-howto {
    margin-bottom: 8px;
}
.import-howto summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primary-text);
    padding: 4px 0;
}
.import-howto summary::-webkit-details-marker { display: none; }
.import-howto summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s;
}
.import-howto[open] summary::before {
    transform: rotate(90deg);
}
.import-steps {
    margin: 6px 0 8px 24px;
    padding: 0;
    color: var(--color-text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.file-input {
    display: block;
    width: 100%;
    padding: 8px;
    background: var(--color-bg-secondary);
    border: 1px dashed var(--color-border-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
}
.file-input:hover {
    border-color: var(--color-primary);
}

.bookmarks-import-results {
    margin-top: 1rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
}
.import-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-card);
    border-bottom: 0.5px solid var(--color-border);
}
.import-count {
    font-size: 12px;
    color: var(--color-text-soft);
    font-weight: 500;
}
.import-count::before {
    content: '';
}
.import-count::after {
    content: ' Lesezeichen gefunden';
    font-weight: 400;
}
:root[lang="en"] .import-count::after,
html[lang="en"] .import-count::after {
    content: ' bookmarks found';
}

.import-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}
.import-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin: 0;
}
.import-item:hover {
    background: var(--color-bg-card);
}
.import-item input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}
.import-item-info {
    flex: 1;
    min-width: 0;
}
.import-item-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.import-item-url {
    font-size: 11px;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.import-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 1.5rem 1rem;
    font-size: 13px;
    margin: 0;
}
.import-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-top: 0.75rem;
}

/* Modal-Card etwas breiter für Import */
.modal-card {
    max-width: 560px;
}

/* Tile-Header und alte tile-actions sind jetzt obsolet, ausblenden falls noch da */
.tile-header { display: none; }
