/*
Theme Name: Speisekarten Preise
Theme URI: https://speisekarten-preise.de
Author: Antigravity
Description: A custom, fast, hand-coded classic WordPress theme for speisekarten-preise.de. Optimized for Core Web Vitals, accessibility, and SEO.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spk
*/

/* ==========================================================================
   1. Typography
   ========================================================================== */

/* The @font-face declarations live in assets/fonts/fonts.css, which is
   enqueued separately (see inc/enqueue.php) so the font files can be
   preloaded and cached independently of this stylesheet. */

/* ==========================================================================
   2. Design Tokens
   ========================================================================== */

:root {
  /* Colors */
  --spk-tomato: #E8542A;
  --spk-tomato-dark: #C8451F;
  --spk-charcoal: #1F2933;
  --spk-green: #2E7D32;
  --spk-cream: #FBF7F2;
  --spk-stripe: #FFF1EB;
  --spk-border: #E7E1D8;
  --spk-white: #FFFFFF;
  --spk-muted: #5F5E5A;

  /* Typography */
  --spk-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spk-font-heading: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   3. CSS Reset & Normalize
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

input, button, textarea, select {
  font: inherit;
}

/* ==========================================================================
   4. Base Typography & Links
   ========================================================================== */

body {
  background-color: var(--spk-cream);
  color: var(--spk-charcoal);
  font-family: var(--spk-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--spk-font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--spk-charcoal);
  margin-bottom: 0.75em;
}

/* Fluid scale: grows with the viewport between 360px and 1140px. */
h1 { font-size: clamp(28px, 1.55rem + 1.6vw, 40px); }
h2 { font-size: clamp(22px, 1.25rem + 0.9vw, 28px); }
h3 { font-size: clamp(18px, 1.05rem + 0.5vw, 21px); }

p {
  margin-bottom: 1.5em;
}

a {
  color: var(--spk-tomato);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover, a:focus {
  text-decoration: underline;
  color: var(--spk-tomato-dark);
}

/* ==========================================================================
   5. Components (Buttons & Cards)
   ========================================================================== */

.button, 
button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--spk-tomato);
  color: var(--spk-white);
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-family: var(--spk-font-body);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover,
.button:focus,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: var(--spk-tomato-dark);
  text-decoration: none;
  color: var(--spk-white);
}

.card {
  background-color: var(--spk-white);
  border: 1px solid var(--spk-border);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}

/* ==========================================================================
   6. Layout Containers
   ========================================================================== */

.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

.container--article {
  max-width: 760px;
}

.container--grid {
  max-width: 1140px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ==========================================================================
   7. Tables (Data & Prices)
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  text-align: left;
  background-color: var(--spk-white);
  border: 1px solid var(--spk-border);
  border-radius: 8px;
  overflow: hidden;
}

caption {
  font-size: 14px;
  color: var(--spk-muted);
  text-align: right;
  margin-bottom: 8px;
  font-style: italic;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--spk-border);
  border-right: 1px solid var(--spk-border);
}

th:last-child, td:last-child {
  border-right: none;
}

th {
  color: var(--spk-white);
  font-weight: 600;
  background-color: var(--spk-charcoal);
}

tr:nth-child(even) td {
  background-color: var(--spk-stripe);
}

tr:last-child td {
  border-bottom: none;
}

.spk-table-group-row td {
  background-color: var(--spk-cream) !important;
  font-size: 18px;
  color: var(--spk-charcoal);
}

/* Price highlighting in tables or elsewhere */
.price,
td strong,
td b {
  color: var(--spk-green);
  font-weight: 600;
}

/* Print-friendly tables */
@media print {
  body {
    background-color: #fff;
    color: #000;
  }
  table {
    border: 1px solid #ddd;
  }
  th, td {
    border-bottom: 1px solid #ddd;
  }
  table, tr, td, th {
    page-break-inside: avoid;
  }
  a {
    text-decoration: none;
    color: #000;
  }
  .site-header, .site-footer {
    display: none;
  }
}

