/* ═══════════════════════════════════════════════════
   HederaCertify – Mobile-First Stylesheet
   ═══════════════════════════════════════════════════ */

html, body { height: 100%; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

main {
    flex: 1;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
@media (min-width: 768px) {
    main { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}

/* ── Navbar ──────────────────────────────────────── */
.navbar-brand { font-size: 1.1rem; letter-spacing: -.5px; }

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: .6rem .25rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }
    .navbar-nav .btn        { width: 100%; margin: .4rem 0 0 0 !important; text-align: left; }
    .navbar-nav .ms-1,
    .navbar-nav .ms-2       { margin-left: 0 !important; }
    .navbar-nav .dropdown   { margin-top: .25rem; }
    .navbar-nav .dropdown .btn { width: 100%; text-align: left; }
    .navbar-nav .dropdown-menu { position: static !important; width: 100%; }
}

/* ── Cards ───────────────────────────────────────── */
.card { border-radius: .75rem; }

@media (max-width: 575px) {
    .card-body,
    .card-body.p-4 { padding: 1rem !important; }
}

/* ── Hero (Startseite) ───────────────────────────── */
@media (max-width: 575px) {
    .hero-section { padding: 1.5rem !important; border-radius: .5rem !important; }
    .hero-section h1 { font-size: 1.5rem !important; }
    .hero-section p.fs-4 { font-size: .95rem !important; }
    .hero-section .btn { display: block; width: 100%; margin-bottom: .5rem; margin-right: 0 !important; }
}

/* ── Tabellen ────────────────────────────────────── */
.table-responsive { -webkit-overflow-scrolling: touch; }
.table > :not(caption) > * > * { padding: .65rem .5rem; }
@media (min-width: 768px) {
    .table > :not(caption) > * > * { padding: .85rem .75rem; }
}
@media (max-width: 767px) {
    .table td code, .table td strong { word-break: break-all; font-size: .8rem; }
    /* Dateiname-Spalte kürzen */
    .table td:first-child { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── Formulare / Touch-Targets ───────────────────── */
.form-control, .form-select { min-height: 44px; }
.btn { min-height: 44px; }
.btn-sm { min-height: 36px; }

/* ── Upload Drop-Zone ────────────────────────────── */
.drop-zone {
    min-height: 140px;
    cursor: pointer;
    transition: all .2s;
    border-style: dashed !important;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: #0d6efd !important;
    background-color: rgba(13,110,253,.05);
}
@media (max-width: 575px) {
    .drop-zone { padding: 1.25rem .75rem !important; min-height: 110px; }
    .drop-zone .display-5 { font-size: 1.75rem !important; }
}

/* ── Plan-Karten ─────────────────────────────────── */
.plan-card { cursor: pointer; transition: all .15s; }
.plan-card:hover {
    border-color: #0d6efd !important;
    background-color: rgba(13,110,253,.05);
}
@media (max-width: 575px) {
    .plan-card .fs-5 { font-size: 1rem !important; }
    .plan-card .text-end .fw-bold { font-size: 1.1rem !important; }
}

/* ── Hash-Anzeige (Zertifikat) ───────────────────── */
.cert-hash {
    word-break: break-all;
    font-size: .8rem;
    background: #1a1a2e;
    color: #00d4aa;
    padding: .75rem 1rem;
    border-radius: .5rem;
    font-family: 'Courier New', monospace;
}
@media (max-width: 575px) {
    .cert-hash { font-size: .7rem; padding: .6rem .75rem; }
}

/* ── Code ────────────────────────────────────────── */
code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .82em;
    color: #d63384;
    word-break: break-all;
}

/* ── API Quick-Start ─────────────────────────────── */
@media (max-width: 767px) {
    .api-quickstart pre {
        font-size: .7rem !important;
        white-space: pre-wrap !important;
        word-break: break-all;
    }
}

/* ── Detail-Aktionen ─────────────────────────────── */
@media (max-width: 575px) {
    .detail-actions { display: flex; flex-direction: column; gap: .5rem; }
    .detail-actions .btn { width: 100%; }
}

/* ── Statistik-Kacheln ───────────────────────────── */
@media (max-width: 575px) {
    .stat-card .fs-2 { font-size: 1.4rem !important; }
}

/* ── Überschriften ───────────────────────────────── */
@media (max-width: 575px) {
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }
}

/* ── Testnet-Banner ──────────────────────────────── */
@media (max-width: 575px) {
    .testnet-banner { font-size: .73rem; padding: .35rem .5rem !important; }
    .testnet-banner code { display: none; }
}

/* ── Footer ──────────────────────────────────────── */
footer { font-size: .82rem; }

/* ── Modal ───────────────────────────────────────── */
@media (max-width: 575px) {
    .modal-dialog { margin: .5rem; }
}

/* ── Abo-Progress ────────────────────────────────── */
.sub-progress { height: 10px; border-radius: 99px; }

/* ── border-dashed (Utility) ─────────────────────── */
.border-dashed { border-style: dashed !important; }

/* ── Smooth Scroll ───────────────────────────────── */
html { scroll-behavior: smooth; }

/* ══════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════ */

/* Sections */
.lp-section      { padding: 5rem 0; }
.lp-section-sm   { padding: 3.5rem 0; }
@media (max-width: 767px) {
    .lp-section    { padding: 3rem 0; }
    .lp-section-sm { padding: 2rem 0; }
}

/* Hero */
.lp-hero {
    background: #080a12;
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Subtiler Glow-Hintergrund */
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 60% 110%, rgba(37,99,235,.22) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 10% -10%,  rgba(99,102,241,.14) 0%, transparent 60%);
    pointer-events: none;
}

