/*
Theme Name: SoftBay
Theme URI: https://softbay.de
Author: SoftBay GmbH
Description: Custom Theme für SoftBay - IT-Helpdesk, Systemhaus und Cloud-Lösungen.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: softbay
*/

/* ============ 1. RESET & VARIABLEN ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --color-dark: #2c3e50;
    --color-dark-2: #1a252f;
    --color-light: #f4f6f8;
    --color-white: #ffffff;
    --color-accent: #f39c12;
    --color-accent-hover: #e67e22;
    --color-text: #4a5568;
    --color-border: #e2e8f0;
    --font-main: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    --max-width: 1280px;
    --radius: 6px;
    --shadow: 0 2px 10px rgba(0,0,0,0.06);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--color-text); line-height: 1.6; background: var(--color-white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--color-dark); font-weight: 700; line-height: 1.2; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 5%; }
.section { padding: 80px 0; }
.section-light { background: var(--color-light); }
.section-dark { background: var(--color-dark); color: var(--color-white); }
.section-dark h2 { color: var(--color-white); }
.accent { color: var(--color-accent); }
.section-header { text-align: center; margin-bottom: 20px; }
.section-header .subtitle { color: var(--color-text); font-size: 1rem; margin-top: 6px; }

/* ============ 2. BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: 0.25s; white-space: nowrap; }
.btn-accent { background: var(--color-accent); color: var(--color-white); }
.btn-accent:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-dark); border: 2px solid var(--color-dark); }
.btn-outline:hover { background: var(--color-dark); color: var(--color-white); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ============ 3. TOP-LEISTE ============ */
.top-bar { background: var(--color-dark); color: var(--color-white); font-size: 0.85rem; padding: 10px 5%; }
.top-bar-inner { display: flex; justify-content: flex-end; gap: 28px; max-width: var(--max-width); margin: 0 auto; flex-wrap: wrap; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-item a:hover { color: var(--color-accent); }
.top-bar-item .icon { color: var(--color-accent); }

/* ============ 4. HEADER ============ */
.site-header { background: var(--color-white); padding: 18px 5%; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; position: relative; }
.site-branding { flex-shrink: 0; }
.custom-logo { max-height: 55px; width: auto; }
.logo { font-size: 1.9rem; font-weight: 800; color: var(--color-dark); letter-spacing: -0.5px; }
.logo span { color: var(--color-accent); }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--color-dark); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-search { margin: 0; }
.search-box { border: 1px solid var(--color-border); padding: 10px 14px; border-radius: var(--radius); font-size: 0.9rem; width: 180px; background: var(--color-white); transition: 0.2s; }
.search-box:focus { outline: none; border-color: var(--color-accent); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--color-dark); }

/* ============ 5. HERO ============ */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--color-white); background: linear-gradient(rgba(26,37,47,0.65), rgba(26,37,47,0.65)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80') center/cover no-repeat; padding: 60px 5%; }
.hero-content { max-width: 900px; }
.hero h1 { color: var(--color-white); font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero .outline { -webkit-text-stroke: 2px var(--color-white); color: transparent; display: block; font-weight: 400; }
.hero p { font-size: 1.4rem; font-weight: 300; color: rgba(255,255,255,0.9); }

/* ============ 6. PROZESS ============ */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 18px; margin-top: 50px; }
.process-card { background: var(--color-white); padding: 40px 24px; text-align: center; border-radius: var(--radius); box-shadow: var(--shadow); transition: 0.3s; }
.process-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.process-card .icon { font-size: 2rem; color: var(--color-accent); margin-bottom: 14px; }
.process-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-card p { font-size: 0.9rem; }
.process-cta { background: var(--color-accent); color: var(--color-white); padding: 40px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: var(--radius); cursor: pointer; transition: 0.3s; }
.process-cta:hover { background: var(--color-accent-hover); transform: translateY(-5px); }
.process-cta h3 { color: var(--color-white); font-size: 1.3rem; line-height: 1.3; }

/* ============ 7. STATS ============ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .stat-number { font-size: 3.2rem; font-weight: 800; color: var(--color-accent); line-height: 1; margin-bottom: 12px; }
.stat-item h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--color-dark); }
.stat-item p { font-size: 0.9rem; }

/* ============ 8. LEISTUNGSPAKETE ============ */
.packages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.package-card { background: var(--color-white); padding: 35px 30px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 18px; transition: 0.3s; }
.package-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.package-card .icon { font-size: 2rem; color: var(--color-accent); }
.package-card h3 { margin: 0; font-size: 1.2rem; }
.package-cta { background: var(--color-accent); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; cursor: pointer; border-radius: var(--radius); padding: 35px 30px; text-align: center; transition: 0.3s; }
.package-cta:hover { background: var(--color-accent-hover); transform: translateY(-4px); }

/* ============ 9. KOMPETENZ-GRID ============ */
.competence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 45px; }
.competence-card { background: var(--color-white); padding: 40px 26px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: 0.3s; }
.competence-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.competence-card .icon { font-size: 2.2rem; color: var(--color-accent); margin-bottom: 16px; }
.competence-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.competence-card p { font-size: 0.9rem; }

