/* ===== AugenBlick – Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --ink: #1a1a2e;
  --paper: #faf9f6;
  --cream: #f3f0e8;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --accent-pale: #d8f3dc;
  --warm: #c9784d;
  --warm-light: #f4e4d7;
  --gray-100: #f5f4f1;
  --gray-200: #e8e6e1;
  --gray-300: #d4d1ca;
  --gray-400: #a8a49c;
  --gray-500: #7a766e;
  --gray-600: #5c584f;
  --gray-700: #3d3a33;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

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

/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid var(--gray-200);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(250, 249, 246, 0.92);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li a,
nav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--gray-500);
  margin-left: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  padding: 0;
  border: none;
}

.nav-links li a:hover,
.nav-links li a.active,
nav a:hover { color: var(--accent); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

/* ===== HERO – Homepage ===== */
.hero-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.hero-home h1 {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero-home h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-home .subtitle {
  font-size: 1.2rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.25s;
}

.hero-cta:hover {
  background: var(--accent-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.2);
}

/* ===== HERO – Article ===== */
.hero-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-article .hero-text h1 {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero-article .hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-article .subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 480px;
}

.hero-visual {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-pale) 0%, #b7e4c7 40%, #95d5b2 100%);
}

.hero-visual .eye-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-svg {
  width: 220px;
  height: 220px;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-visual .overlay-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
  opacity: 0.7;
}

/* ===== HERO – Page (Blog, About, etc.) ===== */
.hero-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.hero-page h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.hero-page .subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== META BAR ===== */
.meta-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.meta-bar.centered { justify-content: center; }

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.03em;
}

.meta-tag .icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.category-badge {
  background: var(--accent-pale);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== SECTION CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section-sep {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-300), transparent);
  margin: 2.5rem 0;
}

