/*
 Theme Name: FINY-IT Custom Theme
 Author: David Finley Blauensteiner
 Description: Individuelles Theme für IT-Dienstleistungen, PC-Bau und Reparatur.
 Version: 1.1 (Cleaned & Optimized)
 Text Domain: finy-it
 */

/* --- Global Variables --- */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --card-bg: #1e293b;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- Reset & Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-darker { background-color: var(--bg-darker); }
.highlight { color: var(--primary); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar { background-color: rgba(15, 23, 42, 0.95); padding: 20px 0; position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid #1e293b; backdrop-filter: blur(10px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.dot { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active-page { color: var(--primary); }
.nav-links a.active-page { border-bottom: 2px solid var(--primary); }
.btn-nav { background-color: var(--primary); padding: 8px 20px; border-radius: 4px; color: white !important; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; padding-top: 80px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- Services Grid --- */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background-color: var(--card-bg); padding: 40px 30px; border-radius: 10px; text-align: center; transition: transform 0.3s; border: 1px solid transparent; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.service-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; }
.service-card p { color: var(--text-gray); font-size: 0.9rem; }

/* --- Detail Sections --- */
.split-layout { display: flex; align-items: center; gap: 50px; }
.split-layout.reverse { flex-direction: row-reverse; }
.text-content { flex: 1; }
.text-content h2 { font-size: 2rem; margin-bottom: 20px; color: var(--primary); }
.text-content p { margin-bottom: 20px; color: var(--text-gray); }
.feature-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.feature-list i { color: var(--primary); }
.image-content { flex: 1; }
.placeholder-img { width: 100%; height: 300px; background-color: var(--card-bg); border: 2px dashed var(--text-gray); display: flex; align-items: center; justify-content: center; color: var(--text-gray); border-radius: 10px; }

/* --- Portfolio / Galerie Styles --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.gallery-item { background-color: var(--card-bg); border-radius: 10px; overflow: hidden; transition: transform 0.3s ease; position: relative; cursor: pointer; }
.gallery-item:hover { transform: translateY(-5px); }
.gallery-link-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
.gallery-img-container { height: 200px; background-color: #334155; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.placeholder-img-small { color: var(--text-gray); font-size: 0.9rem; }
.gallery-img-container img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-img-container img { transform: scale(1.05); }
.gallery-info { padding: 20px; border-bottom: 2px solid transparent; transition: border-color 0.3s; }
.gallery-item:hover .gallery-info { border-bottom-color: var(--primary); }
.gallery-info h4 { margin-bottom: 5px; color: var(--text-light); }
.gallery-info p { font-size: 0.9rem; color: var(--text-gray); }

/* --- Projekte / Blog Ansicht --- */
.page-header { padding-top: 140px; padding-bottom: 60px; background-color: var(--bg-darker); text-align: center; border-bottom: 1px solid #334155; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; color: white; }
.page-header p { color: var(--text-gray); font-size: 1.1rem; }
.project-post { display: flex; gap: 40px; margin-bottom: 80px; align-items: center; background-color: var(--card-bg); padding: 30px; border-radius: 15px; border: 1px solid #334155; }
.project-post.reverse { flex-direction: row-reverse; }
.project-img { flex: 1; min-width: 300px; }
.project-img .placeholder-img { height: 250px; border-radius: 10px; }
.project-content { flex: 1.5; }
.project-content h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--text-light); }
.project-content p { color: var(--text-gray); margin-bottom: 20px; }

/* Tags & Kategorien */
.tags { margin-bottom: 15px; }
.tag { font-size: 0.8rem; padding: 4px 10px; border-radius: 20px; margin-right: 5px; font-weight: 600; text-transform: uppercase; background-color: rgba(255,255,255,0.1); color: #ccc; }
.tag-cat-reparatur { background-color: rgba(239, 68, 68, 0.2); color: #ef4444; } 
.tag-cat-loeten { background-color: rgba(245, 158, 11, 0.2); color: #f59e0b; } 
.tag-cat-pc-bau, .tag-pc { background-color: rgba(14, 165, 233, 0.2); color: #0ea5e9; } 
.tag-cat-entwicklung, .tag-dev { background-color: rgba(16, 185, 129, 0.2); color: #10b981; } 
.tag-cat-server, .tag-iot { background-color: rgba(139, 92, 246, 0.2); color: #8b5cf6; } 
.tag-hardware { background-color: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.tech-specs { background-color: var(--bg-dark); padding: 15px; border-radius: 8px; list-style: none; display: inline-block; min-width: 50%; }
.tech-specs li { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.tech-specs li:last-child { margin-bottom: 0; }
.tech-specs i { color: var(--primary); width: 20px; text-align: center; }
.text-link { color: var(--primary); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* --- WordPress Artikel-Bilder --- */
.post-text img, .wp-block-image img { max-width: 100%; height: auto !important; border-radius: 10px; margin: 30px auto; display: block; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.wp-block-image figcaption { color: var(--text-gray); text-align: center; font-size: 0.85rem; margin-top: -15px; margin-bottom: 30px; }

/* --- FAQ Accordion (Sauber & Bugfrei) --- */
.accordion { max-width: 800px; margin: 40px auto 0; }
.accordion-item { margin-bottom: 15px; border: 1px solid #334155; border-radius: 5px; background-color: var(--card-bg); overflow: hidden; }
.accordion-header { width: 100%; padding: 20px; background: none; border: none; outline: none; text-align: left; color: var(--text-light); font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s; }
.accordion-header:hover { background-color: rgba(255, 255, 255, 0.05); }
.accordion-header i { transition: transform 0.3s; font-size: 0.9rem; color: var(--primary); }
.accordion-header.active i { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: var(--bg-dark); }

/* NEU: Der innere Container für alle Inhalte im Accordion */
.accordion-content-inner { padding: 20px; border-top: 1px solid #334155; color: var(--text-gray); }
.accordion-content-inner p { margin-bottom: 15px; line-height: 1.6; }
.accordion-content-inner p:last-child { margin-bottom: 0; }

/* Formatierung speziell für den WordPress Editor (Hilfeseite) */
.accordion-content-inner strong,
.accordion-content-inner b,
.accordion-content-inner h3,
.accordion-content-inner h4 { color: #ffffff; display: block; margin-top: 20px; margin-bottom: 5px; font-weight: 600; }
.accordion-content-inner strong:first-child,
.accordion-content-inner b:first-child,
.accordion-content-inner h3:first-child,
.accordion-content-inner h4:first-child { margin-top: 0; }
.accordion-content-inner ul { margin-left: 20px; margin-bottom: 20px; }
.accordion-content-inner li { margin-bottom: 8px; }
.accordion-content-inner hr.wp-block-separator { border: none; border-top: 1px dashed #334155; margin: 25px 0; background: transparent; }

/* --- Contact Form (Basis) --- */
.contact { text-align: center; }
.section-subtitle { margin-bottom: 40px; color: var(--text-gray); }
.contact-form { max-width: 600px; margin: 0 auto; background-color: var(--card-bg); padding: 40px; border-radius: 10px; }

/* --- Fluent Forms Anpassungen --- */
.fluentform .ff-el-input--text, 
.fluentform .ff-el-input--email, 
.fluentform .ff-el-form-control,
.fluentform textarea { background-color: var(--bg-dark) !important; border: 1px solid #334155 !important; border-radius: 5px !important; color: white !important; padding: 12px !important; }
.fluentform .ff-el-input--text:focus, 
.fluentform .ff-el-input--email:focus, 
.fluentform .ff-el-form-control:focus,
.fluentform textarea:focus { border-color: var(--primary) !important; outline: none !important; }
.fluentform .ff-el-input--label { color: var(--text-light) !important; margin-bottom: 8px !important; font-weight: 500 !important; }
.fluentform .ff-btn-submit { background-color: var(--primary) !important; color: white !important; border-radius: 8px !important; padding: 12px 30px !important; width: 100% !important; font-weight: 600 !important; border: none !important; transition: all 0.3s ease !important; }
.fluentform .ff-btn-submit:hover { background-color: var(--primary-hover) !important; box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important; transform: translateY(-2px) !important; }

/* --- Footer --- */
footer { background-color: var(--bg-darker); border-top: 1px solid #1e293b; padding-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3 { color: var(--primary); margin-bottom: 20px; }
.footer-col h4 { margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--primary); }
.copyright { text-align: center; padding: 20px; border-top: 1px solid #1e293b; color: var(--text-gray); font-size: 0.9rem; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--bg-darker); flex-direction: column; padding: 20px; text-align: center; }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .split-layout, .split-layout.reverse { flex-direction: column; }
    .placeholder-img { height: 200px; }
    .project-post, .project-post.reverse { flex-direction: column; text-align: left; }
    .project-img { width: 100%; }
    .tech-specs { display: block; width: 100%; }
}