/**
 * KI-Dresden - Template Styles
 * text-columns, faq, testimonials, pricing, image-text, hero-buttons
 */

/* ===== HERO BUTTONS ===== */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.hero-btn.primary {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
}

.hero-btn.primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* ===== TEXT COLUMNS ===== */
.section-text-columns {
    padding: var(--section-padding) var(--container-padding);
}

.section-text-columns .container {
    max-width: 1200px;
    margin: 0 auto;
}

.tc-headline {
    text-align: center;
    margin-bottom: 1rem;
}

.tc-subheadline {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.tc-grid {
    display: grid;
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .tc-grid-2,
    .tc-grid-3,
    .tc-grid-4 {
        grid-template-columns: 1fr;
    }
}

.tc-column {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.tc-highlight {
    background: var(--color-secondary, #ff6b35);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
}

.tc-icon {
    margin-bottom: 1rem;
    color: var(--color-primary, #1a365d);
}
.tc-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.tc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

.tc-highlight .tc-title {
    color: white;
}
.tc-highlight .tc-icon {
    color: white;
}
.tc-highlight a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.tc-text {
    color: var(--color-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.tc-highlight .tc-text {
    color: rgba(255, 255, 255, 0.9);
}

.tc-list {
    list-style: none;
    padding: 0;
}

.tc-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.tc-list-positive li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
}

.tc-list-negative li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--color-danger, #d32f2f);
    font-weight: 700;
}

/* Comparison layout */
.tc-comparison .tc-column:first-child {
    border: 2px solid var(--color-secondary);
}

.tc-comparison .tc-column:last-child {
    border: 2px solid #eee;
}

/* ===== FAQ ACCORDION ===== */
.section-faq {
    padding: var(--section-padding) var(--container-padding);
}

.section-faq .container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-headline {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item[open] {
    border-color: var(--color-primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    cursor: pointer;
    list-style: none;
    transition: background 0.3s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: rgba(0, 102, 204, 0.05);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.section-testimonials {
    padding: var(--section-padding) var(--container-padding);
}

.section-testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-testimonials .section-headline {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--color-secondary);
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-gray);
    margin: 0 0 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--color-primary-dark);
    font-size: 1rem;
}

.testimonial-author span {
    color: #999;
    font-size: 0.85rem;
}

.testimonials-link {
    text-align: center;
    margin-top: 2rem;
}

.testimonials-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonials-link a:hover {
    text-decoration: underline;
}

/* ===== PRICING ===== */
.section-pricing {
    padding: var(--section-padding) var(--container-padding);
}

.section-pricing .container {
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-headline {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.pricing-featured {
    border-color: var(--color-primary);
    position: relative;
}

.pricing-featured::before {
    content: "Empfohlen";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--color-gray);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-check {
    color: var(--color-secondary);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    background: #f0f0f0;
    color: var(--color-primary-dark);
}

.pricing-button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.pricing-button.primary {
    background: var(--color-primary);
    color: white;
}

.pricing-button.primary:hover {
    background: var(--color-primary-dark);
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== IMAGE + TEXT ===== */
.section-image-text {
    padding: var(--section-padding) var(--container-padding);
}

.section-image-text .container {
    max-width: 1200px;
    margin: 0 auto;
}

.it-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.it-reverse {
    direction: rtl;
}

.it-reverse > * {
    direction: ltr;
}

.it-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.it-text {
    color: var(--color-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.it-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.it-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .it-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .it-reverse {
        direction: ltr;
    }
}

/* ===== CASE STUDY CARDS (for use-cases page) ===== */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.case-study-card .cs-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 3px solid var(--color-primary);
}

.case-study-card .cs-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 600;
}

.case-study-card h3 {
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin-top: 0.5rem;
}

.case-study-card .cs-body {
    padding: 1.5rem 2rem;
}

.case-study-card .cs-section {
    margin-bottom: 1rem;
}

.case-study-card .cs-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.case-study-card .cs-section p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* ===== FORM ENHANCEMENTS ===== */
.form-message {
    display: none;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-gray-light, #e8e8e8);
    font-family: var(--font-main);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.case-study-card .cs-result {
    background: rgba(0, 102, 204, 0.05);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* ================================================
   Gallery Template
   ================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.03);
}

.gallery-caption {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--color-text-muted, #666);
    text-align: center;
}

/* ================================================
   Legal Template
   ================================================ */

.legal-section .legal-content {
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--color-text-muted, #555);
}

.legal-section .legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-primary-dark, #333);
}

.legal-section .legal-content p {
    margin-bottom: 1rem;
}

.legal-section .legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ================================================
   Profile Template
   ================================================ */

.profile-section .profile-image img {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .profile-section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .profile-section .profile-image img {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* ===========================
   Social Media Bar
   =========================== */

.social-media-bar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-media-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-media-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-media-link:hover {
    transform: scale(1.1);
}

.social-media-link svg {
    width: 18px;
    height: 18px;
}

/* Top Bar */
.social-media-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--color-primary-dark, #003366);
    color: white;
    padding: 0.4rem 1rem;
    justify-content: flex-end;
}

.social-media-top-bar .social-media-link {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
}

.social-media-top-bar .social-media-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-media-top-bar .social-media-link svg {
    width: 14px;
    height: 14px;
}

body.has-social-top-bar .main-nav {
    top: 36px;
}

/* Footer */
.social-media-footer {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

.social-media-footer .social-media-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.social-media-footer .social-media-link:hover {
    background: var(--color-secondary);
    color: var(--color-primary-dark, #003366);
}

/* Floating */
.social-media-floating {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    flex-direction: column;
    background: white;
    padding: 0.75rem 0.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.social-media-floating .social-media-links {
    flex-direction: column;
    gap: 0.5rem;
}

.social-media-floating .social-media-link {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    color: var(--color-primary-dark, #003366);
}

.social-media-floating .social-media-link:hover {
    background: var(--color-primary);
    color: white;
}

/* Platform hover colors */
.social-media-link.social-media-facebook:hover { background: #1877f2 !important; color: white !important; }
.social-media-link.social-media-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; color: white !important; }
.social-media-link.social-media-linkedin:hover { background: #0a66c2 !important; color: white !important; }
.social-media-link.social-media-tiktok:hover { background: #000 !important; color: white !important; }
.social-media-link.social-media-youtube:hover { background: #ff0000 !important; color: white !important; }
.social-media-link.social-media-xing:hover { background: #006567 !important; color: white !important; }
.social-media-link.social-media-twitter:hover { background: #000 !important; color: white !important; }
.social-media-link.social-media-pinterest:hover { background: #e60023 !important; color: white !important; }
.social-media-link.social-media-whatsapp:hover { background: #25d366 !important; color: white !important; }

/* Edit mode adjustments */
body.has-social-top-bar.edit-mode .edit-mode-banner { top: 36px; }
body.has-social-top-bar.edit-mode .main-nav { top: 76px; }

@media (max-width: 768px) {
    .social-media-top-bar { justify-content: center; padding: 0.3rem 0.5rem; }
    .social-media-top-bar .social-media-links { gap: 0.25rem; }
    .social-media-top-bar .social-media-link { width: 24px; height: 24px; }
    .social-media-top-bar .social-media-link svg { width: 12px; height: 12px; }
    body.has-social-top-bar .main-nav { top: 30px; }
    body.has-social-top-bar.edit-mode .edit-mode-banner { top: 30px; }
    body.has-social-top-bar.edit-mode .main-nav { top: 70px; }
    .social-media-floating { right: 0.5rem; padding: 0.5rem 0.35rem; }
    .social-media-floating .social-media-link { width: 32px; height: 32px; }
    .social-media-floating .social-media-link svg { width: 14px; height: 14px; }
}