/* ==========================================================================
   8. Utilities
   ========================================================================== */

.updated-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background-color: #E8F5E9; /* Pale green */
  color: var(--spk-green);
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  line-height: 1.2;
}

.category-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--spk-tomato-dark);
  margin-bottom: 8px;
  text-decoration: none;
}

.category-eyebrow:hover {
  text-decoration: underline;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   9. Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--spk-tomato);
  color: var(--spk-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-branding .site-title {
  margin: 0;
  font-size: 24px;
}

.site-branding a {
  color: var(--spk-white);
}

.site-branding a:hover,
.site-branding a:focus {
  text-decoration: none;
  color: var(--spk-stripe);
}

.custom-logo {
  max-height: 48px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle, .search-toggle {
  background: transparent;
  color: var(--spk-white);
  border: none;
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover, .search-toggle:hover,
.menu-toggle:focus, .search-toggle:focus {
  background-color: var(--spk-tomato-dark);
  border-radius: 4px;
}

.menu-wrapper {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--spk-tomato-dark);
  padding: 16px;
}

.menu-wrapper.is-active {
  display: block;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-bottom: 12px;
}
.nav-menu li:last-child {
  margin-bottom: 0;
}

.nav-menu a {
  color: var(--spk-white);
  font-weight: 500;
  display: block;
  padding: 8px 0;
}
.nav-menu a:hover, .nav-menu a:focus {
  color: var(--spk-stripe);
  text-decoration: underline;
}

/* Header Search */
.header-search {
  position: relative;
}

.search-form-wrapper {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background-color: var(--spk-white);
  padding: 16px;
  border: 1px solid var(--spk-border);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: 16px;
}

.search-form-wrapper.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.search-form-wrapper::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 16px;
  width: 16px;
  height: 16px;
  background-color: var(--spk-white);
  transform: rotate(45deg);
  border-left: 1px solid var(--spk-border);
  border-top: 1px solid var(--spk-border);
}

.search-form {
  display: flex;
  width: 100%;
}

.search-field {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--spk-border);
  border-radius: 4px 0 0 4px;
  font-family: var(--spk-font-body);
}

.search-field:focus {
  outline: none;
  border-color: var(--spk-tomato);
}

.search-submit {
  border-radius: 0 4px 4px 0;
  padding: 8px 16px;
  flex-shrink: 0;
}

/* Desktop Header */
@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
  
  .menu-wrapper {
    display: block !important;
    position: static;
    background-color: transparent;
    padding: 0;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
    white-space: nowrap;
  }

  .nav-menu li {
    margin-bottom: 0;
  }
  
  .nav-menu a {
    padding: 0;
  }
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
  background-color: var(--spk-white);
  border-top: 1px solid var(--spk-border);
  margin-top: 64px;
}

.footer-top {
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-list li {
  margin-bottom: 12px;
}

.footer-menu-list a {
  color: var(--spk-charcoal);
}

.footer-menu-list a:hover {
  color: var(--spk-tomato);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--spk-border);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--spk-muted);
}

.footer-disclaimer p,
.site-info p {
  margin-bottom: 8px;
}

.footer-bottom a {
  color: var(--spk-muted);
}

.footer-bottom a:hover {
  color: var(--spk-tomato);
}

/* ==========================================================================
   11. Homepage (front-page)
   ========================================================================== */

/* Hero Section */
.hero-section {
  background-color: var(--spk-tomato);
  color: var(--spk-white);
  padding: 40px 0 32px;
  text-align: center;
}

.hero-title {
  color: var(--spk-white);
  font-size: clamp(30px, 1.5rem + 3.4vw, 46px);
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.hero-subtitle {
  max-width: 46ch;
  margin: -8px auto 24px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--spk-stripe);
}

.hero-search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
}

.hero-search-form .search-field {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  color: var(--spk-charcoal);
}

.hero-search-form .search-field:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--spk-charcoal);
}

.hero-search-form .search-submit {
  border-radius: 0 8px 8px 0;
  background-color: var(--spk-charcoal);
  font-size: 16px;
  padding: 16px 32px;
}

