/*
Theme Name: Vegetarische Rezepte
Theme URI: https://vegetarischerezepte.com
Author: Angelika Sockel
Author URI: https://vegetarischerezepte.com
Description: Ein warmes, übersichtliches Rezept-Blog-Theme für die vegetarische Alltagsküche – mit zentriertem Header, Karten-Grid für Rezepte und Sidebar für Kategorien, Tags und Autorin.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vegrezepte
*/

:root{
  --green-dark:#2f4a34;
  --green:#5a7d52;
  --green-light:#eef3ea;
  --terracotta:#d97a4f;
  --cream:#fbf7f0;
  --text:#2c2c28;
  --muted:#6f6f66;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:'Georgia', 'Times New Roman', serif;
  background:var(--cream);
  color:var(--text);
  line-height:1.5;
}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;width:100%;height:100%;object-fit:cover;}

/* Top bar */
.topbar{
  background:var(--green-dark);
  color:#f4efe6;
  font-family:'Helvetica Neue',Arial,sans-serif;
  font-size:12px;
  letter-spacing:.05em;
  padding:6px 40px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;
}

header.site{
  background:var(--cream);
  padding:28px 40px 0;
  border-bottom:1px solid #e4dccb;
}
.header-inner{
  max-width:1000px;margin:0 auto;
  display:flex;flex-direction:column;align-items:center;
}
.brand-row{
  display:flex;flex-direction:column;align-items:center;
  text-align:center;gap:14px;
  padding-bottom:22px;
}
.brand{
  display:flex;flex-direction:column;align-items:center;gap:10px;
}
.brand .leaf{
  width:46px;height:46px;border-radius:50%;
  background:var(--green);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:22px;
}
.brand h1{
  font-size:26px;color:var(--green-dark);letter-spacing:.02em;font-weight:normal;
}
.brand span{
  display:block;font-family:'Helvetica Neue',Arial,sans-serif;
  font-size:11px;color:var(--muted);letter-spacing:.15em;text-transform:uppercase;
}
.site-search{
  font-family:'Helvetica Neue',Arial,sans-serif;
  display:flex;align-items:center;gap:8px;
  border:1px solid #d8cfb8;border-radius:30px;
  padding:8px 16px;color:var(--muted);font-size:13px;
  background:#fff;
}
.site-search input{
  border:none;outline:none;background:transparent;font-size:13px;
  font-family:'Helvetica Neue',Arial,sans-serif;color:var(--text);width:180px;
}
nav.cats ul{
  font-family:'Helvetica Neue',Arial,sans-serif;
  display:flex;gap:26px;flex-wrap:wrap;justify-content:center;
  padding-bottom:16px;font-size:13px;list-style:none;
  text-transform:uppercase;letter-spacing:.06em;color:var(--green-dark);
}
nav.cats li{list-style:none;}
nav.cats a{padding:4px 0;border-bottom:2px solid transparent;}
nav.cats a:hover, nav.cats .current-cat a{border-color:var(--terracotta);}

/* layout */
.layout{display:flex;gap:36px;padding:0 40px 60px;max-width:1300px;margin:0 auto;}
main{flex:1;min-width:0;}
aside{width:280px;flex-shrink:0;}

.section-title{
  font-size:22px;color:var(--green-dark);margin-bottom:20px;
  display:flex;align-items:center;gap:10px;font-weight:normal;
}
.section-title::after{content:"";flex:1;height:1px;background:#dcd3bd;}

.grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:28px;
}
.card{
  background:#fff;border-radius:8px;overflow:hidden;
  box-shadow:0 2px 10px rgba(47,74,52,.06);
}
.card .thumb{height:200px;position:relative;background:var(--green-light);}
.card .thumb .badge{
  position:absolute;top:12px;left:12px;z-index:2;
  background:var(--green-dark);color:#fff;font-family:'Helvetica Neue',Arial,sans-serif;
  font-size:10px;letter-spacing:.08em;text-transform:uppercase;
  padding:5px 10px;border-radius:20px;
}
.card .body{padding:18px 20px 22px;}
.card h3{font-size:19px;color:var(--text);margin-bottom:8px;font-weight:normal;}
.card h3 a:hover{color:var(--terracotta);}
.card .meta{
  font-family:'Helvetica Neue',Arial,sans-serif;font-size:11px;color:var(--muted);
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px;
}
.card p.excerpt{font-size:14px;color:var(--muted);margin-bottom:12px;}
.card .more{
  font-family:'Helvetica Neue',Arial,sans-serif;font-size:12px;font-weight:bold;
  color:var(--terracotta);text-transform:uppercase;letter-spacing:.05em;
}

