/*
Theme Name: Altstadt Leer
Theme URI: https://fhal.de/
Author: Freunde historische Altstadt Leer e. V.
Description: Individuelles WordPress-Theme für das digitale Altstadtportal Leer.
Version: 1.5.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: altstadt-leer
*/
:root{
 --al-green:#315c31;--al-lime:#a7d93b;--al-cream:#f7f5ec;
 --al-sage:#dcebd2;--al-blue:#168fc6;--al-red:#d92827;
 --al-ink:#202820;--al-muted:#667064;--al-white:#fff;
 --al-radius:18px;--al-shadow:0 12px 35px rgba(31,55,32,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--al-cream);color:var(--al-ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6}
a{color:var(--al-green);text-decoration:none}
a:hover{color:#203f21}
img{max-width:100%;height:auto}
.site-header{background:rgba(255,255,255,.96);border-bottom:1px solid #e5e8df;position:relative;z-index:5}
.header-inner{max-width:1200px;margin:auto;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand img{width:125px;height:100px;object-fit:contain;flex:0 0 auto}
.brand-name{font-weight:800;color:var(--al-green);font-size:1.05rem;line-height:1.15}
.brand-name small{display:block;font-weight:600;color:var(--al-muted);font-size:.72rem;margin-top:4px}
.main-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0;align-items:center}
.main-nav a{font-size:.94rem;font-weight:650;color:#263b28}
.main-nav a:hover{color:var(--al-blue)}
.menu-toggle{display:none;border:0;border-radius:12px;background:var(--al-green);color:white;padding:10px 14px;font-weight:700}
.hero{max-width:1200px;margin:28px auto 0;padding:0 24px}
.hero-panel{min-height:300px;border-radius:26px;overflow:hidden;position:relative;background:linear-gradient(135deg,#e7efdf 0%,#f7f5ec 58%,#dcebd2 100%);border:1px solid #dce6d5;display:flex;align-items:center}
.hero-copy{max-width:760px;padding:54px 58px;color:var(--al-green)}
.eyebrow{font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--al-green);font-size:.78rem}
.hero h1{font-size:clamp(2.3rem,5vw,4.2rem);line-height:1.04;margin:14px 0 18px;color:var(--al-green);letter-spacing:-.04em}
.hero p{font-size:1.15rem;max-width:620px;margin:0 0 26px;color:#435340}
.button{display:inline-flex;align-items:center;justify-content:center;background:var(--al-lime);color:#20351d;padding:13px 21px;border-radius:999px;font-weight:800;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.button:hover{background:#c0eb65;color:#20351d}
.section{max-width:1200px;margin:0 auto;padding:62px 24px}
.section-heading{text-align:center;margin-bottom:30px}
.section-heading .eyebrow{color:var(--al-green)}
.section-heading h2{font-size:clamp(1.8rem,3vw,2.7rem);margin:7px 0;color:var(--al-green);line-height:1.15}
.section-heading p{color:var(--al-muted);margin:0}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.category-card{background:white;border:1px solid #e7eadf;border-radius:var(--al-radius);padding:25px 22px;box-shadow:var(--al-shadow);transition:transform .2s,box-shadow .2s}
.category-card:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(31,55,32,.14)}
.category-icon{width:48px;height:48px;border-radius:15px;background:var(--al-sage);display:grid;place-items:center;font-size:1.45rem;margin-bottom:15px}
.category-card h3{margin:0 0 5px;color:var(--al-green);font-size:1.08rem}
.category-card p{margin:0;color:var(--al-muted);font-size:.9rem}
.feature-strip{background:var(--al-sage);border-radius:24px;padding:32px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.feature-strip h2{color:var(--al-green);margin:0 0 6px}
.feature-strip p{margin:0;color:#435340}
.site-footer{background:#203d25;color:#eef4e9;margin-top:30px}
.footer-inner{max-width:1200px;margin:auto;padding:42px 24px;display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}
.footer-inner a{color:#d9f29d}
.footer-small{font-size:.88rem;color:#d6e1d1}
.page-content{max-width:1000px;margin:48px auto;padding:0 24px}
@media(max-width:900px){.category-grid{grid-template-columns:repeat(2,1fr)}.main-nav ul{gap:12px}}
@media(max-width:680px){
 .header-inner{padding:10px 16px}.brand img{width:82px;height:68px}.brand-name{font-size:.9rem}
 .menu-toggle{display:block}.main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;padding:14px 20px;border-bottom:1px solid #e5e8df}
 .main-nav.is-open{display:block}.main-nav ul{display:flex;align-items:stretch;flex-direction:column;gap:0}.main-nav li a{display:block;padding:11px 4px}
 .hero{padding:0 14px;margin-top:14px}.hero-panel{min-height:440px;background-position:center}.hero-copy{padding:30px 24px}
 .section{padding:45px 16px}.category-grid{grid-template-columns:1fr 1fr;gap:12px}.category-card{padding:18px 14px}
 .feature-strip{padding:24px;display:block}.feature-strip .button{margin-top:18px}
}


/* Version 1.3 – Startseiten-Suche */
.hero-copy{max-width:820px}
.hero-search{display:flex;gap:10px;max-width:690px;margin-top:26px;background:#fff;padding:8px;border:1px solid #dce6d5;border-radius:999px;box-shadow:0 8px 24px rgba(31,55,32,.08)}
.hero-search input[type="search"]{flex:1;min-width:0;border:0;background:transparent;padding:12px 16px;font:inherit;color:var(--al-ink);outline:none}
.hero-search input[type="search"]::placeholder{color:#7a8577}
.hero-search button{border:0;cursor:pointer;font:inherit}
.category-card{display:block}
@media(max-width:680px){
 .hero-search{border-radius:18px;display:flex;flex-direction:column;background:transparent;border:0;padding:0;box-shadow:none}
 .hero-search input[type="search"]{background:#fff;border:1px solid #dce6d5;border-radius:14px;padding:14px}
 .hero-search .button{width:100%}
}

/* Startseite: Unternehmens-Eintrag CTA */
.business-cta-section { padding-top: 8px; }
.business-cta { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:38px 42px; border:1px solid #dce6d7; border-radius:24px; background:#e8f0e2; box-shadow:0 14px 36px rgba(31,63,39,.07); }
.business-cta-copy { max-width:720px; }
.business-cta h2 { margin:7px 0 10px; color:#315c31; font-size:clamp(1.7rem,3vw,2.35rem); line-height:1.15; }
.business-cta p { margin:0; color:#53665a; font-size:1.05rem; line-height:1.7; }
.business-cta-actions { display:flex; flex-direction:column; align-items:flex-start; gap:14px; flex-shrink:0; }
.business-cta .text-link { color:#315c31; font-weight:700; text-decoration:underline; text-underline-offset:4px; }
.category-card { cursor:pointer; }
.category-card:hover { transform:translateY(-4px); box-shadow:0 16px 36px rgba(31,63,39,.12); }
@media (max-width:760px) { .business-cta { padding:28px 24px; flex-direction:column; align-items:flex-start; } .business-cta-actions { width:100%; } .business-cta-actions .button { text-align:center; width:100%; box-sizing:border-box; } }

/* Version 1.5 – hochwertiger Unternehmens-CTA */
.business-cta-section{padding-top:18px;padding-bottom:72px}
.business-cta{position:relative;overflow:hidden;min-height:270px;padding:48px 54px;border:1px solid rgba(255,255,255,.16);border-radius:30px;background:radial-gradient(circle at 88% 15%,rgba(167,217,59,.22),transparent 28%),linear-gradient(125deg,#1f4328 0%,#315c31 58%,#244a2b 100%);box-shadow:0 22px 55px rgba(24,54,31,.22);color:#fff}
.business-cta:after{content:"";position:absolute;right:-70px;bottom:-160px;width:360px;height:360px;border:1px solid rgba(220,235,210,.16);border-radius:50%;box-shadow:0 0 0 28px rgba(220,235,210,.035),0 0 0 58px rgba(220,235,210,.025);pointer-events:none}
.business-cta-copy{position:relative;z-index:1;max-width:760px}
.business-cta .eyebrow{color:#c8ec8b;letter-spacing:.16em}
.business-cta h2{margin:12px 0 14px;color:#fff;font-size:clamp(2.1rem,4.2vw,3.35rem);line-height:1.04;letter-spacing:-.035em;max-width:760px}
.business-cta p{max-width:680px;margin:0;color:#e6eee2;font-size:1.12rem;line-height:1.75}
.business-cta-actions{position:relative;z-index:1;display:flex;flex-direction:row;align-items:center;gap:22px;margin-top:28px}
.business-cta .button{background:var(--al-lime);color:#20351d;padding:16px 27px;font-size:1rem;box-shadow:0 10px 26px rgba(0,0,0,.2)}
.business-cta .button:hover{background:#c4ed70;transform:translateY(-2px)}
.business-cta .text-link{color:#f1f7ec;font-weight:750;text-decoration:underline;text-underline-offset:5px}
@media(max-width:760px){.business-cta{padding:34px 25px;min-height:0}.business-cta-actions{flex-direction:column;align-items:stretch;gap:16px}.business-cta-actions .button{width:100%;text-align:center}.business-cta-actions .text-link{text-align:center}}