/* Feines Punkt-Grid statt Linien */
.lp-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.lp-hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.03em;
}

.lp-hero .subline {
    font-size: clamp(.9rem, 2vw, 1.1rem);
    opacity: .75;
    max-width: 500px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .lp-hero { padding: 2.5rem 0 2rem; }
}
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px;
    padding: .3rem .9rem;
    font-size: .8rem;
    color: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    margin-bottom: 1.5rem;
}
.lp-btn-primary {
    background: #2563eb;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .75rem 1.75rem;
    border-radius: .6rem;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(37,99,235,.4);
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}
.lp-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37,99,235,.5);
    color: #fff;
}
.lp-btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    font-weight: 500;
    padding: .75rem 1.75rem;
    border-radius: .6rem;
    font-size: 1rem;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}
.lp-btn-secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.5);
    color: #fff;
}
.lp-hero-visual {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
}
.lp-cert-line {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .65rem;
    border-radius: .45rem;
    background: rgba(255,255,255,.04);
    margin-bottom: .4rem;
    font-size: .8rem;
    color: rgba(255,255,255,.75);
}
.lp-cert-line .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lp-cert-line .val {
    font-family: 'Courier New', monospace;
    font-size: .72rem;
    color: #6ee7b7;
    margin-left: auto;
    word-break: break-all;
}

/* Trust / Vorteile */
.lp-trust { background: #f8faff; }
.lp-feature-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: all .2s;
}
.lp-feature-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 32px rgba(37,99,235,.08);
    transform: translateY(-2px);
}
.lp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Problem / Lösung */
.lp-problem { background: #0f172a; color: #e2e8f0; }
.lp-problem-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}
.lp-arrow {
    width: 48px;
    height: 48px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 auto;
}

/* Wie es funktioniert */
.lp-how { background: #fff; }
.lp-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #2563eb;
    flex-shrink: 0;
}
.lp-step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(#bfdbfe, transparent);
    margin: .25rem auto;
}

