/*
 * Social Monitor – Website Shared Stylesheet
 * Design-Sprache identisch mit dem Tool (professional.css)
 */

/* ── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── Design Tokens (gespiegelt von professional.css) ────── */
:root {
    --brand-primary:      #1e3a5f;   /* = --sm-primary      */
    --brand-primary-dark: #152a45;   /* = --sm-primary-dark  */
    --brand-secondary:    #4a5568;   /* = --sm-secondary     */
    --brand-navy:         #0F172A;   /* Überschriften        */
    --text-body:          #5a7391;   /* = --sm-text-muted    */
    --text-dark:          #1a202c;   /* = --sm-text          */
    --bg-light:           #f1f3f5;   /* = --sm-bg            */
    --border-color:       #e2e8f0;   /* = --sm-border        */
    --card-bg:            #ffffff;
    /* Tier-Farben (Wiedererkennungswert zur App) */
    --tier-premium:       #ffc107;   /* = --sm-premium       */
    --tier-enterprise:    #6f42c1;   /* = --sm-enterprise    */
    --tier-pro:           #1e3a5f;
}

/* ── Base ───────────────────────────────────────────────── */
body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-body);
    background-color: #ffffff;
    line-height: 1.7;
    padding-top: 72px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    color: var(--brand-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
    background-color: var(--brand-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
}
.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}
.navbar-brand img {
    height: 36px;
    width: auto;
    margin-right: 8px;
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}
.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}
.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #ffffff !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-brand {
    background-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    border: 2px solid var(--brand-primary);
    transition: all 0.2s;
}
.btn-brand:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}
/* CTA in navbar – heller Kontrast auf dunklem Hintergrund */
.navbar .btn-brand {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.navbar .btn-brand:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: none;
}
.btn-outline-brand {
    background-color: transparent;
    color: var(--brand-primary);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.btn-outline-brand:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background-color: rgba(30, 58, 95, 0.04);
}

/* ── Focus Ring (WCAG 2.1) ──────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Sections ────────────────────────────────────────────── */
section {
    padding: 96px 0;
}
.section-header {
    max-width: 600px;
    margin: 0 auto 56px auto;
    text-align: center;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}
.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-body);
}

/* ── Cards ───────────────────────────────────────────────── */
.feature-card {
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.12);
    border-color: var(--brand-primary);
}
.icon-box {
    width: 44px;
    height: 44px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--brand-primary);
    font-size: 1.2rem;
}

/* Dark Feature Card */
.feature-card.dark {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.feature-card.dark h4 {
    color: #fff;
}
.feature-card.dark p {
    color: rgba(255, 255, 255, 0.75);
}
.feature-card.dark .icon-box {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ── Tech Bar ─────────────────────────────────────────────── */
.tech-bar {
    background-color: var(--brand-primary);
    border-bottom: 1px solid var(--brand-primary-dark);
    padding: 14px 0;
}
.tech-bar .tech-bar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
.tech-bar span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tech-bar .platform {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Use Cases ────────────────────────────────────────────── */
.usecase-list {
    list-style: none;
    padding: 0;
}
.usecase-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: flex-start;
}
.usecase-list li:last-child {
    border-bottom: none;
}
.usecase-icon {
    color: var(--brand-primary);
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border-left: 3px solid var(--border-color);
}
.pricing-card:hover {
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
}
/* Tier-Akzente (Wiedererkennungswert zur App) */
.pricing-card.tier-basic  { border-left-color: var(--brand-secondary); }
.pricing-card.tier-pro    { border-left-color: var(--tier-pro); }
.pricing-card.tier-premium    { border-left-color: var(--tier-premium); }
.pricing-card.tier-enterprise { border-left-color: var(--tier-enterprise); }

.pricing-card.highlight {
    border-color: var(--brand-primary);
    border-left-color: var(--tier-pro);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.15);
    position: relative;
}
.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}
.pricing-list li {
    padding: 9px 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--bg-light);
}
.pricing-list li:last-child {
    border-bottom: none;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
}
.form-control {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    border-radius: 6px;
    font-family: inherit;
    color: var(--text-dark);
}
.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.2);
    background-color: #fff;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    font-size: 0.9rem;
    background-color: var(--bg-light);
}
footer a {
    color: var(--text-body);
    text-decoration: none;
}
footer a:hover {
    color: var(--brand-primary);
}

/* ── 3D Carousel (Gallery) ────────────────────────────────── */
.gallery-container {
    perspective: 1200px;
    overflow: hidden;
    padding: 30px 0;
}
.gallery-wrapper {
    position: relative;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-slide {
    position: absolute;
    width: 720px;
    height: 400px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.75) translateX(0);
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.gallery-slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 15;
    pointer-events: auto;
}
.gallery-slide.prev {
    opacity: 0.4;
    transform: scale(0.65) translateX(-340px) rotateY(20deg);
    z-index: 8;
}
.gallery-slide.next {
    opacity: 0.4;
    transform: scale(0.65) translateX(340px) rotateY(-20deg);
    z-index: 8;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 60px 28px 24px;
    font-weight: 500;
    font-size: 1.1rem;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-primary);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 25;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-nav:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-50%) scale(1.08);
}
.gallery-nav.prev { left: 12%; }
.gallery-nav.next { right: 12%; }
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.gallery-dot.active {
    background: var(--brand-primary);
    transform: scale(1.5);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-title { font-size: 2.2rem; }
    section { padding: 60px 0; }
    .gallery-slide {
        width: 90%;
        height: 260px;
    }
    .gallery-slide.prev  { transform: scale(0.55) translateX(-25%); }
    .gallery-slide.next  { transform: scale(0.55) translateX(25%); }
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .gallery-nav.prev { left: 3%; }
    .gallery-nav.next { right: 3%; }
    .feature-card { padding: 24px; }
    .pricing-card { padding: 24px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title { font-size: 2.75rem; }
}
