/*
Theme Name: Costa Brava Blog Child
Template: costa-brava-blog
Description: Kindtheme im Apple-Stil: große Typografie, viel Weißraum, runde Bilder, keine Datumsanzeige, sprachbewusste Fußzeile.
Version: 0.2.0
Text Domain: costa-brava-blog-child
*/

:root {
  --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --soft: #f5f5f7; --blue: #0071e3; --link: #0066cc;
  --wrap: 1120px; --narrow: 692px; --r: 28px; --rs: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.07; letter-spacing: -0.04em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.19; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 980px; z-index: 100; }
.cb-skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.cb-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.cb-section { padding-top: 88px; padding-bottom: 0; }
.cb-h2 { margin-bottom: 32px; }
.cb-muted { color: var(--muted); }
.cb-lede { color: var(--muted); font-size: clamp(19px, 2.3vw, 26px); line-height: 1.25; font-weight: 400; letter-spacing: -0.015em; max-width: 720px; }
.cb-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; text-transform: none; }
.cb-eyebrow--light { color: #a1a1a6; }
.cb-ph { display: block; width: 100%; height: 100%; min-height: 160px; background: var(--soft); }

/* Kopfzeile */
.cb-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.cb-header__bar { display: flex; align-items: center; gap: 24px; min-height: 52px; max-width: 1280px; }
.cb-brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.cb-brand:hover { text-decoration: none; }
.cb-brand__name { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; text-transform: none; color: var(--ink); }
.cb-brand__sub { display: none; }
.cb-brand__logo { max-height: 28px; width: auto; }
.cb-nav { flex: 1 1 auto; }
.cb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; font-size: 12px; letter-spacing: -0.01em; }
.cb-nav__list a { color: rgba(29, 29, 31, 0.8); display: inline-block; padding: 6px 0; text-decoration: none; }
.cb-nav__list a:hover { color: #000; text-decoration: none; }
.cb-nav-toggle { display: none; min-height: 36px; padding: 0 16px; background: var(--soft); border: 0; border-radius: 980px; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.cb-tools { display: flex; align-items: center; gap: 18px; font-size: 12px; flex: 0 0 auto; }
.cb-lang { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.cb-lang a { color: var(--muted); text-decoration: none; padding: 6px 0; display: inline-block; }
.cb-lang a[aria-current] { color: var(--ink); font-weight: 600; }
.cb-search-link { color: rgba(29, 29, 31, 0.8); text-decoration: none; }

/* Startseite */
.cb-hero { display: block; border: 0; padding: 80px 0 0; text-align: center; }
.cb-hero__text { display: block; max-width: 900px; margin: 0 auto; padding: 0 22px; }
.cb-hero__text .cb-eyebrow { display: none; }
.cb-hero__text h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.03; letter-spacing: -0.05em; margin-bottom: 18px; }
.cb-hero__text .cb-lede { margin: 0 auto; }
.cb-link-arrow { display: inline-block; margin-top: 22px; padding: 0; border: 0; color: var(--link); font-size: 21px; letter-spacing: -0.015em; }
.cb-link-arrow:hover { text-decoration: underline; }
.cb-hero__media { position: relative; min-height: 0; aspect-ratio: 16 / 9; width: calc(100% - 44px); max-width: var(--wrap); margin: 56px auto 0; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.cb-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cb-hero__chip { left: 22px; bottom: 22px; max-width: calc(100% - 44px); padding: 10px 18px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 980px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }

.cb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cb-tile { position: relative; display: flex; align-items: flex-start; min-height: 190px; padding: 28px; background: var(--soft); border: 0; border-radius: var(--r); color: var(--ink); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-decoration: none; transition: background-color .25s ease; }
.cb-tile:nth-child(1), .cb-tile:nth-child(6), .cb-tile:nth-child(7), .cb-tile:nth-child(8) { grid-column: span 2; }
.cb-tile:hover { background: #ececf0; text-decoration: none; }
.cb-tile::after { content: "+"; position: absolute; right: 20px; bottom: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 22px; font-weight: 400; line-height: 30px; text-align: center; }

.cb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.cb-card__media { display: block; aspect-ratio: 4 / 3; background: var(--soft); border-radius: var(--rs); overflow: hidden; }
.cb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cb-card:hover .cb-card__media img { transform: scale(1.03); }
.cb-card__body { padding-top: 16px; }
.cb-card__body .cb-eyebrow { font-size: 12px; margin-bottom: 4px; }
.cb-card__title { font-size: 21px; margin-bottom: 8px; }
.cb-card__title a { color: var(--ink); text-decoration: none; }
.cb-card__title a:hover { color: var(--link); text-decoration: none; }
.cb-card__excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

.cb-band { width: calc(100% - 44px); max-width: var(--wrap); margin: 96px auto 0; background: #000; border-radius: var(--r); color: #f5f5f7; }
.cb-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 72px 56px; max-width: none; }
.cb-band h2 { color: #f5f5f7; font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
.cb-band p { margin: 0; max-width: 520px; color: #a1a1a6; font-size: 21px; line-height: 1.24; }
.cb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; background: var(--blue); border: 0; border-radius: 980px; color: #fff; font: inherit; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.cb-btn:hover { background: #0077ed; text-decoration: none; }
.cb-btn--light { background: #f5f5f7; color: var(--ink); }
.cb-btn--light:hover { background: #fff; }
.cb-prop { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border: 0; border-radius: var(--r); overflow: hidden; }
.cb-prop__media { min-height: 300px; }
.cb-prop__media img { width: 100%; height: 100%; object-fit: cover; }
.cb-prop__text { padding: 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.cb-agenda { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; background: var(--soft); border: 0; border-radius: var(--r); }

/* Brotkrumen */
.cb-crumbs { margin-bottom: 20px; font-size: 12px; color: var(--muted); }
.cb-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.cb-crumbs li + li::before { content: "›"; margin-right: 8px; }
.cb-crumbs a { color: var(--muted); }

/* Beitrag */
.cb-article__head { max-width: 880px; margin: 0 auto; padding-top: 56px; text-align: center; }
.cb-article__head .cb-crumbs ol { justify-content: center; }
.cb-article__head h1 { margin-bottom: 14px; }
.cb-byline { margin: 0; font-size: 14px; color: var(--muted); }
.cb-article__media { max-width: var(--wrap); margin: 40px auto 0; }
.cb-article__media img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r); }
.cb-article__body, .cb-article__comments { max-width: 760px; margin: 0 auto; }
.cb-prose { max-width: var(--narrow); margin: 0 auto; padding-top: 48px; font-size: 19px; line-height: 1.55; letter-spacing: -0.012em; }
.cb-prose h2 { margin-top: 1.8em; font-size: 32px; }
.cb-prose h3 { margin-top: 1.5em; font-size: 24px; }
.cb-prose img { margin: 1.6em 0; border-radius: var(--rs); }
.cb-prose figure { margin: 1.6em 0; }
.cb-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.cb-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--muted); }
.cb-prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 16px; }
.cb-prose th, .cb-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.cb-prose iframe { max-width: 100%; border-radius: var(--rs); }
.cb-toc { margin: 0 0 2em; padding: 20px 24px; background: var(--soft); border: 0; border-radius: var(--rs); font-size: 16px; }
.cb-toc ol { margin: 0; padding-left: 20px; }
.cb-toc a { color: var(--link); }
.cb-author { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: var(--narrow); }
.cb-comments { max-width: var(--narrow); padding: 56px 0 0; margin: 0 auto; }
.cb-comment-list { list-style: none; padding: 0; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.comment-form input[type=submit] { min-height: 44px; padding: 0 22px; background: var(--blue); color: #fff; border: 0; border-radius: 980px; font: inherit; cursor: pointer; }

/* Archive, Suche, 404 */
.cb-archive__head { padding-top: 64px; padding-bottom: 8px; text-align: center; border: 0; }
.cb-archive__head .cb-crumbs ol { justify-content: center; }
.cb-archive__head .cb-lede { margin: 0 auto; }
.cb-search { display: flex; gap: 12px; max-width: 560px; margin: 20px auto 0; }
.cb-search input { flex: 1; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 980px; font: inherit; }
.cb-404 { text-align: center; padding-bottom: 120px; }
.cb-404 .cb-lede { margin: 0 auto 24px; }
.navigation.pagination { margin-top: 56px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 980px; background: var(--soft); color: var(--ink); text-decoration: none; }
.page-numbers.current { background: var(--blue); color: #fff; }

/* Fußzeile */
.cb-footer { margin-top: 112px; background: var(--soft); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cb-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 24px; }
.cb-footer__brand { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; text-transform: none; }
.cb-footer a { color: var(--ink); }
.cb-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.cb-footer__links a { display: inline-block; padding: 6px 0; }
.cb-footer__bottom { padding-top: 14px; padding-bottom: 28px; border-top: 1px solid var(--line); }

/* Videos nach Klick */
.cb-video { border-radius: var(--rs); overflow: hidden; }

/* Tablet und Handy */
@media (max-width: 1000px) {
  .cb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-tile:nth-child(n) { grid-column: auto; }
  .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-prop { grid-template-columns: 1fr; }
  .cb-band__inner, .cb-agenda { flex-direction: column; align-items: flex-start; padding: 48px 32px; }
}
@media (max-width: 860px) {
  .cb-nav-toggle { display: inline-block; margin-left: auto; }
  .cb-header__bar { flex-wrap: wrap; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .cb-nav { display: none; order: 4; width: 100%; flex: 0 0 100%; }
  .cb-nav.is-open { display: block; }
  .cb-nav__list { flex-direction: column; gap: 0; padding: 8px 0 12px; font-size: 17px; }
  .cb-nav__list a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cb-tools { order: 3; }
}
@media (max-width: 734px) {
  body { font-size: 17px; }
  .cb-hero { padding-top: 48px; }
  .cb-hero__media { aspect-ratio: 4 / 3; border-radius: 22px; margin-top: 36px; }
  .cb-section { padding-top: 64px; }
  .cb-tiles { gap: 12px; }
  .cb-tile { min-height: 140px; padding: 20px; border-radius: 22px; }
  .cb-grid { grid-template-columns: 1fr; gap: 40px; }
  .cb-band { border-radius: 22px; margin-top: 72px; }
  .cb-band__inner { padding: 40px 24px; }
  .cb-prose { font-size: 18px; }
  .cb-article__media img { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