.pagination{
  margin-top:40px;
  font-family:'Helvetica Neue',Arial,sans-serif;font-size:13px;
}
.pagination .nav-links{
  display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;
}
.pagination .page-numbers{
  width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #ddd2ba;color:var(--muted);
}
.pagination .page-numbers.current{background:var(--green-dark);color:#fff;border-color:var(--green-dark);}
.pagination .screen-reader-text{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;
}

/* sidebar */
.widget{
  background:#fff;border-radius:8px;padding:24px;margin-bottom:24px;
  box-shadow:0 2px 10px rgba(47,74,52,.06);
}
.widget h4{
  font-size:16px;color:var(--green-dark);margin-bottom:16px;
  text-transform:uppercase;letter-spacing:.05em;font-family:'Helvetica Neue',Arial,sans-serif;
  font-weight:normal;
}
.widget ul{list-style:none;font-size:14px;}
.widget li{
  display:flex;justify-content:space-between;padding:9px 0;
  border-bottom:1px solid #f0ead9;
}
.widget li:last-child{border:none;}
.widget li span, .widget li .count{
  font-family:'Helvetica Neue',Arial,sans-serif;font-size:11px;color:var(--muted);
  background:var(--green-light);padding:2px 8px;border-radius:10px;
}
.author-card{text-align:center;}
.author-card img{width:84px;height:84px;border-radius:50%;margin:0 auto 14px;}
.author-avatar{
  width:84px;height:84px;border-radius:50%;margin:0 auto 14px;
  background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;
  font-family:Georgia,serif;font-size:28px;
}
.author-card h4{margin-bottom:6px;text-transform:none;font-family:Georgia,serif;font-size:18px;}
.author-card p{font-family:'Helvetica Neue',Arial,sans-serif;font-size:13px;color:var(--muted);}

.tag-cloud{display:flex;flex-wrap:wrap;gap:8px;font-family:'Helvetica Neue',Arial,sans-serif;font-size:12px;}
.tag-cloud a{
  background:var(--green-light);color:var(--green-dark);padding:6px 12px;border-radius:20px;
}

/* Styling für WordPress-Standard-Widgets (Design → Widgets), damit sie
   zum Theme passen, auch wenn kein eigenes Widget-Markup verwendet wird */
.widget .tagcloud{display:flex;flex-wrap:wrap;gap:8px;}
.widget .tagcloud a{
  background:var(--green-light);color:var(--green-dark) !important;
  padding:6px 12px;border-radius:20px;display:inline-block;
  font-family:'Helvetica Neue',Arial,sans-serif;font-size:12px !important;
  border:none;
}
.widget select{width:100%;padding:8px;border-radius:6px;border:1px solid #ddd2ba;font-family:inherit;}
.widget img{border-radius:6px;margin-bottom:10px;}
.widget .textwidget p:last-child{margin-bottom:0;}

/* single recipe / page */
.single-recipe .entry-content, .card .entry-content{font-size:15px;}
.entry-content h2{color:var(--green-dark);margin:24px 0 10px;font-size:20px;}
.entry-content p{margin-bottom:14px;}
.entry-content ul, .entry-content ol{margin:0 0 14px 20px;}

footer{
  background:var(--green-dark);color:#d9dfd4;padding:40px;
  font-family:'Helvetica Neue',Arial,sans-serif;font-size:13px;
}
.footer-inner{
  max-width:1300px;margin:0 auto;display:flex;justify-content:space-between;
  flex-wrap:wrap;gap:20px;
}
.footer-links{display:flex;gap:24px;flex-wrap:wrap;}
.footer-bottom{
  max-width:1300px;margin:24px auto 0;padding-top:20px;border-top:1px solid #445b47;
  color:#9fae98;font-size:12px;
}

@media (max-width: 820px){
  .layout{flex-direction:column;padding:0 20px 40px;}
  aside{width:100%;}
  .grid{grid-template-columns:1fr;}
  header.site, .topbar{padding-left:20px;padding-right:20px;}
}
