/* TEE-MAGAZIN.DE — 2026 Design System — Mobile First */
/* Self-hosted fonts — DSGVO-konform, keine externen Requests */
@font-face{font-family:'DM Serif Display';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/dm-sans-v17-latin-regular.woff2') format('woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/dm-sans-v17-latin-500.woff2') format('woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/dm-sans-v17-latin-600.woff2') format('woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/dm-sans-v17-latin-700.woff2') format('woff2')}
:root{--c-bg:#F8F7F4;--c-surface:#FFF;--c-text:#1A1A1A;--c-text-soft:#5C5852;--c-text-muted:#9A958C;--c-accent:#4E7A5B;--c-accent-hover:#3D6148;--c-accent-light:#EDF3EF;--c-accent-subtle:#F4F8F5;--c-warm:#C5A55A;--c-warm-light:#FAF6ED;--c-border:#E8E5DE;--c-border-light:#F0EDE6;--font-display:'DM Serif Display',Georgia,'Times New Roman',serif;--font-body:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;--w-max:1240px;--w-content:760px;--r:8px;--r-lg:16px;--shadow-xs:0 1px 2px rgba(0,0,0,.04);--shadow-sm:0 2px 8px rgba(0,0,0,.05);--shadow-md:0 4px 20px rgba(0,0,0,.07);--shadow-lg:0 12px 40px rgba(0,0,0,.10);--ease:cubic-bezier(.25,.46,.45,.94)}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{font-family:var(--font-body);color:var(--c-text);background:var(--c-bg);line-height:1.7;overflow-x:hidden;font-weight:400}
img{max-width:100%;height:auto;display:block}
a{transition:all .2s var(--ease)}

/* HEADER */
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--c-border-light)}
.header-inner{max-width:var(--w-max);margin:0 auto;padding:0 1.25rem;display:flex;align-items:center;justify-content:space-between;height:64px}
.header-actions{display:flex;align-items:center;gap:0.5rem}
.site-logo{font-family:var(--font-display);font-size:1.35rem;color:var(--c-text);text-decoration:none;display:flex;align-items:center;gap:.5rem}
.site-logo .leaf{font-size:1.5rem}
.main-nav-desktop{display:none}
.mobile-nav{display:none;position:fixed;top:64px;left:0;right:0;bottom:0;background:var(--c-surface);flex-direction:column;padding:1.5rem;gap:0;overflow-y:auto;z-index:999}
.mobile-nav.active{display:flex}
.mobile-nav a{font-size:1.05rem;font-weight:500;color:var(--c-text);text-decoration:none;padding:1rem 0;border-bottom:1px solid var(--c-border-light);display:block}
.mobile-nav a:hover,.mobile-nav a:active{color:var(--c-accent)}
.nav-toggle{display:flex;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:8px;border-radius:var(--r)}
.nav-toggle:active{background:var(--c-accent-light)}
.nav-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
.nav-toggle span{display:block;width:20px;height:2px;background:var(--c-text);border-radius:1px;transition:.3s var(--ease)}

