/*
Theme Name: TaxBot Kitech AI
Theme URI: https://taxbot.kitech.ai
Author: KITech.ai
Author URI: https://kitech.ai
Description: WordPress theme based on uploaded TaxBot landing and app prototype HTML files.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: taxbot-kitech-ai
*/

:root {
    --tb-bg: #f7f5f0;
    --tb-ink: #0d1117;
    --tb-muted: #4b5563;
    --tb-line: #d6d0c4;
    --tb-accent: #1a6b3c;
    --tb-accent-2: #d4a843;
    --tb-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    background: var(--tb-bg);
    color: var(--tb-ink);
    line-height: 1.65;
}

a {
    color: var(--tb-accent);
}

.tb-main {
    min-height: 60vh;
}

.tb-main--no-hero .tb-section {
    padding-top: 24px;
}

.tb-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header + Navigation */
.tb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 245, 240, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tb-line);
}

.tb-header__inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 68px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tb-brand {
    font-family: "DM Serif Display", serif;
    color: var(--tb-ink);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 400;
    white-space: nowrap;
}

.tb-brand span {
    color: var(--tb-accent);
}

.tb-brand .custom-logo {
    max-height: 42px;
    width: auto;
}

.tb-nav {
    flex: 1;
}

.tb-menu,
.tb-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tb-menu > li {
    position: relative;
}

.tb-menu > li > a {
    display: inline-block;
    text-decoration: none;
    color: var(--tb-ink);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 4px;
}

.tb-menu > li:hover > a,
.tb-menu .current-menu-item > a,
.tb-menu .current-menu-ancestor > a {
    color: var(--tb-accent);
}

.tb-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--tb-white);
    border: 1px solid var(--tb-line);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    display: none;
    padding: 8px 0;
}

.tb-menu li:hover > .sub-menu {
    display: block;
}

.tb-menu .sub-menu a {
    display: block;
    color: var(--tb-ink);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.tb-menu .sub-menu a:hover {
    background: #f3f4f6;
}

.tb-header__cta {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--tb-ink);
    color: var(--tb-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.tb-header__cta:hover {
    background: var(--tb-accent);
    color: var(--tb-white);
}

/* Hero / sections */
.tb-hero {
    padding: 64px 0 36px;
    border-bottom: 1px solid var(--tb-line);
}

.tb-hero--home {
    padding: 96px 0 64px;
}

.tb-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tb-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.tb-hero h1 {
    font-family: "DM Serif Display", serif;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 12px;
}

.tb-lead {
    max-width: 760px;
    color: var(--tb-muted);
    margin: 0;
}

.tb-meta {
    color: var(--tb-muted);
    font-size: 0.9rem;
}

.tb-section {
    padding: 44px 0;
}

.tb-section h2 {
    font-family: "DM Serif Display", serif;
    font-size: 1.8rem;
    margin: 0 0 18px;
}

.tb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tb-card {
    background: var(--tb-white);
    border: 1px solid var(--tb-line);
    border-radius: 12px;
    padding: 18px;
}

.tb-card h2,
.tb-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.tb-card h2 a,
.tb-card h3 a {
    color: var(--tb-ink);
    text-decoration: none;
}

.tb-card h2 a:hover,
.tb-card h3 a:hover {
    color: var(--tb-accent);
}

.tb-card p {
    margin: 0;
    color: var(--tb-muted);
}

.tb-content {
    background: var(--tb-white);
    border: 1px solid var(--tb-line);
    border-radius: 14px;
    padding: 26px;
}

.tb-content > *:first-child {
    margin-top: 0;
}

.tb-content > *:last-child {
    margin-bottom: 0;
}

.tb-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tb-btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tb-btn--primary {
    background: var(--tb-ink);
    color: var(--tb-white);
}

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

.tb-btn--ghost {
    border: 1px solid var(--tb-line);
    color: var(--tb-ink);
    background: var(--tb-white);
}

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

.tb-pagination {
    margin-top: 20px;
}

/* Footer */
.tb-footer {
    margin-top: 40px;
    background: #111827;
    color: #d1d5db;
    padding: 28px 0;
}

.tb-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    gap: 14px;
}

.tb-footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tb-footer-menu a {
    color: #d1d5db;
    text-decoration: none;
}

.tb-footer-menu a:hover {
    color: #fff;
}

.tb-footer__meta {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
}

.tb-footer__meta a {
    color: #93c5fd;
    text-decoration: none;
}

.tb-footer__widgets .widget {
    margin: 0;
}

@media (max-width: 980px) {
    .tb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tb-header__inner {
        flex-wrap: wrap;
        row-gap: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .tb-nav {
        order: 3;
        width: 100%;
    }

    .tb-menu {
        gap: 10px;
    }

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

/* Shortcode [taxbot_plan_checkout] / Seite «Preise» */
.taxbot-plan-checkout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: stretch;
}

.taxbot-plan-checkout-grid .taxbot-plan-checkout {
    margin: 0;
}

.taxbot-plan-checkout {
    margin: 2rem 0;
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 16px;
    background: var(--tb-white);
    box-shadow:
        0 1px 2px rgba(13, 17, 23, 0.06),
        0 12px 32px rgba(13, 17, 23, 0.08);
    border: 1px solid rgba(214, 208, 196, 0.85);
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.taxbot-plan-checkout::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tb-accent), var(--tb-accent-2));
    opacity: 0.92;
}

