/* ============================================
   KANZLEI KEIMES-DEBUS – Zentrales Stylesheet
   ============================================ */

/* === CSS-Reset & Design-Variablen === */
:root {
    --primary-color: #0f172a;
    --secondary-color: #f8fafc;
    --accent-color: #c2410c;
    --text-color: #334155;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.7; background-color: #ffffff; }
a { text-decoration: none; color: var(--accent-color); font-weight: 500; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-color); line-height: 1.3; }

/* === Shared Navigation / Header === */
header { background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #e2e8f0; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 3%; max-width: 1400px; margin: auto; }
.logo { font-size: 1.6rem; font-weight: bold; font-family: var(--font-heading); letter-spacing: 0.5px; white-space: nowrap; }
.logo a { display: flex; flex-direction: column; text-decoration: none; white-space: nowrap; line-height: 1; color: var(--primary-color); }
.logo-sub { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-color); font-weight: 700; margin-bottom: 2px; }
.logo-main { font-size: 1.6rem; font-weight: bold; font-family: var(--font-heading); letter-spacing: 0.5px; color: var(--primary-color); }
nav ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; margin-left: 1rem; margin-bottom: 0; }
nav a { font-weight: 500; font-size: 0.95rem; transition: color 0.3s; color: var(--text-color); white-space: nowrap; }
nav a:hover { color: var(--accent-color); text-decoration: none; }
.btn-nav { background: var(--accent-color); color: #fff !important; padding: 12px 28px; border-radius: 4px; font-weight: bold; display: inline-block; transition: all 0.3s; box-shadow: 0 4px 10px rgba(194, 65, 12, 0.2); text-decoration: none; border: none; }
.btn-nav:hover { background: #9a3412; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(194, 65, 12, 0.3); color: #fff !important; }

/* === Shared Footer / NAP === */
footer { background: var(--primary-color); color: #cbd5e1; text-align: center; padding: 3rem 5%; margin-top: 60px; }
.nap-container { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 2rem; font-size: 1.1rem; color: #fff; font-weight: bold; }
.footer-links a { color: #94a3b8; margin: 0 10px; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }

/* === Shared Buttons === */
.btn { background: var(--accent-color); color: #fff; padding: 12px 28px; border-radius: 4px; font-weight: bold; display: inline-block; transition: all 0.3s; box-shadow: 0 4px 10px rgba(194, 65, 12, 0.2); white-space: nowrap; }
.btn:hover { background: #9a3412; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(194, 65, 12, 0.3); color: #fff; }
.btn-main { background: var(--accent-color); color: #fff; padding: 15px 30px; border-radius: 4px; font-weight: bold; display: block; text-align: center; font-size: 1.2rem; margin: 40px auto; max-width: 400px; transition: 0.3s; text-decoration: none !important; }
.btn-main:hover { background: #9a3412; color: #fff; }

/* === Hero Section (Homepage + Category Pages) === */
.hero {
    background: linear-gradient(rgba(241, 245, 249, 0.88), rgba(255, 255, 255, 1)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80') center/cover;
    color: var(--primary-color);
    text-align: center;
    padding: 100px 20px 70px;
}
.hero h1 { color: var(--primary-color); font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.5px; }
.hero p { font-size: 1.15rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; color: #475569; font-weight: 500; }

/* === Fachanwalt Badge (Homepage) === */
.fachanwalt-badge {
    background: var(--accent-color);
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 30px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(194, 65, 12, 0.4);
}

/* === About Grid (Homepage) === */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; background: var(--secondary-color); padding: 40px; border-radius: 10px; border: 1px solid #e2e8f0; }
.about-image { width: 100%; max-width: 250px; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); border: 3px solid #fff; }
.about-text h3 { font-size: 1.6rem; margin-bottom: 15px; }
.about-text p { font-size: 1.05rem; margin-bottom: 12px; color: #475569; }

/* === Content Sections === */
section { padding: 50px 5%; max-width: 1200px; margin: auto; }
section > h2 { font-size: 2.2rem; margin-bottom: 2rem; text-align: center; position: relative; }
section > h2::after { content: ''; width: 50px; height: 3px; background: var(--accent-color); display: block; margin: 12px auto 0; }

/* === Service Cards Grid === */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.services-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; padding: 2.5rem 2rem; border-radius: 8px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.04); transition: all 0.3s ease; border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: space-between; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.card p { color: #64748b; margin-bottom: 25px; font-size: 0.95rem; }
.card-link { font-weight: bold; color: var(--accent-color); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }

/* === Google Maps Section === */
.map-container { width: 100%; height: 350px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-top: 10px; border: 1px solid #e2e8f0; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* === Areas Served & Formulare === */
.advanced-seo-links, .formulare-teaser { background: var(--secondary-color); padding: 2.5rem; border: 1px solid #e2e8f0; border-radius: 8px; margin-top: 1rem; text-align: center; }
.advanced-seo-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 15px; }
.advanced-seo-links li a { background: #fff; padding: 8px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 500; border: 1px solid #cbd5e1; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.advanced-seo-links li a:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* === Article Header (Service + Area Pages) === */
.article-header { background: var(--primary-color); color: #fff; padding: 60px 5%; text-align: center; }
.article-header h1 { color: #fff; font-size: 2.8rem; margin-bottom: 15px; line-height: 1.2; }
.article-header p { font-size: 1.2rem; color: #cbd5e1; max-width: 800px; margin: auto; }

/* === Article Container (Service + Area Pages) === */
.article-container { max-width: 850px; margin: 40px auto; background: #fff; padding: 50px 60px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.article-container h2 { font-size: 1.8rem; margin-top: 40px; margin-bottom: 15px; border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; }
.article-container h3 { font-size: 1.4rem; margin-top: 30px; margin-bottom: 10px; }
.article-container p { margin-bottom: 20px; font-size: 1.1rem; }
.article-container ul, .article-container ol { margin-bottom: 20px; margin-left: 20px; font-size: 1.1rem; }
.article-container li { margin-bottom: 10px; }

/* === Area Page Specific (no white article box) === */
.article-container.area-page { background: transparent; box-shadow: none; max-width: 900px; padding: 0 20px; }

/* === Alert Box === */
.alert-box { background: #fff7ed; border-left: 5px solid var(--accent-color); padding: 20px; margin: 30px 0; border-radius: 0 8px 8px 0; }
.alert-box strong { color: var(--accent-color); font-size: 1.2rem; display: block; margin-bottom: 5px; }

/* === FAQ Section (Article Pages) === */
.faq-item { margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.faq-question { background: var(--secondary-color); padding: 15px 20px; font-weight: bold; color: var(--primary-color); font-size: 1.1rem; border-bottom: 1px solid #e2e8f0; }
.faq-answer { padding: 20px; background: #fff; font-size: 1.05rem; }

/* Area page FAQ variant */
.faq-section { background: var(--secondary-color); padding: 30px; border-radius: 12px; margin-top: 50px; }
.faq-section .faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; }
.faq-section .faq-item strong { color: var(--primary-color); font-size: 1.1rem; display: block; margin-bottom: 10px; }

/* === Service List Cards (Area Pages) === */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 30px 0; }
.service-card { background: #fff; border: 1px solid #e2e8f0; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.service-card h4 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.2rem; }

/* === Internal Links Section === */
.internal-links { background: var(--secondary-color); padding: 30px; border-radius: 8px; margin-top: 50px; text-align: center; }
.internal-links h3 { margin-top: 0; margin-bottom: 15px; border: none; }
.internal-links a { display: inline-block; background: #fff; padding: 8px 15px; margin: 5px; border-radius: 20px; border: 1px solid #cbd5e1; font-size: 0.95rem; }
.internal-links a:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* === Responsive === */
@media (max-width: 1024px) {
    nav ul { gap: 1rem; }
    nav a { font-size: 0.85rem; }
    .btn-nav { padding: 10px 20px; }
    .services-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .services-grid.grid-3 { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { margin: 0 auto; }
    nav ul { display: none; }
}
@media (max-width: 768px) {
    .article-container { padding: 30px 20px; margin: 20px; }
    .hero h1 { font-size: 2rem; }
    .article-header h1 { font-size: 2rem; }
}

/* === Kontakt Page === */
.page-header { background: var(--primary-color); color: #fff; padding: 60px 5%; text-align: center; }
.page-header h1 { color: #fff; font-size: 2.8rem; margin-bottom: 15px; line-height: 1.2; }
.page-header p { font-size: 1.2rem; color: #cbd5e1; max-width: 800px; margin: auto; }
.contact-container { max-width: 1000px; margin: 40px auto; padding: 40px 5%; }
.contact-info { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.info-block { margin-bottom: 20px; }
.map-small { width: 100%; height: 350px; border-radius: 8px; border: 1px solid #e2e8f0; margin-top: 30px; }

/* === Lebenslauf Page === */
.hero-mini { background: linear-gradient(rgba(241, 245, 249, 0.95), rgba(255, 255, 255, 1)), url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?auto=format&fit=crop&q=80') center/cover; color: var(--primary-color); text-align: center; padding: 60px 20px 40px; }
.hero-mini h1 { font-size: 2.5rem; margin-bottom: 10px; }
.content-wrap { max-width: 1000px; margin: 0 auto 60px; padding: 0 5%; }
.quote-box { font-size: 1.4rem; font-style: italic; text-align: center; color: var(--accent-color); padding: 40px; background: #fff7ed; border-radius: 8px; margin-bottom: 40px; font-weight: 500; border-left: 5px solid var(--accent-color); }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.cv-section { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.cv-list { list-style: none; margin-bottom: 20px; }
.cv-list li { margin-bottom: 12px; display: flex; gap: 15px; }
.cv-year { font-weight: bold; color: var(--accent-color); min-width: 90px; }
.text-block { margin-bottom: 20px; line-height: 1.8; font-size: 1.05rem; }

/* === Formulare Page === */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin: 30px 0 50px; }
.download-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: space-between; }
.download-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.download-card p { color: #64748b; font-size: 0.95rem; margin-bottom: 20px; }
.btn-dl { display: inline-block; background: var(--secondary-color); color: var(--primary-color); padding: 12px 20px; border-radius: 4px; text-align: center; font-weight: bold; margin-top: 20px; border: 1px solid #cbd5e1; transition: all 0.3s; }
.btn-dl:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); text-decoration: none; }

/* Responsive Overrides */
@media (max-width: 768px) {
    .cv-grid { grid-template-columns: 1fr; }
    .contact-container, .content-wrap { padding: 20px; }
}