/* ===== INFO BOXES (Homepage) ===== */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.info-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.info-box svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.info-box h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.info-box p {
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-200);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-visual.green { background: linear-gradient(135deg, var(--accent-pale), #b7e4c7); }
.card-visual.warm { background: linear-gradient(135deg, var(--warm-light), #f0d5c0); }
.card-visual.purple { background: linear-gradient(135deg, #eee8f5, #d5c8ed); }

.card-visual svg {
  width: 80px;
  height: 80px;
  opacity: 0.35;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .category-badge {
  width: fit-content;
  margin-bottom: 0.8rem;
}

.card-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--accent);
}

.card-body .excerpt {
  color: var(--gray-500);
  font-size: 0.94rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.card-footer .meta-tag { font-size: 0.78rem; }

/* ===== FEATURED ARTICLE (Homepage) ===== */
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.featured-visual {
  height: 100%;
  min-height: 340px;
  background: linear-gradient(135deg, var(--accent-pale), #b7e4c7, #95d5b2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-visual svg {
  width: 180px;
  height: 180px;
  opacity: 0.3;
  color: var(--accent);
}

.featured-body {
  padding: 2.5rem 2.5rem 2.5rem 0;
}

.featured-body .category-badge { margin-bottom: 1rem; }

.featured-body h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.featured-body h2 a { color: var(--ink); }
.featured-body h2 a:hover { color: var(--accent); }

.featured-body .excerpt {
  color: var(--gray-500);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.read-more:hover { gap: 0.8rem; }

.read-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.read-more:hover svg { transform: translateX(3px); }

/* ===== ARTICLE LAYOUT ===== */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
}

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

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body p {
  margin-bottom: 1.2rem;
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body .lead {
  font-size: 1.2rem;
  color: var(--gray-600);
  font-weight: 400;
  line-height: 1.8;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* ===== Callout Boxes ===== */
.callout {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  border-left: 4px solid var(--accent);
}

.callout.patient {
  background: var(--accent-pale);
  border-left-color: var(--accent-light);
}

.callout.clinical {
  background: #eee8f5;
  border-left-color: #7c5cbf;
}

.callout.warning {
  background: #fff3cd;
  border-left-color: #d4a017;
}

.callout .callout-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.callout.patient .callout-label { color: var(--accent); }
.callout.clinical .callout-label { color: #7c5cbf; }
.callout.warning .callout-label { color: #d4a017; }

.callout p { margin-bottom: 0.5rem; font-size: 0.98rem; }
.callout p:last-child { margin-bottom: 0; }

/* ===== Styled List ===== */
.styled-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}

.styled-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 1.7;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ===== Table ===== */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

.article-table thead th {
  background: var(--accent);
  color: white;
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-table thead th:first-child { border-radius: 8px 0 0 0; }
.article-table thead th:last-child { border-radius: 0 8px 0 0; }

.article-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.article-table tbody tr:hover { background: var(--gray-100); }

/* ===== Pull Quote ===== */
.pull-quote {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  text-align: center;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.toc-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-box h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}

.toc-box a {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-500);
  text-decoration: none;
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.8rem;
  transition: all 0.2s;
}

.toc-box a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.sidebar-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}

.sidebar-card ul {
  list-style: none;
}

.sidebar-card li {
  margin-bottom: 0.5rem;
}

.sidebar-card li a {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.sidebar-card li a:hover {
  color: var(--accent);
}

.info-card {
  background: linear-gradient(135deg, var(--accent) 0%, #1b4332 100%);
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
  margin-bottom: 2rem;
}

.info-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.info-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  display: inline-block;
  background: var(--accent-pale);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.tag-list a:hover {
  background: var(--accent);
  color: white;
}

/* ===== References ===== */
.references {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin-top: 3rem;
}

.references h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
}

.references ol {
  padding-left: 1.5rem;
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.8;
}

.references li { margin-bottom: 0.3rem; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.82rem;
  color: var(--gray-400);
}

.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.5rem; opacity: 0.5; }

/* ===== Content Page (Über uns, Kontakt) ===== */
.content-card {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid var(--gray-200);
}

.content-card h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: var(--ink);
}

.content-card h2:first-child { margin-top: 0; }

.content-card p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-card ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.content-card ul li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  color: var(--gray-700);
  line-height: 1.7;
}

.content-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ===== Form Styles ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

textarea.form-input { resize: vertical; }

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a766e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.success-message {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.success-message svg { margin: 0 auto 1rem; }

.success-message h3 {
  font-family: var(--serif);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.success-message p { color: var(--gray-500); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--gray-400);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand .footer-logo .dot { color: var(--accent-light); }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.site-footer h4 {
  color: white;
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 0.5rem; }

.site-footer a {
  color: var(--gray-400);
  font-size: 0.88rem;
}

.site-footer a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--accent-light); }

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-article {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem 2rem;
  }

  .hero-article .hero-text h1 { font-size: 2.2rem; }
  .hero-visual { height: 260px; }
  .hero-home h1 { font-size: 2.4rem; }
  .hero-home { padding: 3rem 1.5rem 2rem; }

  .article-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem 3rem;
  }

  .sidebar { position: static; }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-visual { min-height: 220px; }
  .featured-body { padding: 2rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-boxes {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    margin-left: 0;
    padding: 0.6rem 0;
    display: block;
  }

  .mobile-toggle { display: block; }

  .hero-home h1 { font-size: 2rem; }
  .hero-page h1 { font-size: 2rem; }

  .content-card { padding: 2rem 1.5rem; }

  .search-wrapper input { font-size: .95rem; }
}

/* === Search Bar === */
.search-bar {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  pointer-events: none;
}

.search-wrapper input {
  width: 100%;
  padding: .9rem 2.8rem .9rem 3rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--ink);
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}

.search-wrapper input::placeholder {
  color: var(--gray-400);
}

.search-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.search-clear {
  position: absolute;
  right: .8rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  color: var(--gray-500);
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.search-clear:hover {
  background: var(--gray-200);
  color: var(--ink);
}

.search-count {
  text-align: center;
  font-size: .88rem;
  color: var(--gray-500);
  margin-top: .6rem;
  min-height: 1.4em;
}

/* === AdSense Container === */
.ad-container {
  grid-column: 1 / -1;
  margin: 1rem 0;
  padding: 1rem 0;
  text-align: center;
  min-height: 100px;
}

.ad-container ins {
  display: block;
}
