/* ============================================================
   ASB Brandenburg – main.css
   ============================================================ */

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:     #e30613;
    --primary-dk:  #b3000e;
    --dark:        #1a1a1a;
    --text:        #333;
    --muted:       #666;
    --light:       #fff;
    --gray:        #f5f5f5;
    --border:      #e0e0e0;
    --radius:      6px;
    --shadow:      0 2px 12px rgba(0,0,0,.10);
    --font-body:   'Source Sans 3', Arial, sans-serif;
    --font-head:   'Roboto Slab', Georgia, serif;
    --transition:  .25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--light); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
ul { list-style: none; }
address { font-style: normal; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.2; color: var(--dark); margin-bottom: .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1em; } p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: min(1200px, 94%); margin-inline: auto; }
.container--narrow { width: min(780px, 94%); margin-inline: auto; }
.section-pad { padding: 72px 0; }
.section-gray { background: var(--gray); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { color: var(--muted); font-size: 1.1rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-block; padding: .7em 1.8em; background: var(--primary); color: var(--light) !important; font-family: var(--font-body); font-weight: 700; font-size: .95rem; border-radius: var(--radius); border: 2px solid var(--primary); cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition); text-align: center; line-height: 1.4; }
.btn:hover { background: var(--primary-dk); border-color: var(--primary-dk); }
.btn-outline { background: transparent; color: var(--primary) !important; }
.btn-outline:hover { background: var(--primary); color: var(--light) !important; }

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: var(--dark); color: var(--light); padding: .5em 1em; border-radius: var(--radius); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header { background: var(--light); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 900; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 0; }
.site-logo a, .site-logo img { display: block; max-height: 60px; width: auto; }
.site-logo .site-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.main-nav .nav-list { display: flex; gap: 2rem; align-items: center; }
.main-nav .nav-list a { font-weight: 600; font-size: .95rem; color: var(--dark); position: relative; padding-bottom: 3px; }
.main-nav .nav-list a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--primary); transition: width var(--transition); }
.main-nav .nav-list a:hover, .main-nav .nav-list .current-menu-item > a { color: var(--primary); }
.main-nav .nav-list a:hover::after, .main-nav .nav-list .current-menu-item > a::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { min-height: 80vh; background-size: cover; background-position: center; display: flex; align-items: center; color: var(--light); position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 640px; padding: 80px 0; }
.hero-content h1 { color: var(--light); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .5em; }
.hero-content p { font-size: 1.2rem; margin-bottom: 1.5em; opacity: .92; }

/* ── Service Grid ───────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.service-card-img img { width: 100%; height: 200px; object-fit: cover; }
.service-card-icon { font-size: 2.5rem; color: var(--primary); padding: 1.5rem 1.5rem 0; }
.service-card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.service-card-body h3 { margin-bottom: 0; }
.service-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ── About ──────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1.5rem; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }

/* ── Post Grid ──────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform var(--transition); }
.post-card:hover { transform: translateY(-3px); }
.post-thumbnail { overflow: hidden; }
.post-thumbnail img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.post-thumbnail:hover img { transform: scale(1.03); }
.post-card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.post-meta { font-size: .85rem; color: var(--muted); }
.post-card-body h2, .post-card-body h3 { font-size: 1.1rem; margin-bottom: 0; }
.post-card-body h2 a, .post-card-body h3 a { color: var(--dark); }
.post-card-body h2 a:hover, .post-card-body h3 a:hover { color: var(--primary); }
.post-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ── Main Content ───────────────────────────────────────────── */
.main-content { padding: 56px 0 80px; }

/* ── Single Post ────────────────────────────────────────────── */
.post-header { margin-bottom: 1.5rem; }
.post-featured-image { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.post-featured-image img { width: 100%; max-height: 480px; object-fit: cover; }
.post-content { font-size: 1.05rem; line-height: 1.75; }
.post-content h2, .post-content h3 { margin-top: 1.8em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1em; list-style: revert; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: .8em 1.2em; margin: 1.5em 0; background: var(--gray); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--muted); }
.post-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.post-nav a { font-weight: 600; font-size: .9rem; }

/* ── Page ───────────────────────────────────────────────────── */
.page-content { padding: 56px 0 80px; }
.page-content h1 { margin-bottom: 1.5rem; }

/* ── Archive Header ─────────────────────────────────────────── */
.archive-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { margin-top: 3rem; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 600; transition: background var(--transition), color var(--transition); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); border-color: var(--primary); color: var(--light); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2.5rem; padding: 56px 0 40px; }
.footer-col h3 { color: var(--light); font-size: 1rem; margin-bottom: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-col p, .footer-col address { font-size: .9rem; margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--light); }
.footer-col ul li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .85rem; color: rgba(255,255,255,.45); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .about-image img { height: 260px; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--light); box-shadow: 0 8px 20px rgba(0,0,0,.12); overflow: hidden; max-height: 0; transition: max-height .35s ease; }
    .main-nav.is-open { max-height: 500px; }
    .main-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 0; }
    .main-nav .nav-list li { width: 100%; }
    .main-nav .nav-list a { display: block; padding: .7rem 1.25rem; border-bottom: 1px solid var(--border); }
    .main-nav .nav-list a::after { display: none; }
    .site-header .container { position: relative; }
    .section-pad { padding: 48px 0; }
    .hero { min-height: 60vh; }
    .hero-content { padding: 48px 0; }
    .post-grid, .service-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
