/*
Theme Name: Stubenfee
Theme URI: https://stubenfee.de/
Author: Ute & Jens
Description: Eigenes Theme im Stil der statischen Stubenfee-Seite (modern, ruhig, viel Weißraum).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stubenfee
Tags: blog, one-column, custom-menu, custom-logo, featured-images
*/

:root{
  --bg:#ffffff;
  --bg-alt:#f6f7fb;
  --text:#0f172a;
  --muted:#556170;
  --line:#e6edf2;
  --accent:#2cb7a6;
  --shadow: 0 14px 40px rgba(15,23,42,.08);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

img{ max-width:100%; height:auto; }

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* WordPress Basics */
.site-main a{ color: inherit; }
.site-main a:hover{ color: var(--accent); }
.content-area{ min-height: 50vh; }
.wp-block-image{ margin: 0; }
.wp-caption{ max-width: 100%; }
.alignwide{ width: min(1120px, calc(100% - 40px)); margin-left:auto; margin-right:auto; }

/* Admin-Bar: Sticky Header nicht überdecken */
body.admin-bar .site-header{ top: 32px; }
@media (max-width: 782px){
  body.admin-bar .site-header{ top: 46px; }
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:inherit;
}
.brand-mark{
  height:72px; width:auto;
  display:block;
  object-fit:contain;
}
.custom-logo{
  height:72px; width:auto;
  display:block;
  object-fit:contain;
}
.brand-text{
  font-weight:750;
  letter-spacing:.2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:12px;
}
/* WP Menu Markup */
.nav .nav-menu{
  display:flex;
  align-items:center;
  gap:12px;
  list-style:none;
  padding:0;
  margin:0;
}
.nav .nav-menu li{ margin:0; padding:0; }
.nav a{
  text-decoration:none;
  color:#5B9BD5;
  font-weight:600;
  font-size:14px;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(91,155,213,.1);
  border:1px solid rgba(91,155,213,.2);
  transition:all 0.2s ease;
  display:inline-flex;
}
.nav a:hover{
  background:rgba(91,155,213,.15);
  border-color:rgba(91,155,213,.3);
  color:#4A8BC8;
}
.nav a[aria-current="page"],
.nav .current-menu-item > a{
  background:rgba(91,155,213,.18);
  border-color:rgba(91,155,213,.35);
  color:#3e7fbd;
}

.nav-toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  width:18px;
  background:var(--text);
  margin:4px auto;
  border-radius:2px;
}

/* Hero */
.hero{
  padding:44px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:stretch;
}
.kicker{
  color:var(--muted);
  font-weight:700;
  font-size:13px;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin:0 0 12px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height:1.08;
  letter-spacing:-.02em;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:18px;
  max-width:52ch;
}
.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin:14px 0 22px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:700;
  color:#fff;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  box-shadow: 0 12px 28px rgba(44,183,166,.20);
}
.btn:hover{ filter:saturate(1.05); }
.btn.ghost{
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}

.hero-stats{
  display:flex; gap:12px; flex-wrap:wrap;
}
.stat{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  min-width:160px;
  background:#fff;
}
.stat-num{ font-weight:800; font-size:20px; }
.stat-label{ color:var(--muted); font-size:13px; }

.hero-media{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  align-self:start;
  height:fit-content;
}
.hero-grid-images{
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap:0;
  height:600px;
  max-height:600px;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  min-height:0;
}
.hero-caption{
  position:absolute;
  left:14px; right:14px; bottom:14px;
  display:flex; align-items:center; gap:8px;
  padding:8px 12px;
  background:rgba(255,255,255,.5);
  border:1px solid rgba(230,237,242,.5);
  border-radius:999px;
  color:var(--muted);
  font-weight:500;
  font-size:13px;
  backdrop-filter: blur(8px);
}
.dot{
  width:6px; height:6px; border-radius:999px;
  background: var(--muted);
  opacity:0.6;
}

/* Sections */
.section{ padding:52px 0; }
.section.alt{
  background: var(--bg-alt);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.section-head h1,
.section-head h2{ margin:0; font-size:28px; letter-spacing:-.01em; }
.section-head p{ margin:0; color:var(--muted); max-width:52ch; }

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.card-img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
  background: var(--bg-alt);
}
.card-img--placeholder{
  height:180px;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(44,183,166,.20), rgba(44,183,166,0)),
    radial-gradient(closest-side at 70% 60%, rgba(96,165,250,.20), rgba(96,165,250,0)),
    linear-gradient(180deg, #f3f6fb, #eef3f7);
}
.card-body{ padding:16px 16px 18px; }
.meta{
  margin:0 0 8px;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}
.card h3{
  margin:0 0 8px;
  font-size:18px;
  letter-spacing:-.01em;
}
.card p{
  margin:0 0 12px;
  color:var(--muted);
}
.link{
  text-decoration:none;
  font-weight:750;
  color: var(--text);
}
.link:hover{ color: var(--accent); }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:22px;
  align-items:start;
}
.bullets{
  margin:14px 0 18px;
  padding-left:18px;
  color:var(--muted);
}
.bullets li{ margin:8px 0; }

.mosaic{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.mosaic img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit:cover;
  border-radius: 18px;
  border:1px solid var(--line);
  background:#fff;
}

/* Wide card */
.wide-card{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:16px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
}
.wide-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  min-height:260px;
}
.wide-copy{ padding:18px; }
.wide-copy h3,
.wide-copy h2{ margin:0 0 8px; font-size:20px; }
.wide-copy p{ margin:0 0 14px; color:var(--muted); }

/* About */
.about{
  display:grid;
  grid-template-columns: 1fr .9fr;
  gap:18px;
  align-items:stretch;
}
.about-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }

.about-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  padding:18px;
}
.quote{
  margin:0 0 16px;
  font-size:18px;
  color:var(--text);
  line-height:1.5;
  letter-spacing:-.01em;
}
.sig{ display:flex; gap:12px; align-items:center; }
.avatar{
  width:44px; height:44px; border-radius:16px;
  background: linear-gradient(135deg, #e2e8f0, #dbeafe);
  border:1px solid var(--line);
}
.muted{ color:var(--muted); }

/* Newsletter */
.newsletter{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:center;
  padding:18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.nl-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.nl-form input{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius: 14px;
  font-size:16px;
  outline:none;
}
.nl-form input:focus{
  border-color: rgba(44,183,166,.45);
  box-shadow: 0 0 0 4px rgba(44,183,166,.10);
}
.nl-note{ margin:0; color:var(--muted); font-size:13px; min-height:18px; }

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:28px 0;
  background:#fff;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.footer-brand{ font-weight:800; letter-spacing:.2px; }
.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.footer-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:650;
}
.footer-links a:hover{ color:var(--text); }

/* Content typography on pages/posts */
.entry-content{
  color: var(--muted);
  font-size: 16px;
}
.entry-content h2,
.entry-content h3{
  color: var(--text);
}
.entry-content a{ color: var(--text); }
.entry-content a:hover{ color: var(--accent); }

/* Responsive */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .wide-card{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .newsletter{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav{
    position:absolute;
    right:20px; top:62px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:12px;
    border:1px solid var(--line);
    border-radius: 16px;
    background:#fff;
    box-shadow: var(--shadow);
    display:none;
    min-width: 220px;
  }
  .nav.open{ display:flex; }
  .nav .nav-menu{
    flex-direction:column;
    align-items:stretch;
    width:100%;
  }
  .nav a{ padding:10px 12px; border-radius:12px; width:100%; }
  .nav a:hover{ background: var(--bg-alt); }
}