.hero-search-form .search-submit:hover {
  background-color: #111;
}

/* Sections Base */
.section-title {
  margin-bottom: 24px;
  font-size: clamp(24px, 1.35rem + 1vw, 30px);
  letter-spacing: -0.01em;
}

.category-section {
  padding: 40px 0 8px;
}

.latest-posts-section,
.popular-posts-section {
  padding: 48px 0;
}

/* Category Grid */
/* Fixed column counts rather than auto-fit: the eight cuisines then land as
   2x4 / 3x3 / 4x2 instead of leaving a ragged final row. */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--spk-tomato);
  text-decoration: none;
}

.category-icon {
  color: var(--spk-tomato);
  margin-bottom: 10px;
  line-height: 0;
}

.category-name {
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.post-card:hover {
  border-color: var(--spk-tomato);
}

.post-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  /* Flex items default to min-height:auto, which lets an oversized image
     push past the aspect ratio. Pin it so the ratio always wins. */
  min-height: 0;
  flex: 0 0 auto;
  background-color: var(--spk-cream);
  border-bottom: 1px solid var(--spk-border);
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.post-card-title a {
  color: var(--spk-charcoal);
}

.post-card-title a:hover {
  color: var(--spk-tomato);
  text-decoration: none;
}

.post-card-excerpt {
  color: var(--spk-muted);
  font-size: 15px;
  margin-bottom: 24px;
  flex: 1;
}

.post-card-meta {
  margin-top: auto;
}

/* ==========================================================================
   12. Single Post (single.php)
   ========================================================================== */

.entry-header {
  padding-top: 48px;
  padding-bottom: 24px;
  text-align: center;
}

.breadcrumb {
  font-size: 14px;
  color: var(--spk-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--spk-muted);
}

.breadcrumb a:hover {
  color: var(--spk-tomato);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--spk-border);
}

.entry-title {
  font-size: clamp(32px, 1.6rem + 3.2vw, 48px);
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--spk-muted);
}

.entry-thumbnail {
  margin-bottom: 48px;
}

.entry-thumbnail img {
  border-radius: 12px;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 64px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 48px;
  margin-bottom: 16px;
}

/* Responsive Table Wrapper */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px var(--spk-border);
  border-radius: 8px;
  background-color: var(--spk-white);
}

.table-responsive-wrapper table {
  margin-bottom: 0;
  border: none;
  border-radius: 0;
}

/* Related Posts Section */
.related-posts-section {
  background-color: var(--spk-white);
  border-top: 1px solid var(--spk-border);
  padding: 64px 0;
}

/* ==========================================================================
   13. Custom Article Blocks (FAQ & Conclusion)
   ========================================================================== */

