/*
Theme Name: Bunter Teller
Theme URI: https://bunterteller.at
Author: Thomas Görlitz
Author URI: https://bunterteller.at
Description: Warmes, rustikales Rezept-Theme für den Foodblog Bunter Teller. Großzügige Fotos im Magazin-Feed, gemütliche Kochbuch-Anmutung mit erdigen Tönen und Serifenschrift. Klassisches WordPress-Theme, optimiert für Rezepte, Kategorien und Basisrezepte.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bunter-teller
Tags: food-and-drink, blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   Bunter Teller — warm & rustikal
   Design tokens
   ========================================================= */
:root {
  --bt-bg:        #FBF5EA; /* warmes Creme */
  --bt-surface:   #FFFDF8; /* Karten/Flächen */
  --bt-text:      #3B2A21; /* tiefes warmes Braun */
  --bt-muted:     #7A6A5D; /* gedämpftes Braun */
  --bt-accent:    #C1622D; /* Terracotta */
  --bt-accent-dk: #9E4E22; /* dunkles Terracotta (Hover) */
  --bt-herb:      #6E7A48; /* Kräutergrün */
  --bt-line:      #E7DCC9; /* Trennlinien */
  --bt-shadow:    0 12px 32px rgba(59, 42, 33, 0.10);
  --bt-radius:    14px;
  --bt-serif:     "Fraunces", Georgia, "Times New Roman", serif;
  --bt-sans:      "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bt-maxw:      1180px;
  --bt-content:   760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bt-bg);
  color: var(--bt-text);
  font-family: var(--bt-sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--bt-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--bt-accent-dk); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bt-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--bt-text);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.2em; }

.bt-container {
  width: 100%;
  max-width: var(--bt-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bt-accent); color: #fff; padding: 10px 16px;
  z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--bt-surface);
  border-bottom: 1px solid var(--bt-line);
  position: sticky; top: 0; z-index: 100;
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 24px;
  max-width: var(--bt-maxw); margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.custom-logo { max-height: 56px; width: auto; border-radius: 8px; }
.site-title {
  font-family: var(--bt-serif);
  font-size: 30px; font-weight: 600; margin: 0; line-height: 1;
}
.site-title a { color: var(--bt-text); }
.site-title a:hover { color: var(--bt-accent); }
.site-description { color: var(--bt-muted); font-size: 14px; margin: 4px 0 0; }

/* Navigation */
.main-navigation { font-family: var(--bt-sans); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: block; padding: 10px 14px; color: var(--bt-text);
  font-weight: 600; font-size: 15px; border-radius: 8px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { background: var(--bt-bg); color: var(--bt-accent); }

/* Sub-menus */
.main-navigation ul ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bt-surface); box-shadow: var(--bt-shadow);
  border: 1px solid var(--bt-line); border-radius: 10px;
  padding: 6px; min-width: 200px; flex-direction: column; z-index: 200;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }
.main-navigation ul ul a { white-space: nowrap; }

/* Mobile toggle */
.menu-toggle {
  display: none; background: var(--bt-accent); color: #fff; border: 0;
  padding: 10px 16px; border-radius: 8px; font-family: var(--bt-sans);
  font-weight: 700; font-size: 15px; cursor: pointer;
}

/* =========================================================
   Layout
   ========================================================= */
.site-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  max-width: var(--bt-maxw);
  margin: 48px auto;
  padding: 0 24px;
}
.content-area { min-width: 0; }

/* =========================================================
   Post feed — große Fotos untereinander (Magazin-Feed)
   ========================================================= */
.post-card {
  background: var(--bt-surface);
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  overflow: hidden;
  box-shadow: var(--bt-shadow);
  margin-bottom: 48px;
}
.post-card .post-thumb { display: block; overflow: hidden; }
.post-card .post-thumb img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .5s ease;
}
.post-card .post-thumb:hover img { transform: scale(1.04); }
.post-card-body { padding: 30px 34px 34px; }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-family: var(--bt-sans); font-size: 13px; color: var(--bt-muted);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em;
}
.post-cat {
  background: var(--bt-herb); color: #fff; padding: 4px 11px;
  border-radius: 999px; font-weight: 700; font-size: 12px;
  letter-spacing: .04em;
}
.post-cat:hover { background: #5b6639; color: #fff; }

.post-card .entry-title { font-size: 30px; margin: 0 0 10px; }
.post-card .entry-title a { color: var(--bt-text); }
.post-card .entry-title a:hover { color: var(--bt-accent); }
.post-card .entry-summary { color: var(--bt-text); margin-bottom: 18px; }

.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--bt-sans); font-weight: 700; font-size: 15px;
  color: var(--bt-accent);
}
.read-more:after { content: "→"; transition: transform .15s ease; }
.read-more:hover:after { transform: translateX(4px); }

/* Feed without featured image */
.post-card.no-thumb .post-card-body { padding-top: 30px; }

/* =========================================================
   Single post / page
   ========================================================= */
.entry-header-single { margin-bottom: 28px; }
.entry-header-single .entry-title { font-size: 42px; line-height: 1.1; margin-bottom: 14px; }
.single-thumb {
  margin: 0 0 34px; border-radius: var(--bt-radius);
  overflow: hidden; box-shadow: var(--bt-shadow);
}
.single-thumb img { width: 100%; object-fit: cover; }