/* ============ 10. VORTEILE ============ */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.advantage-item { display: flex; gap: 16px; align-items: flex-start; }
.advantage-item .icon { font-size: 2rem; color: var(--color-accent); flex-shrink: 0; }
.advantage-item h4 { color: var(--color-accent); margin-bottom: 6px; font-size: 1.05rem; }
.advantage-item p { font-size: 0.92rem; }

/* ============ 11. FOOTER ============ */
.site-footer { background: var(--color-dark-2); color: rgba(255,255,255,0.75); padding: 60px 5% 20px; font-size: 0.9rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 { color: var(--color-white); margin-bottom: 18px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-logo { font-size: 1.6rem; font-weight: 800; color: var(--color-white); margin-bottom: 14px; }
.footer-logo span { color: var(--color-accent); }
.footer-social { display: flex; gap: 12px; margin-top: 15px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.footer-social a:hover { background: var(--color-accent); }
.footer-bottom { max-width: var(--max-width); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--color-accent); }

/* ============ 12. FLOATING BUTTONS ============ */
.floating-buttons { position: fixed; right: 20px; bottom: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.floating-btn { width: 56px; height: 56px; background: var(--color-white); border: 2px solid #e74c3c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 4px 15px rgba(0,0,0,0.15); cursor: pointer; transition: 0.3s; }
.floating-btn:hover { transform: scale(1.1); }
.floating-btn.red { color: #e74c3c; }

/* ============ 13. SEITEN-LAYOUT (page.php) ============ */
.page-layout { display: grid; grid-template-columns: 280px 1fr; gap: 60px; padding: 60px 5%; max-width: var(--max-width); margin: 0 auto; }
.page-sidebar { position: sticky; top: 100px; align-self: start; }
.page-sidebar .widget { margin-bottom: 30px; }
.page-sidebar .widget-title { font-size: 1rem; color: var(--color-dark); padding: 12px 15px; background: var(--color-light); border-radius: var(--radius); margin-bottom: 12px; }
.page-sidebar ul li a { display: block; padding: 10px 15px; font-size: 0.92rem; color: var(--color-text); border-radius: var(--radius); }
.page-sidebar ul li a:hover { background: var(--color-light); color: var(--color-accent); }
.page-sidebar ul li.current-menu-item a { background: var(--color-light); color: var(--color-accent); font-weight: 600; }
.page-content h1 { font-size: 2.4rem; margin-bottom: 20px; color: var(--color-accent); }
.page-content h2 { font-size: 1.8rem; margin: 40px 0 15px; color: var(--color-accent); }
.page-content p { margin-bottom: 18px; }
.page-content ul { margin: 15px 0 20px 20px; }
.page-content ul li { margin-bottom: 8px; position: relative; padding-left: 15px; }
.page-content ul li::before { content: "▸"; color: var(--color-accent); position: absolute; left: 0; }
.page-content hr { border: none; border-top: 1px solid var(--color-border); margin: 40px 0; }

/* ============ 14. 404 ============ */
.error-404 { text-align: center; padding: 120px 5%; }
.error-404 h1 { font-size: 6rem; color: var(--color-accent); }
.error-404 p { font-size: 1.2rem; margin: 20px 0 30px; }

/* ============ 15. RESPONSIVE ============ */
@media (max-width: 1100px) {
    .process-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .competence-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .page-layout { grid-template-columns: 220px 1fr; gap: 40px; }
}
@media (max-width: 900px) {
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white); box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding: 20px 5%; display: none; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul li { border-bottom: 1px solid var(--color-border); }
    .main-nav ul li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: 14px 0; border-bottom: none; }
    .menu-toggle { display: block; }
    .header-search { display: none; }
    .hero h1 { font-size: 2.6rem; }
    .hero p { font-size: 1.1rem; }
    h2 { font-size: 1.7rem; }
    .page-layout { grid-template-columns: 1fr; }
    .page-sidebar { position: static; }
}
@media (max-width: 700px) {
    .top-bar-inner { justify-content: center; gap: 12px; }
    .process-grid, .packages-grid, .competence-grid, .advantages-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .header-actions .btn span { display: none; }
    .hero h1 { font-size: 2rem; }
    .stat-item .stat-number { font-size: 2.4rem; }
}