.taxbot-plan-checkout--professional::before {
    background: linear-gradient(90deg, #14532d, var(--tb-accent-2));
}

.taxbot-plan-checkout__head {
    margin: 0.35rem 0 1.1rem;
}

.taxbot-plan-checkout__kicker {
    margin: 0 0 0.35rem;
    font-family: "DM Serif Display", serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--tb-ink);
}

.taxbot-plan-checkout__pitch {
    margin: 0;
    font-size: 0.98rem;
    color: var(--tb-muted);
    line-height: 1.55;
}

.taxbot-plan-checkout__features {
    margin: 0 0 1.15rem;
    padding: 0 0 0 1.15rem;
    font-size: 0.92rem;
    color: var(--tb-ink);
    line-height: 1.55;
}

.taxbot-plan-checkout__features li {
    margin-bottom: 0.45rem;
}

.taxbot-plan-checkout__features li:last-child {
    margin-bottom: 0;
}

.taxbot-plan-checkout__trust {
    margin: 0 0 1.15rem;
    font-size: 0.82rem;
    color: var(--tb-muted);
    line-height: 1.5;
    padding: 0.65rem 0.85rem;
    background: rgba(26, 107, 60, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--tb-accent);
}

.taxbot-plan-checkout__notice {
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--tb-ink);
    background: #fff9e6;
    border: 1px solid rgba(212, 168, 67, 0.45);
    border-radius: 10px;
}

.taxbot-plan-checkout__notice p {
    margin: 0 0 0.5rem;
}

.taxbot-plan-checkout__notice p:last-child {
    margin-bottom: 0;
}

.taxbot-plan-checkout__actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.taxbot-plan-checkout__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.12s;
}

.taxbot-plan-checkout__btn--primary {
    background: var(--tb-accent);
    color: var(--tb-white) !important;
    box-shadow: 0 2px 8px rgba(26, 107, 60, 0.25);
}

.taxbot-plan-checkout__btn--primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 107, 60, 0.3);
}

.taxbot-plan-checkout__btn--secondary {
    background: transparent;
    color: var(--tb-ink) !important;
    border-color: var(--tb-line);
}

.taxbot-plan-checkout__btn--secondary:hover {
    border-color: var(--tb-accent);
    color: var(--tb-accent) !important;
    background: rgba(26, 107, 60, 0.04);
}

.taxbot-plan-checkout__alt {
    margin: 1.1rem 0 0;
    font-size: 0.9rem;
    color: var(--tb-muted);
}

.taxbot-plan-checkout__alt a {
    color: var(--tb-accent);
    font-weight: 500;
}

.taxbot-plan-checkout__alt a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .taxbot-plan-checkout {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .taxbot-plan-checkout__kicker {
        font-size: 1.28rem;
    }

    .taxbot-plan-checkout__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .taxbot-plan-checkout__btn {
        width: 100%;
        text-align: center;
    }
}