/* FAQ Accordion Box */
.spk-faq-wrapper {
  border: 2px solid var(--spk-tomato);
  border-radius: 8px;
  background-color: var(--spk-white);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.spk-faq-header {
  background-color: var(--spk-tomato);
  color: var(--spk-white);
  padding: 16px;
  text-align: center;
  font-family: var(--spk-font-heading);
  font-weight: 700;
  font-size: 24px;
  margin: 0;
}

.spk-faq-container {
  padding: 16px;
}

.spk-faq-item {
  border: none;
  margin-bottom: 8px;
  background-color: var(--spk-tomato);
  border-radius: 4px;
  overflow: hidden;
}

.spk-faq-item:last-child {
  margin-bottom: 0;
}

.spk-faq-question {
  padding: 14px 48px 14px 16px;
  font-family: var(--spk-font-heading);
  font-weight: 600;
  color: var(--spk-white);
  cursor: pointer;
  background-color: transparent;
  display: block;
  position: relative;
  transition: background-color 0.2s ease;
}

.spk-faq-question:hover,
.spk-faq-question:focus {
  background-color: var(--spk-tomato-dark);
}

.spk-faq-question::after {
  content: "+";
  position: absolute;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	background: #f8fafc;
	transition: all 0.2s ease;
}

.spk-faq-item[open] {
	border-color: #E8542A;
	background: #fff;
	box-shadow: 0 2px 4px rgba(232, 84, 42, 0.1);
}

.spk-faq-item summary {
	padding: 1rem 1.25rem;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	list-style: none; /* Hide default triangle */
	color: #2d3748;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.spk-faq-item summary:hover,
.spk-faq-item summary:focus {
	background: #edf2f7;
}

/* Custom Accordion Icon */
.spk-faq-item summary::after {
	content: "+";
	font-size: 1.5rem;
	font-weight: 400;
	color: #E8542A;
	line-height: 1;
	transition: transform 0.2s ease;
}

/* Rotate icon when open */
details[open] .spk-faq-item summary::after {
	transform: rotate(45deg);
}

/* Hide webkit default marker */
.spk-faq-item summary::-webkit-details-marker {
	display: none;
}

.spk-faq-answer {
	padding: 0 1.25rem 1.25rem;
	color: #4a5568;
	font-size: 0.95rem;
	line-height: 1.6;
	border-top: 1px solid #e2e8f0;
	margin-top: 0.5rem;
}

.spk-faq-answer p:last-child {
	margin-bottom: 0;
}

/* Conclusion Box */
.spk-conclusion-wrapper {
  border: 2px solid var(--spk-green);
  border-radius: 12px;
  background-color: var(--spk-white);
  padding: 40px 24px 24px;
  margin-top: 48px;
  margin-bottom: 32px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.spk-conclusion-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: var(--spk-white);
  border: 2px solid var(--spk-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spk-conclusion-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--spk-tomato);
}

.spk-conclusion-title {
  color: var(--spk-charcoal);
  font-family: var(--spk-font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.spk-conclusion-content {
  color: var(--spk-charcoal);
  line-height: 1.7;
}

.spk-conclusion-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   15. Pagination
   ========================================================================== */

.pagination {
  margin-top: 48px;
  margin-bottom: 48px;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--spk-border);
  background-color: var(--spk-white);
  color: var(--spk-charcoal);
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
  border-color: var(--spk-tomato);
  color: var(--spk-tomato);
  background-color: var(--spk-stripe);
}

.pagination .page-numbers.current {
  background-color: var(--spk-tomato);
  border-color: var(--spk-tomato);
  color: var(--spk-white);
}

.pagination .dots {
  border: none;
  background: transparent;
  pointer-events: none;
}

/* ==========================================================================
   16. Live Search Results Dropdown
   ========================================================================== */

.live-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: var(--spk-white);
  border: 1px solid var(--spk-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow: hidden;
  
  /* Smooth appear transition */
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.live-search-results.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.live-search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-search-results li {
  border-bottom: 1px solid var(--spk-border);
}

.live-search-results li:last-child {
  border-bottom: none;
}

.live-search-results a {
  display: block;
  padding: 12px 16px;
  color: var(--spk-charcoal);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.live-search-results a:hover,
.live-search-results a:focus {
  background-color: var(--spk-stripe);
  color: var(--spk-tomato);
}

.live-search-loading,
.live-search-no-results {
  padding: 12px 16px;
  color: var(--spk-muted);
  font-style: italic;
  text-align: center;
}

/* ==========================================================================
   17. Contact Page Layout & Forms
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-card {
  background-color: var(--spk-white);
  border: 1px solid var(--spk-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-family: var(--spk-font-heading);
  color: var(--spk-charcoal);
  font-size: 1.5rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--spk-charcoal);
  line-height: 1.6;
}

.contact-details li:last-child {
  margin-bottom: 0;
}

.contact-details svg {
  color: var(--spk-tomato);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details a {
  color: var(--spk-tomato);
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-editor-content {
  margin-top: 32px;
  color: var(--spk-charcoal);
  line-height: 1.7;
}

/* Form Styles */
.spk-form .form-group {
  margin-bottom: 20px;
}

.spk-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--spk-charcoal);
}

.spk-form .required {
  color: var(--spk-tomato);
}

.spk-form input[type="text"],
.spk-form input[type="email"],
.spk-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--spk-border);
  border-radius: 8px;
  background-color: #fafafa;
  font-family: var(--spk-font-body);
  font-size: 1rem;
  color: var(--spk-charcoal);
  transition: all 0.2s ease;
}

.spk-form input[type="text"]:focus,
.spk-form input[type="email"]:focus,
.spk-form textarea:focus {
  outline: none;
  border-color: var(--spk-tomato);
  background-color: var(--spk-white);
  box-shadow: 0 0 0 3px rgba(232, 84, 42, 0.1);
}

.spk-form textarea {
  resize: vertical;
  min-height: 120px;
}

.spk-submit-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   18. Post Cards Customizations
   ========================================================================== */

.post-card-excerpt p:last-child {
  margin-bottom: 8px;
}

/* ==========================================================================
   19. Fazit / Conclusion Box
   ========================================================================== */

.spk-conclusion-wrapper {
  background-color: #fff8f6; /* Very light tomato/orange tint */
  border: 1px solid rgba(232, 84, 42, 0.2);
  border-left: 4px solid var(--spk-tomato);
  border-radius: 8px;
  padding: 32px;
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.spk-conclusion-icon {
  margin-bottom: 16px;
  color: var(--spk-tomato);
  display: flex;
  justify-content: center;
  align-items: center;
}

.spk-conclusion-icon svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.spk-conclusion-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-family: var(--spk-font-heading);
  color: var(--spk-charcoal);
  font-size: 1.5rem;
}

.spk-conclusion-content {
  color: var(--spk-charcoal);
  font-family: var(--spk-font-body);
  line-height: 1.6;
}

.spk-conclusion-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   20. Table of Contents
   ========================================================================== */

.spk-toc {
  background-color: #fafafa;
  border: 1px solid var(--spk-border);
  border-left: 4px solid var(--spk-charcoal);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.spk-toc-header {
  font-family: var(--spk-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--spk-charcoal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spk-toc-header::before {
  content: "≡";
  font-size: 1.5rem;
  color: var(--spk-tomato);
  line-height: 1;
}

.spk-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spk-toc-list > li {
  margin-bottom: 8px;
}

.spk-toc-list > li:last-child {
  margin-bottom: 0;
}

.spk-toc-list a {
  color: var(--spk-charcoal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-block;
}

.spk-toc-list a:hover {
  color: var(--spk-tomato);
  text-decoration: underline;
}

.spk-toc-sublist {
  list-style: none;
  padding-left: 20px;
  margin: 8px 0;
  border-left: 2px solid var(--spk-border);
}

.spk-toc-sublist > li {
  margin-bottom: 8px;
}

.spk-toc-sublist > li:last-child {
  margin-bottom: 0;
}

.spk-toc-sublist a {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--spk-muted);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 40px;
}

@media (min-width: 600px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.team-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.team-member {
	text-align: center;
}

.team-member-img {
	width: 200px;
	height: 200px;
	margin: 0 auto 24px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover .team-member-img {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-member-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.team-member-name {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.team-member-role {
	font-size: 16px;
	color: #6a6a6a;
	margin: 0;
}

/*--------------------------------------------------------------
# About Us Page - Custom Styles
--------------------------------------------------------------*/
.story-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
}

@media (min-width: 992px) {
	.story-grid {
		grid-template-columns: 1fr 1fr;
		gap: 64px;
	}
}

.values-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (min-width: 768px) {
	.values-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.value-item {
	background: rgba(255,255,255,0.1);
	padding: 40px 32px;
	border-radius: 16px;
	text-align: center;
	transition: transform 0.3s ease;
}

.value-item:hover {
	transform: translateY(-5px);
}

.value-icon {
	margin-bottom: 24px;
	display: flex;
	justify-content: center;
}

.value-item h3 {
	font-size: 1.5rem;
	margin-bottom: 16px;
	color: #fff;
}

.value-item p {
	font-size: 1.125rem;
	line-height: 1.6;
	margin: 0;
	opacity: 0.9;
}