/* Zertifikat-Preview */
.lp-cert { background: linear-gradient(135deg, #0f172a, #1e293b); color: #e2e8f0; }
.lp-cert-preview {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    color: #1e293b;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.lp-cert-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: .85rem;
}
.lp-cert-row:last-child { border-bottom: none; }
.lp-cert-label { color: #64748b; width: 130px; flex-shrink: 0; font-size: .78rem; }
.lp-cert-value { font-family: 'Courier New', monospace; color: #0f172a; word-break: break-all; font-size: .78rem; }

/* Live Verifikation */
.lp-verify { background: #eff6ff; }
.lp-verify-box {
    background: #fff;
    border: 2px dashed #bfdbfe;
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.lp-verify-box:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

/* Developer */
.lp-dev { background: #0f172a; color: #e2e8f0; }
.lp-code-block {
    background: #020617;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: .82rem;
    line-height: 1.8;
    overflow-x: auto;
}
.lp-code-block .cmd  { color: #6ee7b7; }
.lp-code-block .key  { color: #93c5fd; }
.lp-code-block .val  { color: #fca5a5; }
.lp-code-block .cmt  { color: #4b5563; }
.lp-endpoint {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .6rem;
    margin-bottom: .5rem;
    font-size: .85rem;
}
.lp-method {
    font-family: 'Courier New', monospace;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: .35rem;
}
.lp-method-post { background: #065f46; color: #6ee7b7; }
.lp-method-get  { background: #1e3a8a; color: #93c5fd; }

/* Pricing */
.lp-pricing { background: #f8faff; }
.lp-price-card {
    background: #fff;
    border: 1.5px solid #e8edf5;
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    transition: all .2s;
    position: relative;
}
.lp-price-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,.1); transform: translateY(-2px); }
.lp-price-card.featured {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb, 0 8px 32px rgba(37,99,235,.15);
}
.lp-price-amount { font-size: 2.5rem; font-weight: 800; color: #0f172a; line-height: 1; }
.lp-check { color: #10b981; margin-right: .4rem; }

/* Section labels */
.lp-section-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #2563eb;
    margin-bottom: .75rem;
}
.lp-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
    line-height: 1.2;
}
.lp-section-title.light { color: #f1f5f9; }

/* CTA Final */
.lp-cta {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    color: #fff;
}
.lp-cta-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

/* ══════════════════════════════════════════════════════
   NAVBAR – Dark & Premium
   ══════════════════════════════════════════════════════ */

.navbar-hc {
    background: rgba(8, 10, 18, 0.88) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
    transition: background .3s, box-shadow .3s;
    padding: .6rem 0;
}

/* Scrolled state – leicht undurchsichtiger */
.navbar-hc.scrolled {
    background: rgba(8, 10, 18, 0.97) !important;
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

/* Logo */
.navbar-hc .navbar-brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar-hc .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
}

.navbar-hc .brand-text {
    background: linear-gradient(90deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links */
.navbar-hc .nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: .875rem;
    font-weight: 500;
    padding: .4rem .75rem !important;
    border-radius: .5rem;
    transition: all .18s;
    display: flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.navbar-hc .nav-link:hover,
.navbar-hc .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
}

.navbar-hc .nav-link i {
    font-size: .8rem;
    opacity: .7;
}

/* Netzwerk-Badge */
.navbar-hc .net-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 99px;
    border: 1px solid;
}

.navbar-hc .net-badge.testnet {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.3);
    color: #fbbf24;
}

.navbar-hc .net-badge.mainnet {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.navbar-hc .net-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.navbar-hc .net-badge.testnet .dot { background: #fbbf24; }
.navbar-hc .net-badge.mainnet .dot { background: #34d399; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* CTA-Button im Header */
.navbar-hc .btn-nav-cta {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff !important;
    border: none;
    border-radius: .5rem;
    padding: .4rem 1rem !important;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
    transition: all .2s;
}

.navbar-hc .btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    color: #fff !important;
    background: linear-gradient(135deg, #4338ca, #4f46e5);
}

/* Ghost-Button */
.navbar-hc .btn-nav-ghost {
    color: rgba(255,255,255,.7) !important;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: .5rem;
    padding: .4rem 1rem !important;
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s;
    background: transparent;
}

.navbar-hc .btn-nav-ghost:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.06);
}

/* Sprachauswahl */
.navbar-hc .lang-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    border-radius: .5rem;
    padding: .35rem .7rem;
    font-size: .8rem;
    transition: all .18s;
}

.navbar-hc .lang-btn:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.2);
}

.navbar-hc .dropdown-menu {
    background: #141620;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    padding: .35rem;
    min-width: 150px;
}

.navbar-hc .dropdown-item {
    color: rgba(255,255,255,.65);
    border-radius: .5rem;
    padding: .45rem .75rem;
    font-size: .85rem;
    transition: all .15s;
}

.navbar-hc .dropdown-item:hover,
.navbar-hc .dropdown-item.active {
    background: rgba(99,102,241,.15);
    color: #fff;
}

/* Toggler */
.navbar-hc .navbar-toggler {
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: .5rem;
    padding: .35rem .6rem;
    color: rgba(255,255,255,.7);
}

.navbar-hc .navbar-toggler:focus { box-shadow: none; }

/* Mobile collapse */
@media (max-width: 991px) {
    .navbar-hc .navbar-collapse {
        background: rgba(8,10,18,.97);
        border: 1px solid rgba(255,255,255,.06);
        border-radius: .75rem;
        margin-top: .5rem;
        padding: .75rem;
    }
    .navbar-hc .nav-link {
        border-bottom: 1px solid rgba(255,255,255,.05) !important;
        border-radius: 0 !important;
        padding: .6rem .5rem !important;
    }
    .navbar-hc .nav-link:last-child { border-bottom: none !important; }
    .navbar-hc .btn-nav-cta,
    .navbar-hc .btn-nav-ghost { width: 100%; margin-top: .35rem; text-align: center; justify-content: center; }
    .navbar-hc .lang-btn { width: 100%; margin-top: .35rem; }
    .navbar-hc .dropdown-menu { position: static !important; width: 100%; }
    .navbar-hc .ms-lg-3 { margin-left: 0 !important; }
}

/* theme-color für scrolled */
@media (prefers-color-scheme: dark) {
    .navbar-hc { background: rgba(5, 7, 14, 0.92) !important; }
}
