/* Redesign 2026: neue Schriften, warme Kaffeepalette, neues Header/Footer und neue Startseite.
   Die übrigen Seiten behalten style.css und übernehmen Schriften und Farben über die Variablen. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/fraunces-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-normal.woff2') format('woff2');
}

:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ca-espresso: #2b1d17;
  --ca-roast: #4a3127;
  --ca-cream: #f6efe4;
  --ca-paper: #fffaf3;
  --ca-sand: #ecdfcb;
  --ca-copper: #b5602f;
  --ca-copper-deep: #8f4a23;
  --ca-muted: #7b6a5d;
  --ca-line: rgba(43, 29, 23, 0.1);
  --ca-shadow: 0 1px 2px rgba(43, 29, 23, 0.04), 0 12px 32px -12px rgba(43, 29, 23, 0.16);
  --ca-radius: 20px;

  /* Die alten Variablen zeigen auf die neue Palette, damit alle Seiten zusammenpassen. */
  --espresso: var(--ca-espresso);
  --caramel: var(--ca-copper);
  --light: var(--ca-cream);
  --page-bg: var(--ca-cream);
  --cream: var(--ca-sand);
}

body {
  font-family: var(--font-body);
  background: var(--ca-cream);
  color: var(--ca-espresso);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.ca-wrap {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

.ca-kicker {
  margin-bottom: 12px;
  color: var(--ca-copper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header. */
.ca-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 228, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ca-line);
  box-shadow: none;
  padding: 0;
}

.ca-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  width: min(1240px, 100% - 40px);
  height: 68px;
  margin-inline: auto;
}

.ca-logo {
  color: var(--ca-espresso);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ca-logo em {
  color: var(--ca-copper);
  font-style: italic;
  font-weight: 400;
}

.ca-logo:hover {
  color: var(--ca-espresso);
}

.ca-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  list-style: none;
}

.ca-links a {
  color: var(--ca-roast);
  font-size: 0.95rem;
  font-weight: 500;
}

.ca-links a:hover {
  color: var(--ca-copper);
}

.ca-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ca-paper);
  border: 1px solid var(--ca-line);
  color: var(--ca-espresso);
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}

.ca-cart:hover {
  background: var(--ca-espresso);
  color: var(--ca-paper);
}

.ca-cart .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ca-copper);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

.ca-menu {
  display: none;
  position: relative;
}

.ca-menu summary {
  display: grid;
  gap: 6px;
  width: 26px;
  padding: 10px 0;
  list-style: none;
  cursor: pointer;
}

.ca-menu summary::-webkit-details-marker {
  display: none;
}

.ca-menu summary span {
  height: 1.5px;
  background: var(--ca-espresso);
  border-radius: 2px;
}

.ca-menu ul {
  position: absolute;
  right: 0;
  top: 48px;
  display: grid;
  min-width: 220px;
  padding: 10px;
  list-style: none;
  background: var(--ca-paper);
  border: 1px solid var(--ca-line);
  border-radius: 16px;
  box-shadow: var(--ca-shadow);
}

.ca-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ca-espresso);
}

.ca-menu a:hover {
  background: var(--ca-cream);
}

/* Buttons und Links. */
.ca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--ca-copper);
  border-radius: 999px;
  background: var(--ca-copper);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.ca-btn:hover {
  background: var(--ca-copper-deep);
  border-color: var(--ca-copper-deep);
  color: #fff;
  transform: translateY(-1px);
}

.ca-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

.ca-btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ca-espresso);
}

.ca-btn-small {
  padding: 10px 16px;
  font-size: 0.85rem;
}

.ca-link {
  color: var(--ca-copper);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.ca-link span {
  display: inline-block;
  transition: transform 0.2s;
}

.ca-link:hover {
  color: var(--ca-copper-deep);
}

.ca-link:hover span {
  transform: translateX(3px);
}

/* Hero: volle Höhe, großes Foto. */
.ca-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - 68px);
  padding: 120px 0 clamp(48px, 9vh, 96px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.ca-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ca-zoom 14s ease-out both;
}

.ca-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 15, 10, 0.78) 0%, rgba(25, 15, 10, 0.35) 60%, rgba(25, 15, 10, 0.15) 100%),
    linear-gradient(180deg, rgba(25, 15, 10, 0.1) 40%, rgba(25, 15, 10, 0.6) 100%);
}

@keyframes ca-zoom {
  from {
    transform: scale(1.08);
  }
}

.ca-hero .ca-kicker {
  color: #e8b48f;
}

