/*
Theme Name: Dantec Service
Theme URI: https://dantec-service.de/
Author: Dantec Service
Author URI: https://dantec-service.de/
Description: Modernes WordPress-Theme für Dantec Service – Elektroservice, Kabelverlegung und Planung.
Version: 1.0.3
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dantec-service
*/

:root {
    --ds-primary: #0f172a;
    --ds-accent: #facc15;
    --ds-text: #1e293b;
    --ds-text-light: #64748b;
    --ds-white: #ffffff;
    --ds-gray-bg: #f8fafc;
    --ds-border: #e2e8f0;
    --ds-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
    --ds-radius: 12px;
    --ds-transition: 0.3s ease;
    --ds-max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--ds-text); line-height: 1.7; background: var(--ds-white); overflow-x: hidden; }
a { color: var(--ds-primary); text-decoration: none; transition: color var(--ds-transition); }
a:hover { color: var(--ds-accent); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; margin-bottom: 1rem; color: var(--ds-primary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.25rem; }
ul, ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--ds-max-width); margin: 0 auto; padding: 0 1.5rem; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

.site-header {
    background: var(--ds-white);
    border-bottom: 1px solid var(--ds-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.header-container {
    max-width: var(--ds-max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-title { font-size: 1.5rem; font-weight: 800; color: var(--ds-primary); margin: 0; }
.site-title a { color: var(--ds-primary); }
.site-description { font-size: 0.875rem; color: var(--ds-text-light); margin: 0; }
.site-navigation { flex: 1 1 300px; }
.primary-menu { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.primary-menu a { font-weight: 600; font-size: 0.95rem; color: var(--ds-text); }
.primary-menu a:hover { color: var(--ds-accent); }
.header-btn { background-color: var(--ds-primary); color: var(--ds-white) !important; padding: 0.75rem 1.5rem; border-radius: var(--ds-radius); font-weight: 600; }
.header-btn:hover { background-color: var(--ds-accent); color: var(--ds-primary) !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle-icon { display: block; width: 24px; height: 2px; background-color: var(--ds-text); position: relative; transition: background var(--ds-transition); }
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--ds-text); transition: all var(--ds-transition); }
.menu-toggle-icon::before { top: -7px; }
.menu-toggle-icon::after { bottom: -7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: rotate(45deg); top: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: rotate(-45deg); bottom: 0; }

.hero {
    background: linear-gradient(135deg, var(--ds-primary) 0%, #1e3a8a 100%);
    color: var(--ds-white);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: 3rem; color: var(--ds-white); margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; color: #cbd5e1; margin-bottom: 2rem; }
.services-intro { padding: 4rem 1.5rem; background: var(--ds-gray-bg); }
.services-intro h2 { text-align: center; margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    padding: 2rem;
    transition: transform var(--ds-transition), box-shadow var(--ds-transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--ds-shadow); border-color: var(--ds-accent); }
.service-card-image { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 1.25rem; }
.service-card h3 { margin-bottom: 0.75rem; }
.site-main { padding: 3rem 1.5rem; }
.page-wrapper, .single-wrapper, .archive-wrapper, .error-wrapper { max-width: 800px; margin: 0 auto; }
.page-content, .single-content { font-size: 1.05rem; }
.single-featured-image { width: 100%; height: 350px; object-fit: cover; border-radius: var(--ds-radius); margin-bottom: 2rem; }
.btn { display: inline-block; padding: 0.875rem 1.75rem; border: none; border-radius: var(--ds-radius); font-size: 1rem; font-weight: 600; text-align: center; cursor: pointer; transition: all var(--ds-transition); }
.btn-primary { background-color: var(--ds-primary); color: var(--ds-white); }
.btn-primary:hover { background-color: var(--ds-accent); color: var(--ds-primary); transform: translateY(-2px); box-shadow: var(--ds-shadow); }
.btn-small { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.dantec-contact-form {
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    padding: 2.5rem;
    max-width: 650px;
    margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--ds-text); }
.form-group input, .form-group textarea { width: 100%; padding: 0.875rem; border: 1px solid var(--ds-border); border-radius: 8px; font-family: inherit; font-size: 1rem; transition: border-color var(--ds-transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--ds-primary); }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; }
.form-checkbox input { width: auto; margin-top: 0.25rem; }
.dantec-contact-message { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 600; }
.dantec-contact-message.success { background: #d1fae5; color: #065f46; border: 1px solid #86efac; }
.dantec-contact-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.required { color: #dc2626; }
.site-footer {
    background-color: var(--ds-primary);
    color: var(--ds-white);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
}
.footer-container { max-width: var(--ds-max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo img { max-width: 180px; height: auto; }
.footer-site-title { font-size: 1.5rem; color: var(--ds-accent); margin-bottom: 1rem; }
.footer-about p { color: #cbd5e1; margin-bottom: 0; }
.footer-menu-list { list-style: none; }
.footer-menu-list li { margin-bottom: 0.75rem; }
.footer-menu-list a { color: #cbd5e1; font-size: 0.95rem; }
.footer-menu-list a:hover { color: var(--ds-accent); }
.footer-contact h3 { color: var(--ds-white); margin-bottom: 1rem; }
.footer-contact p { color: #cbd5e1; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; }
.footer-contact a { color: #cbd5e1; }
.footer-contact a:hover { color: var(--ds-accent); }
.footer-contact i { color: var(--ds-accent); width: 20px; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-legal a { color: #cbd5e1; margin: 0 0.5rem; font-size: 0.9rem; }
.footer-legal a:hover { color: var(--ds-accent); }
.separator { color: #475569; }
.footer-copyright { color: #94a3b8; font-size: 0.9rem; }
.error-wrapper { text-align: center; padding: 4rem 1rem; }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .menu-wrapper { position: absolute; top: 100%; left: 0; right: 0; background: var(--ds-white); border-top: 1px solid var(--ds-border); display: none; padding: 1rem; }
    .menu-wrapper.menu-open { display: block; }
    .primary-menu { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .primary-menu a { display: block; padding: 0.5rem 0; }
    .hero h1 { font-size: 2.25rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal a { display: block; margin: 0.5rem 0; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .dantec-contact-form { padding: 1.5rem; }
}