/*
Theme Name: Schautdoch – Kunst ohne Maske
Theme URI: https://schautdoch.ch/
Author: Ben der Schweizer
Description: Ein persönliches WordPress-Theme für Kunst, Gedanken, Werkstatt, Masken und saftige Beiträge. Große Beitragsbilder, starke Typografie, klare Karten und ein lebendiger Auftritt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: schautdoch
Tags: blog, portfolio, featured-images, custom-logo, custom-menu, responsive-layout
*/

:root {
  --sd-bg: #fff7ec;
  --sd-paper: #fffdf8;
  --sd-ink: #111827;
  --sd-muted: #5f6470;
  --sd-red: #ff4b2b;
  --sd-orange: #f6a11a;
  --sd-gold: #ffd166;
  --sd-border: rgba(17, 24, 39, 0.12);
  --sd-shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
  --sd-radius: 24px;
  --sd-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.40), transparent 38%),
    radial-gradient(circle at top right, rgba(255, 75, 43, 0.18), transparent 35%),
    var(--sd-bg);
  color: var(--sd-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: rgba(255,75,43,0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.sd-wrap {
  width: min(var(--sd-max), calc(100% - 32px));
  margin: 0 auto;
}

.sd-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 247, 236, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sd-border);
}

.sd-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sd-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.sd-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sd-red), var(--sd-orange));
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(255, 75, 43, 0.28);
}

.sd-site-title {
  font-weight: 900;
  font-size: clamp(21px, 2.5vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.sd-site-description {
  margin-top: 3px;
  font-size: 13px;
  color: var(--sd-muted);
  font-weight: 650;
}

.sd-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sd-nav a {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.sd-nav a:hover,
.sd-nav .current-menu-item a {
  background: var(--sd-ink);
  color: white;
}

.sd-hero {
  padding: clamp(42px, 7vw, 96px) 0 32px;
}

.sd-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.sd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sd-ink);
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.20);
}

.sd-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 950;
}

.sd-hero h1 span {
  color: var(--sd-red);
}

.sd-hero-text {
  max-width: 680px;
  font-size: clamp(18px, 2.1vw, 24px);
  color: #2c313a;
  font-weight: 560;
}

.sd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.sd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 2px solid var(--sd-ink);
}

.sd-button-primary {
  background: var(--sd-ink);
  color: white;
}

.sd-button-secondary {
  background: rgba(255,255,255,0.65);
}

.sd-hero-card {
  background: var(--sd-paper);
  padding: 14px;
  border: 1px solid var(--sd-border);
  border-radius: 32px;
  box-shadow: var(--sd-shadow);
  transform: rotate(1.4deg);
}

.sd-hero-card img {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  width: 100%;
}

.sd-hero-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,75,43,0.9), rgba(246,161,26,0.85)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.5), transparent 35%);
  display: grid;
  place-items: center;
  color: white;
  font-size: clamp(34px, 6vw, 78px);
  font-weight: 950;
  line-height: 0.9;
  text-align: center;
  letter-spacing: -0.06em;
}

.sd-section-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.sd-category-strip {
  padding: 18px 0 28px;
}

.sd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sd-chip {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid var(--sd-border);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(17,24,39,0.06);
}

.sd-main {
  padding: 28px 0 70px;
}

.sd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sd-card {
  position: relative;
  overflow: hidden;
  background: var(--sd-paper);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  box-shadow: 0 16px 42px rgba(17,24,39,0.10);
}

.sd-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9dfd0;
}

.sd-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.sd-card:hover .sd-card-media img {
  transform: scale(1.04);
}

.sd-card-no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,75,43,0.95), rgba(246,161,26,0.95));
  color: white;
  font-weight: 950;
  font-size: 28px;
}

.sd-card-body {
  padding: 20px 20px 22px;
}

.sd-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
  color: var(--sd-muted);
  font-size: 13px;
  font-weight: 780;
}

.sd-card h2,
.sd-card h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.sd-card h2 a,
.sd-card h3 a {
  text-decoration: none;
}

.sd-card p {
  margin: 0 0 14px;
  color: #3d434e;
}

.sd-readmore {
  font-weight: 950;
  color: var(--sd-red);
  text-decoration: none;
}

.sd-single {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 80px) 0 80px;
}

.sd-single-header {
  text-align: center;
  margin-bottom: 28px;
}

.sd-single-title {
  margin: 12px 0 14px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .92;
  letter-spacing: -0.07em;
}

.sd-single-featured {
  margin: 0 0 34px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--sd-shadow);
  border: 1px solid var(--sd-border);
}

.sd-single-featured img {
  width: 100%;
  display: block;
}

.sd-content {
  font-size: clamp(18px, 1.75vw, 21px);
}

.sd-content > * {
  margin-top: 0;
  margin-bottom: 1.15em;
}

.sd-content h2,
.sd-content h3 {
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-top: 1.7em;
}

.sd-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  background: white;
  border-left: 8px solid var(--sd-red);
  border-radius: 18px;
  font-weight: 750;
  box-shadow: 0 14px 30px rgba(17,24,39,0.08);
}

.sd-content .wp-block-image img,
.sd-content figure img {
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(17,24,39,0.12);
}

.sd-post-nav {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--sd-border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 900;
}

.sd-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.sd-pagination a,
.sd-pagination span {
  background: white;
  border: 1px solid var(--sd-border);
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
}

.sd-pagination .current {
  background: var(--sd-ink);
  color: white;
}

.sd-site-footer {
  border-top: 1px solid var(--sd-border);
  background: rgba(255,255,255,0.55);
  padding: 34px 0;
  color: var(--sd-muted);
  font-weight: 700;
}

.ben-daumen-likes {
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,241,216,0.95)) !important;
  border: 1px solid var(--sd-border) !important;
}

.ben-daumen-like-button {
  background: linear-gradient(135deg, var(--sd-red), var(--sd-orange)) !important;
  box-shadow: 0 12px 28px rgba(255,75,43,0.22) !important;
}

@media (max-width: 900px) {
  .sd-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .sd-nav ul {
    justify-content: flex-start;
  }

  .sd-hero-grid {
    grid-template-columns: 1fr;
  }

  .sd-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sd-wrap {
    width: min(100% - 22px, var(--sd-max));
  }

  .sd-grid {
    grid-template-columns: 1fr;
  }

  .sd-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .sd-hero h1,
  .sd-single-title {
    letter-spacing: -0.055em;
  }

  .sd-post-nav {
    flex-direction: column;
  }
}