.ca-hero h1 {
  max-width: 11em;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.ca-hero h1 em {
  color: #f0c29f;
  font-style: italic;
}

.ca-hero-lead {
  max-width: 34em;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.ca-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Drei Stärken. */
.ca-perks {
  background: var(--ca-paper);
  border-bottom: 1px solid var(--ca-line);
}

.ca-perks ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.ca-perks li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
}

.ca-perks li + li {
  border-left: 1px solid var(--ca-line);
}

.ca-perks i {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ca-cream);
  color: var(--ca-copper);
  font-size: 1.3rem;
}

.ca-perks h3 {
  margin: 0;
  font-size: 1.15rem;
}

.ca-perks p {
  color: var(--ca-muted);
  font-size: 0.9rem;
}

/* Abschnitte. */
.ca-section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.ca-section-tint {
  background: var(--ca-sand);
}

.ca-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ca-section h2 em {
  color: var(--ca-copper);
  font-style: italic;
}

.ca-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}

/* Coffee Finder. */
.ca-finder {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.ca-finder-text p:not(.ca-kicker) {
  max-width: 30em;
  margin: 20px 0 28px;
  color: var(--ca-muted);
  font-size: 1.05rem;
}

.ca-finder-steps {
  display: grid;
  gap: 12px;
  list-style: none;
  counter-reset: none;
}

.ca-finder-steps li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--ca-paper);
  border: 1px solid var(--ca-line);
  border-radius: 16px;
  box-shadow: var(--ca-shadow);
  transition: transform 0.25s, border-color 0.25s;
}

.ca-finder-steps li:nth-child(even) {
  margin-left: clamp(0px, 4vw, 48px);
}

.ca-finder-steps li:hover {
  transform: translateX(4px);
  border-color: var(--ca-copper);
}

.ca-finder-steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ca-espresso);
  color: var(--ca-cream);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.ca-finder-steps h3 {
  margin: 0;
  font-size: 1.1rem;
}

.ca-finder-steps p {
  color: var(--ca-muted);
  font-size: 0.88rem;
}

/* Produktkarten. */
.ca-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
}

.ca-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ca-paper);
  border-radius: var(--ca-radius);
  box-shadow: var(--ca-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ca-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(43, 29, 23, 0.04), 0 24px 48px -16px rgba(43, 29, 23, 0.24);
}

.ca-product-image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.ca-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.ca-product:hover .ca-product-image img {
  transform: scale(1.05);
}

.ca-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.92);
  color: var(--ca-espresso);
  font-size: 0.75rem;
  font-weight: 600;
}

.ca-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 18px 20px 20px;
}

.ca-product-type {
  color: var(--ca-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ca-product h3 {
  margin: 0;
  font-size: 1.35rem;
}

.ca-product h3 a {
  color: var(--ca-espresso);
}

.ca-notes {
  color: var(--ca-copper);
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--font-display);
}

.ca-strength {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ca-muted);
  font-size: 0.78rem;
}

.ca-strength span {
  margin-right: 4px;
}

.ca-strength i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ca-sand);
}

.ca-strength i.is-on {
  background: var(--ca-espresso);
}

.ca-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.ca-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* Philosophie. */
.ca-philosophy {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.ca-philosophy img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--ca-radius);
  box-shadow: var(--ca-shadow);
}

.ca-philosophy p:not(.ca-kicker) {
  margin: 20px 0 28px;
  color: var(--ca-muted);
  font-size: 1.05rem;
}

/* Blog. */
.ca-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}

.ca-post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 12px 12px 22px;
  background: var(--ca-paper);
  border-radius: var(--ca-radius);
  box-shadow: var(--ca-shadow);
  color: var(--ca-espresso);
  transition: transform 0.3s;
}

.ca-post:hover {
  transform: translateY(-4px);
  color: var(--ca-espresso);
}

.ca-post img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  object-fit: cover;
  border-radius: 12px;
}

.ca-post-meta,
.ca-post h3,
.ca-post p {
  padding-inline: 8px;
}

.ca-post-meta {
  color: var(--ca-copper);
  font-size: 0.8rem;
  font-weight: 600;
}

.ca-post h3 {
  margin: 0;
  font-size: 1.3rem;
}

.ca-post p:last-child {
  color: var(--ca-muted);
  font-size: 0.92rem;
}

/* Rechtliche Seiten. */
.ca-legal {
  max-width: 760px;
}

.ca-legal h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
}

.ca-legal h2 {
  margin: 32px 0 8px;
  font-size: 1.3rem;
}

.ca-legal p {
  color: var(--ca-roast);
}

.ca-legal-note {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ca-sand);
}

/* Footer. */
.ca-footer {
  margin-top: 0;
  padding: 64px 0 0;
  background: var(--ca-espresso);
  color: #cdbfb0;
}