.entry-content { font-size: 19px; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 30px; margin: 1.4em 0 .5em; }
.entry-content h3 { font-size: 24px; margin: 1.3em 0 .4em; }
.entry-content img { border-radius: 10px; margin: 1.2em 0; box-shadow: var(--bt-shadow); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
  margin: 1.5em 0; padding: 4px 24px; border-left: 4px solid var(--bt-accent);
  font-family: var(--bt-serif); font-style: italic; color: var(--bt-muted);
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--bt-line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--bt-bg); }

.entry-footer {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--bt-line);
  font-family: var(--bt-sans); font-size: 14px; color: var(--bt-muted);
}
.entry-footer a { color: var(--bt-herb); font-weight: 600; }

/* Page header (archive/search) */
.page-header {
  text-align: center; margin-bottom: 40px; padding-bottom: 26px;
  border-bottom: 1px solid var(--bt-line);
}
.page-header .page-title { font-size: 38px; }
.page-header .archive-description { color: var(--bt-muted); margin-top: 6px; }
.page-header .page-title .cat-label {
  display: block; font-family: var(--bt-sans); font-size: 14px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--bt-herb);
  font-weight: 700; margin-bottom: 8px;
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination { margin: 12px 0 0; }
.pagination .nav-links {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.pagination a, .pagination .page-numbers {
  display: inline-block; padding: 10px 16px; border-radius: 8px;
  font-family: var(--bt-sans); font-weight: 700; font-size: 15px;
  background: var(--bt-surface); border: 1px solid var(--bt-line);
  color: var(--bt-text);
}
.pagination a:hover { background: var(--bt-accent); color: #fff; border-color: var(--bt-accent); }
.pagination .current { background: var(--bt-accent); color: #fff; border-color: var(--bt-accent); }
.pagination .dots { background: transparent; border-color: transparent; }

.post-navigation {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--bt-line);
  font-family: var(--bt-sans);
}
.post-navigation a { font-weight: 700; }
.post-navigation .nav-subtitle {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--bt-muted); font-weight: 700;
}

/* =========================================================
   Sidebar / Widgets
   ========================================================= */
.widget-area { font-family: var(--bt-sans); }
.widget {
  background: var(--bt-surface); border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius); padding: 24px 24px; margin-bottom: 28px;
}
.widget-title {
  font-family: var(--bt-serif); font-size: 20px; margin: 0 0 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--bt-accent);
  display: inline-block;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--bt-line); font-size: 16px; }
.widget ul li:last-child { border-bottom: 0; }
.widget a { color: var(--bt-text); }
.widget a:hover { color: var(--bt-accent); }
.widget img { border-radius: 10px; margin: 0 auto; }
.widget select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--bt-line); font-family: var(--bt-sans); background: var(--bt-bg); }
.widget p { font-size: 16px; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; padding: 11px 14px; border: 1px solid var(--bt-line);
  border-radius: 8px; font-family: var(--bt-sans); font-size: 15px;
  background: var(--bt-bg); color: var(--bt-text);
}
.search-submit {
  padding: 11px 18px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--bt-accent); color: #fff; font-family: var(--bt-sans);
  font-weight: 700; font-size: 15px;
}
.search-submit:hover { background: var(--bt-accent-dk); }

/* =========================================================
   Comments
   ========================================================= */
.comments-area { margin-top: 48px; }
.comments-title, .comment-reply-title { font-size: 26px; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 20px; }
.comment-body {
  background: var(--bt-surface); border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius); padding: 20px 24px;
}
.comment-list .children { list-style: none; margin: 16px 0 0 28px; padding: 0; }
.comment-author { font-family: var(--bt-sans); font-weight: 700; }
.comment-metadata { font-size: 13px; color: var(--bt-muted); }
.comment-respond {
  background: var(--bt-surface); border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius); padding: 26px; margin-top: 24px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--bt-line);
  border-radius: 8px; font-family: var(--bt-sans); font-size: 16px;
  background: var(--bt-bg); margin-top: 6px;
}
.comment-form p { margin-bottom: 16px; }
.form-submit .submit {
  padding: 12px 22px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--bt-accent); color: #fff; font-family: var(--bt-sans);
  font-weight: 700; font-size: 16px;
}
.form-submit .submit:hover { background: var(--bt-accent-dk); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bt-text); color: #EAD9C7; margin-top: 64px;
  padding: 48px 0 32px; font-family: var(--bt-sans);
}
.site-footer a { color: #F0B48A; }
.site-footer a:hover { color: #fff; }
.footer-widgets {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px; max-width: var(--bt-maxw); margin: 0 auto 32px; padding: 0 24px;
}
.footer-widgets .widget { background: transparent; border: 0; padding: 0; margin: 0; }
.footer-widgets .widget-title { color: #fff; border-bottom-color: var(--bt-accent); }
.footer-widgets .widget ul li { border-bottom-color: rgba(255,255,255,.12); }
.footer-widgets .widget a { color: #EAD9C7; }
.footer-widgets .widget a:hover { color: #fff; }
.site-info {
  text-align: center; font-size: 14px; color: #C4AE9B;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  max-width: var(--bt-maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .site-content { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-header-inner { flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  .main-navigation {
    flex-basis: 100%; display: none; margin-top: 12px;
  }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-navigation ul ul {
    display: block; position: static; box-shadow: none; border: 0;
    background: var(--bt-bg); padding: 0 0 0 14px; min-width: 0;
  }
  .post-card-body { padding: 22px 22px 26px; }
  .post-card .entry-title { font-size: 25px; }
  .entry-header-single .entry-title { font-size: 32px; }
  .entry-content { font-size: 18px; }
}
