/*
Theme Name: Finanzbildung AT Core
Theme URI: https://finanzielle-bildung.at
Author: Markus (Finanzblogger) & GPT-5 Thinking
Author URI: https://finanzielle-bildung.at
Description: Clean, modern, fast-loading WordPress theme optimized for financial education and lead generation. Mobile-first, minimal, SEO-friendly.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finanzbildung
*/

/* ----------------------
   Base / Reset
-----------------------*/
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  color: #0f172a; /* slate-900 */
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }

a { color: #0ea5e9; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: #0ea5e9; border: 2px solid #0ea5e9; }

.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------
   Header / Nav
-----------------------*/
.site-header { border-bottom: 1px solid #e2e8f0; background: #ffffffcc; backdrop-filter: saturate(180%) blur(6px); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #0f172a; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0ea5e9, #22d3ee); display: inline-block; }

.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: #0f172a; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: #f1f5f9; text-decoration: none; }

.menu-toggle { display: none; padding: 10px 12px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 16px; flex-direction: column; gap: 8px; }
  .nav.open { display: flex; }
}

/* ----------------------
   Hero
-----------------------*/
.hero { padding: 56px 0 28px; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 12px; }
.hero p { margin: 0 0 18px; color: #334155; }
.hero .card { padding: 18px; border: 1px solid #e2e8f0; border-radius: 16px; background: #f8fafc; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

/* ----------------------
   Sections / Cards
-----------------------*/
.section { padding: 28px 0; }
.section h2 { margin: 0 0 12px; font-size: 28px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
.card { border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; background: #fff; }
.card h3 { margin-top: 0; margin-bottom: 8px; font-size: 20px; }
.card .meta { font-size: 14px; color: #64748b; }

/* Post list */
.post-list article { display: grid; gap: 8px; }
.post-list .entry-title { margin: 0; font-size: 20px; }
.post-list .entry-excerpt { color: #475569; }

/* ----------------------
   Content
-----------------------*/
.content { padding: 24px 0; }
.content h1, .content h2, .content h3 { color: #0f172a; }
.content .post-meta { color: #64748b; font-size: 14px; margin-bottom: 8px; }
.content .post-tags a { font-size: 14px; background: #f1f5f9; padding: 4px 8px; border-radius: 8px; margin-right: 6px; }

/* Sidebar (optional placeholder) */
.sidebar .widget { border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; margin-bottom: 14px; }

/* ----------------------
   Footer
-----------------------*/
.site-footer { margin-top: 28px; background: #0b1220; color: #cbd5e1; }
.footer-top { padding: 28px 0; }
.footer-cols { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.footer-cols h4 { margin-top: 0; color: #e2e8f0; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1f2937; padding: 16px 0; color: #94a3b8; font-size: 14px; }
.footer a { color: #e2e8f0; }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr; }
}