.ca-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

.ca-footer .ca-logo {
  color: var(--ca-cream);
}

.ca-footer-brand p {
  max-width: 24em;
  margin-top: 14px;
  font-size: 0.92rem;
}

.ca-footer h3 {
  margin-bottom: 12px;
  color: var(--ca-cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ca-footer-grid > div:not(.ca-footer-brand) {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 0.92rem;
}

.ca-footer a {
  color: #cdbfb0;
}

.ca-footer a:hover {
  color: #fff;
}

.ca-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: min(1240px, 100% - 40px);
  margin: 48px auto 0;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9d8c7d;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .ca-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .ca-links {
    display: none;
  }

  .ca-nav > .ca-cart {
    margin-left: auto;
  }

  .ca-nav {
    gap: 12px;
    height: 60px;
  }

  .ca-nav .ca-menu {
    display: block;
  }

  .ca-finder,
  .ca-philosophy {
    grid-template-columns: 1fr;
  }

  .ca-posts {
    grid-template-columns: 1fr;
  }

  .ca-perks ul {
    grid-template-columns: 1fr;
  }

  .ca-perks li {
    padding: 18px 0;
  }

  .ca-perks li + li {
    border-left: 0;
    border-top: 1px solid var(--ca-line);
  }

  .ca-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ca-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .ca-products {
    grid-template-columns: 1fr;
  }

  .ca-finder-steps li:nth-child(even) {
    margin-left: 0;
  }

  .ca-hero {
    min-height: calc(100svh - 60px);
    padding-top: 80px;
  }

  .ca-actions .ca-btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-hero-image {
    animation: none;
  }
}

@media (max-width: 560px) {
  .ca-product-image {
    aspect-ratio: 4 / 3;
  }
}

/* Shop: Filter als ruhige Karte, eigene Auswahlfelder, Stärke als Chips. */
.shop-sidebar.ca-filter {
  top: 92px;
  padding: 22px;
  background: var(--ca-paper);
  border: 1px solid var(--ca-line);
  border-radius: var(--ca-radius);
  box-shadow: var(--ca-shadow);
}

.ca-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ca-line);
}

.ca-filter .ca-filter-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.ca-filter .ca-filter-head h2 i {
  color: var(--ca-copper);
  font-size: 1.05rem;
}

.ca-filter-clear {
  color: var(--ca-muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ca-filter-clear:hover {
  color: var(--ca-copper);
}

.ca-filter .filter-form-sidebar {
  gap: 16px;
}

.ca-filter .filter-group {
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ca-filter .filter-group > label,
.ca-filter .filter-group legend {
  padding: 0;
  color: var(--ca-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ca-filter .filter-group legend {
  margin-bottom: 7px;
}

.ca-filter .filter-group select,
.ca-filter .filter-group input[type='number'] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ca-line);
  border-radius: 12px;
  background-color: var(--ca-cream);
  color: var(--ca-espresso);
  font-size: 0.92rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.ca-filter .filter-group select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237b6a5d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.ca-filter .filter-group select:hover,
.ca-filter .filter-group input[type='number']:hover {
  border-color: rgba(43, 29, 23, 0.25);
}

.ca-filter .filter-group select:focus,
.ca-filter .filter-group input[type='number']:focus {
  outline: none;
  border-color: var(--ca-copper);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(181, 96, 47, 0.15);
}

.ca-suffix {
  position: relative;
}

.ca-suffix input {
  padding-right: 34px !important;
  -moz-appearance: textfield;
}

.ca-suffix input::-webkit-outer-spin-button,
.ca-suffix input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ca-suffix span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ca-muted);
  font-size: 0.92rem;
  pointer-events: none;
}

.ca-chips > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ca-chips label {
  position: relative;
  cursor: pointer;
}

.ca-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ca-chips span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ca-line);
  border-radius: 999px;
  background: var(--ca-cream);
  color: var(--ca-roast);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ca-chips label:hover span {
  border-color: var(--ca-copper);
}

.ca-chips input:checked + span {
  background: var(--ca-espresso);
  border-color: var(--ca-espresso);
  color: var(--ca-cream);
}

.ca-chips input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(181, 96, 47, 0.25);
}

.ca-filter-submit {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .shop-sidebar.ca-filter {
    position: static;
  }

  .ca-chips,
  .ca-filter-submit {
    grid-column: 1 / -1;
  }
}

/* Stärke-Chips auf einer Zeile: etwas breitere Filterspalte, gleich breite Chips. */
.shop-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.ca-chips > div {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.ca-chips span {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
}

@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .ca-chips > div {
    display: flex;
  }

  .ca-chips span {
    min-width: 40px;
  }
}