/* HERO */
.hero{background:linear-gradient(160deg,#2C4A34 0%,#4E7A5B 40%,#6B9B78 100%);color:#fff;padding:3.5rem 1.25rem;text-align:center;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 30% 80%,rgba(255,255,255,.06) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(255,255,255,.04) 0%,transparent 40%)}
.hero-content{position:relative;z-index:1;max-width:640px;margin:0 auto}
.hero h1{font-family:var(--font-display);font-size:2rem;font-weight:400;line-height:1.2;margin-bottom:.75rem}
.hero p{font-size:1rem;opacity:.85;line-height:1.6;font-weight:400}

/* MAIN */
.main{max-width:var(--w-max);margin:0 auto;padding:2rem 1.25rem}
.content-grid{display:flex;flex-direction:column;gap:2.5rem}

/* ARTICLE CARDS */
.article-list{display:flex;flex-direction:column;gap:1.25rem}
.article-card{background:var(--c-surface);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-xs);border:1px solid var(--c-border-light);transition:all .3s var(--ease)}
.article-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.article-card.has-image{display:flex;flex-direction:column}
.article-card-img{aspect-ratio:16/9;overflow:hidden}
.article-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.article-card:hover .article-card-img img{transform:scale(1.03)}
.article-card-content{padding:1.25rem}
.article-card .category{display:inline-block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--c-accent);margin-bottom:.5rem}
.article-card h2{font-family:var(--font-display);font-size:1.2rem;font-weight:400;line-height:1.35;margin-bottom:.5rem}
.article-card h2 a{color:var(--c-text);text-decoration:none}
.article-card h2 a:hover{color:var(--c-accent)}
.article-card .excerpt{color:var(--c-text-soft);font-size:.9rem;line-height:1.6;margin-bottom:.75rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.article-card .meta{font-size:.78rem;color:var(--c-text-muted);display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.read-more{font-size:.82rem;font-weight:500;color:var(--c-accent);text-decoration:none;display:inline-flex;align-items:center;gap:.25rem;margin-left:auto}
.read-more::after{content:'→';transition:transform .2s var(--ease)}
.read-more:hover::after{transform:translateX(3px)}

/* SINGLE ARTICLE */
.article-single{max-width:var(--w-content);margin:0 auto;padding:1.5rem 1.25rem 3rem}
.article-single .article-header{margin-bottom:2rem;text-align:center}
.article-single .article-header .category{display:inline-block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--c-accent);background:var(--c-accent-light);padding:.3rem .8rem;border-radius:100px;margin-bottom:1rem}
.article-single .article-header h1{font-family:var(--font-display);font-size:1.8rem;font-weight:400;line-height:1.25;margin-bottom:1rem}
.article-single .article-meta{color:var(--c-text-muted);font-size:.85rem;display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;align-items:center}

/* Cookie Consent Banner */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;background:#1A1A1A;color:rgba(255,255,255,.85);padding:1.25rem;transform:translateY(100%);transition:transform .4s var(--ease);font-size:.88rem;line-height:1.5}
.cookie-banner.visible{transform:translateY(0)}
.cookie-banner-inner{max-width:var(--w-max);margin:0 auto;display:flex;flex-direction:column;gap:1rem}
.cookie-banner p{margin:0}
.cookie-banner a{color:var(--c-warm);text-decoration:underline}
.cookie-buttons{display:flex;gap:.5rem;flex-wrap:wrap}
.cookie-btn{padding:.6rem 1.2rem;border:none;border-radius:var(--r);font-size:.85rem;font-weight:600;cursor:pointer;font-family:var(--font-body);transition:all .2s var(--ease)}
.cookie-btn-accept{background:var(--c-accent);color:#fff}
.cookie-btn-accept:hover{background:var(--c-accent-hover)}
.cookie-btn-reject{background:transparent;color:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.2)}
.cookie-btn-reject:hover{border-color:rgba(255,255,255,.5);color:#fff}
.update-badge{display:inline-flex;align-items:center;gap:.3rem;background:var(--c-accent-light);color:var(--c-accent);font-size:.8rem;font-weight:500;padding:.25rem .75rem;border-radius:100px}
.article-hero-img{margin:0 0 2rem;border-radius:var(--r-lg);overflow:hidden;max-height:400px}
.article-hero-img img{width:100%;height:100%;object-fit:cover}
.article-body{font-size:1.05rem;line-height:1.8;color:var(--c-text);font-weight:500}
.article-body p{margin-bottom:1.5em}
.article-body h2{font-family:var(--font-display);font-size:1.5rem;font-weight:400;margin:2.5em 0 .8em;color:var(--c-text)}
.article-body h3{font-size:1.15rem;font-weight:500;margin:2em 0 .6em}
.article-body ul,.article-body ol{margin:1.2em 0;padding-left:1.3em}
.article-body li{margin-bottom:.5em}
.article-body blockquote{border-left:3px solid var(--c-warm);padding:1.25rem 1.5rem;margin:2em 0;background:var(--c-warm-light);border-radius:0 var(--r) var(--r) 0;font-style:italic;color:var(--c-text-soft)}
.article-body strong{font-weight:500}
.article-body a{color:var(--c-accent);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(78,122,91,.3)}
.article-body a:hover{text-decoration-color:var(--c-accent)}
.article-body img.article-img{border-radius:var(--r-lg);margin:2em 0}

/* SIDEBAR */
.sidebar{display:flex;flex-direction:column;gap:1.25rem}
.sidebar-widget{background:var(--c-surface);border-radius:var(--r-lg);padding:1.5rem;border:1px solid var(--c-border-light)}
.sidebar-widget h3{font-family:var(--font-display);font-size:1.05rem;font-weight:400;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:2px solid var(--c-accent)}
.sidebar-widget ul{list-style:none}
.sidebar-widget li{padding:.5rem 0;border-bottom:1px solid var(--c-border-light)}
.sidebar-widget li:last-child{border-bottom:none}
.sidebar-widget a{color:var(--c-text);text-decoration:none;font-size:.9rem}
.sidebar-widget a:hover{color:var(--c-accent)}

/* CATEGORY PAGE */
.category-header{text-align:center;padding:2.5rem 1.25rem;background:linear-gradient(160deg,var(--c-accent-subtle) 0%,var(--c-warm-light) 100%);margin-bottom:2rem}
.category-header h1{font-family:var(--font-display);font-size:1.8rem;font-weight:400;margin-bottom:.5rem}
.category-header p{color:var(--c-text-soft);font-size:.95rem;max-width:600px;margin:0 auto}

/* BREADCRUMB */
.breadcrumb{font-size:.8rem;color:var(--c-text-muted);padding:1rem 1.25rem;max-width:var(--w-max);margin:0 auto}
.breadcrumb a{color:var(--c-text-muted);text-decoration:none}
.breadcrumb a:hover{color:var(--c-accent)}
.breadcrumb span{margin:0 .35rem;opacity:.5}

/* PAGINATION */
.pagination{display:flex;justify-content:center;gap:.4rem;margin-top:2rem;flex-wrap:wrap}
.pagination a,.pagination span{padding:.5rem .9rem;border:1px solid var(--c-border);border-radius:var(--r);font-size:.85rem;color:var(--c-text);text-decoration:none;transition:all .2s var(--ease)}
.pagination a:hover{border-color:var(--c-accent);color:var(--c-accent);background:var(--c-accent-light)}
.pagination .active{background:var(--c-accent);color:#fff;border-color:var(--c-accent)}

/* FOOTER */
.site-footer{background:#1A1A1A;color:rgba(255,255,255,.6);padding:3rem 1.25rem 2rem;margin-top:3rem}
.footer-inner{max-width:var(--w-max);margin:0 auto;display:grid;grid-template-columns:1fr;gap:2rem}
.footer-col h4{color:#fff;font-family:var(--font-display);font-size:1rem;font-weight:400;margin-bottom:.75rem}
.footer-col p{font-size:.85rem;line-height:1.6}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:.35rem}
.footer-col a{color:rgba(255,255,255,.5);text-decoration:none;font-size:.85rem}
.footer-col a:hover{color:#fff}
.footer-bottom{max-width:var(--w-max);margin:2rem auto 0;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.08);text-align:center;font-size:.78rem}
.footer-disclaimer{font-size:.75rem;color:rgba(255,255,255,.4);margin-bottom:.75rem;line-height:1.5}
.footer-disclaimer a{color:rgba(255,255,255,.4);text-decoration:none;border-bottom:1px solid rgba(255,255,255,.2);transition:all .2s}
.footer-disclaimer a:hover{color:rgba(255,255,255,.7);border-bottom-color:rgba(255,255,255,.5)}

/* ═══ TABLET 640px ═══ */
@media(min-width:640px){
.hero{padding:4.5rem 2rem}.hero h1{font-size:2.6rem}.main{padding:2.5rem 2rem}
.article-card.has-image{flex-direction:row}.article-card-img{width:240px;min-width:240px;aspect-ratio:auto}.article-card-content{padding:1.5rem}.article-card h2{font-size:1.3rem}
.article-single .article-header h1{font-size:2.2rem}.article-single{padding:2rem 2rem 4rem}
.article-single .article-meta{flex-wrap:nowrap;white-space:nowrap}
.footer-inner{grid-template-columns:1fr 1fr}
.category-header h1{font-size:2.2rem}
}

/* ═══ DESKTOP 1024px ═══ */
@media(min-width:1024px){
.header-inner{height:72px;padding:0 2.5rem}.site-logo{font-size:1.5rem}
.main-nav-desktop{display:flex;position:static;background:none;flex-direction:row;padding:0;gap:0;overflow:visible}
.main-nav-desktop a{font-size:.88rem;padding:.5rem .9rem;border-bottom:none;border-radius:var(--r);color:var(--c-text-soft);text-decoration:none;font-weight:500}
.main-nav-desktop a:hover{color:var(--c-accent);background:var(--c-accent-light)}
.nav-toggle{display:none}
.mobile-nav{display:none!important}
.hero{padding:5rem 2.5rem}.hero h1{font-size:3rem}.hero p{font-size:1.1rem}
.main{padding:3rem 2.5rem}
.content-grid{flex-direction:row;gap:3rem}
.content-grid>.article-list{flex:1;min-width:0}
.content-grid>.sidebar{width:300px;min-width:300px;position:sticky;top:90px;align-self:start}
.article-card-img{width:260px;min-width:260px}.article-card h2{font-size:1.35rem}.article-card .excerpt{-webkit-line-clamp:2}
.article-single .article-header h1{font-size:2.6rem}.article-hero-img{max-height:480px}
.category-header{padding:3.5rem 2.5rem}.category-header h1{font-size:2.5rem}
.footer-inner{grid-template-columns:1.5fr 1fr 1fr}
.cookie-banner-inner{flex-direction:row;align-items:center;gap:2rem}
.cookie-banner-inner p{flex:1}
}

/* ═══ WIDE 1280px ═══ */
@media(min-width:1280px){
.content-grid>.sidebar{width:340px;min-width:340px}
.article-card-img{width:280px;min-width:280px}
}

/* ═══ SEARCH ═══ */
.search-toggle{background:none;border:none;cursor:pointer;padding:0.5rem;color:var(--c-text-secondary);transition:var(--transition);border-radius:50%;display:flex;align-items:center;justify-content:center}
.search-toggle:hover{color:var(--c-accent);background:var(--c-accent-light)}

.search-overlay{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,0.6);backdrop-filter:blur(4px);display:none;justify-content:center;align-items:flex-start;padding:10vh 1rem 2rem}
.search-overlay.active{display:flex}
.search-container{background:var(--c-surface);border-radius:12px;width:100%;max-width:640px;max-height:75vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,0.3);animation:searchIn 0.2s ease-out}
@keyframes searchIn{from{opacity:0;transform:translateY(-20px) scale(0.98)}to{opacity:1;transform:translateY(0) scale(1)}}

.search-header{display:flex;align-items:center;gap:0.75rem;padding:1rem 1.25rem;border-bottom:1px solid var(--c-border)}
.search-input-wrap{flex:1;display:flex;align-items:center;gap:0.6rem;background:var(--c-bg);border-radius:8px;padding:0.5rem 0.75rem}
.search-input-wrap .search-icon{color:var(--c-text-secondary);flex-shrink:0}
#searchInput{border:none;background:none;font-size:1rem;font-family:var(--f-body);color:var(--c-text);width:100%;outline:none;font-weight:500}
#searchInput::placeholder{color:var(--c-text-secondary);font-weight:400}
.search-kbd{font-size:0.7rem;padding:0.15rem 0.4rem;background:var(--c-border);border-radius:4px;color:var(--c-text-secondary);font-family:var(--f-body);flex-shrink:0}
.search-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--c-text-secondary);padding:0.25rem 0.5rem;line-height:1;border-radius:6px;transition:var(--transition)}
.search-close:hover{background:var(--c-bg);color:var(--c-text)}

.search-results{overflow-y:auto;padding:0.5rem}
.search-hint{text-align:center;padding:2rem 1rem;color:var(--c-text-secondary);font-size:0.95rem}

.search-result{display:flex;gap:0.75rem;align-items:center;padding:0.65rem 0.75rem;border-radius:8px;text-decoration:none;color:var(--c-text);transition:var(--transition)}
.search-result:hover{background:var(--c-accent-light)}
.search-result img{width:48px;height:48px;border-radius:6px;object-fit:cover;flex-shrink:0}
.search-result-title{font-weight:500;font-size:0.95rem;line-height:1.3;margin-bottom:0.15rem}
.search-result-meta{font-size:0.8rem;color:var(--c-text-secondary);line-height:1.4;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.search-result-cat{color:var(--c-accent);font-weight:500;margin-right:0.4rem}
.search-count{text-align:center;padding:0.75rem;font-size:0.8rem;color:var(--c-text-secondary);border-top:1px solid var(--c-border);margin-top:0.5rem}

@media(max-width:600px){
  .search-overlay{padding:0}
  .search-container{max-height:100vh;height:100vh;border-radius:0}
  .search-kbd{display:none}
}
