/* Café & Konditorei Rosegger, Hauptplatz 16 Leibnitz
   Palette sampled from the facade sign (deep ochsenblut red on cream stucco).
   One page background between header and footer (owner standard 2).
   Fluid layout, no fixed container (owner standard 3). */

:root {
  --accent: #a92923;
  --accent-dark: #8b1f1b;
  --accent-ink: #ffffff;
  --text: #1d1b19;
  --text-muted: #5b544a;
  --bg: #f7f2e8;
  --bg-foot: #efe7d5;
  --line: #d9cfb9;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display-font: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", serif;
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) { html { font-size: 18px; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 0.15em;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}
@media (hover: hover) {
  a:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }
}
a:focus-visible { color: var(--accent-dark); text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--display-font);
  color: var(--text);
  text-wrap: balance;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 500;
}
h1 { font-size: 2.05rem; }
@media (min-width: 560px) { h1 { font-size: 2.35rem; } }
@media (min-width: 1120px) { h1 { font-size: 2.8rem; } }
@media (min-width: 1440px) { h1 { font-size: 3.1rem; } }
h2 { font-size: 1.55rem; }
@media (min-width: 768px) { h2 { font-size: 1.85rem; } }
@media (min-width: 1440px) { h2 { font-size: 2.05rem; } }
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35em;
  font-family: var(--body-font);
  letter-spacing: 0;
}
@media (min-width: 768px) { h3 { font-size: 1.2rem; } }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Fluid gutters (owner standard 3): the window edges get wider
   with the window, there is no fixed container width.
   --------------------------------------------------------------- */
.pad {
  padding-inline: 20px;
}
@media (min-width: 480px) { .pad { padding-inline: 24px; } }
@media (min-width: 768px) { .pad { padding-inline: 32px; } }
@media (min-width: 1120px) { .pad { padding-inline: 48px; } }
@media (min-width: 1440px) { .pad { padding-inline: 64px; } }
@media (min-width: 1920px) { .pad { padding-inline: 96px; } }

/* ---------------------------------------------------------------
   Signature (owner standard 8): hand-drawn red underline under one
   keyword of every heading. On links it grows left to right on
   hover/focus; the signature itself stays static for non-link uses.
   Reduced-motion still shows the final state.
   --------------------------------------------------------------- */
.sig {
  position: relative;
  display: inline-block;
  color: var(--accent);
  white-space: nowrap;
}
.sig::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.1em;
  height: 0.18em;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2 7 Q 38 1.5 100 6 T 198 4' stroke='%23a92923' stroke-width='2.6' fill='none' stroke-linecap='round'/></svg>")
    center/100% 100% no-repeat;
  pointer-events: none;
}
a .sig::after { transform: scaleX(0.2); transform-origin: left; transition: transform 220ms ease-out; }
@media (hover: hover) {
  a:hover .sig::after { transform: scaleX(1); }
}
a:focus-visible .sig::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  a .sig::after { transform: scaleX(1); transition: none; }
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-head {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 12px;
  padding-inline: 20px;
}
@media (min-width: 480px) { .site-head-inner { padding-inline: 24px; } }
@media (min-width: 768px) { .site-head-inner { padding-inline: 32px; min-height: 88px; } }
@media (min-width: 1120px) { .site-head-inner { padding-inline: 48px; } }
@media (min-width: 1440px) { .site-head-inner { padding-inline: 64px; } }
@media (min-width: 1920px) { .site-head-inner { padding-inline: 96px; } }

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
  min-width: 0;
}
.brand-wordmark {
  font-family: var(--display-font);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.1rem);
  padding-top: 7px;
  position: relative;
  line-height: 1;
}
.brand-wordmark::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
}
.brand-sub {
  font-family: var(--body-font);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
@media (max-width: 419px) {
  .brand-sub { display: none; }
}

/* Call button (owner standards 10, 11: +43 format, never moves on hover) */
.call, .call-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--body-font);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  min-height: 48px;
  transition: background-color 160ms ease-out, color 160ms ease-out;
  font-variant-numeric: tabular-nums;
}
.call:hover, .call-strip:hover,
.call:focus-visible, .call-strip:focus-visible {
  background: var(--accent-dark);
  color: var(--accent-ink);
}
.call .call-label {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.call .call-number {
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.call-head { white-space: nowrap; }
@media (max-width: 519px) {
  .call-head .call-number { display: none; }
  .call-head { padding: 12px 16px; }
}
.call-large {
  padding: 16px 24px;
  font-size: 1.05rem;
  min-height: 56px;
}
.call-large .call-number { font-size: 1.1rem; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  display: grid;
  gap: 32px;
  padding-block: 32px 48px;
  padding-inline: 20px;
}
@media (min-width: 480px) { .hero { padding-inline: 24px; } }
@media (min-width: 768px) {
  .hero { padding-block: 48px 64px; padding-inline: 32px; gap: 40px; }
}
@media (min-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    padding-inline: 48px;
    gap: 56px;
    padding-block: 72px 88px;
  }
  .hero-body { padding-top: 8px; }
}
@media (min-width: 1440px) {
  .hero { padding-inline: 64px; gap: 80px; padding-block: 96px 112px; }
}
@media (min-width: 1920px) {
  .hero { padding-inline: 96px; gap: 120px; }
}

.hero-title { margin: 0 0 20px; }
.hero-lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 48ch;
  margin-bottom: 28px;
  line-height: 1.55;
}
@media (min-width: 1120px) { .hero-lead { font-size: 1.2rem; } }
@media (min-width: 1440px) { .hero-lead { font-size: 1.25rem; } }

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  color: var(--text);
  max-width: none;
}
.hero-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.hero-status[data-state="open"] .dot { background: #2f6b45; }
.hero-status[data-state="closed"] .dot { background: var(--accent); }

.hero-photo {
  margin: 0;
  position: relative;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.hero-photo figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Signature stroke under the photo on hover (owner standard 8).
   On touch devices it's never shown; reduced motion keeps the end state. */
@media (hover: hover) {
  .hero-photo::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 34px;
    height: 0.35em;
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2 7 Q 38 1.5 100 6 T 198 4' stroke='%23a92923' stroke-width='2.6' fill='none' stroke-linecap='round'/></svg>")
      center/100% 100% no-repeat;
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: left;
    transition: opacity 180ms ease-out, transform 240ms ease-out;
    pointer-events: none;
  }
  .hero-photo:hover::after,
  .hero-photo:focus-within::after {
    opacity: 1;
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .hero-photo::after { transition: none; opacity: 1; transform: scaleX(1); }
}

/* ---------------------------------------------------------------
   Offer
   --------------------------------------------------------------- */
.offer {
  padding-block: 56px;
  padding-inline: 20px;
  border-top: 1px solid var(--line);
}
@media (min-width: 480px) { .offer { padding-inline: 24px; } }
@media (min-width: 768px) { .offer { padding-block: 80px; padding-inline: 32px; } }
@media (min-width: 1120px) {
  .offer {
    padding-inline: 48px;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 80px;
    align-items: start;
  }
}
@media (min-width: 1440px) { .offer { padding-inline: 64px; column-gap: 120px; } }
@media (min-width: 1920px) { .offer { padding-inline: 96px; } }

.offer-list { display: contents; }
@media (min-width: 1120px) {
  .offer-list {
    display: block;
    grid-column: 2;
  }
  .offer > h2 { grid-column: 1; margin-top: 0; }
}

.offer-block {
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.offer-block:first-of-type { border-top: none; padding-top: 0; }
@media (min-width: 1120px) {
  .offer-block:first-of-type { border-top: 1px solid var(--line); padding-top: 24px; }
}

/* ---------------------------------------------------------------
   Facts — Hauptplatz in Zahlen
   --------------------------------------------------------------- */
.facts {
  padding-block: 56px;
  padding-inline: 20px;
  border-top: 1px solid var(--line);
}
@media (min-width: 480px) { .facts { padding-inline: 24px; } }
@media (min-width: 768px) { .facts { padding-block: 80px; padding-inline: 32px; } }
@media (min-width: 1120px) { .facts { padding-inline: 48px; } }
@media (min-width: 1440px) { .facts { padding-inline: 64px; } }
@media (min-width: 1920px) { .facts { padding-inline: 96px; } }

.facts-title {
  font-family: var(--f-serif);
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.95rem);
  font-weight: 600;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
@media (min-width: 640px) { .facts-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .facts-list { grid-template-columns: repeat(4, 1fr); gap: 40px; } }

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  position: relative;
}

.fact-num {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .fact-num { font-size: 3rem; } }

.fact-label {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}

.fact-note {
  margin: 8px 0 0;
  font-family: var(--f-sans);
  color: var(--ink);
  line-height: 1.5;
  max-width: 32ch;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fact { transition: border-left-width 220ms ease-out, padding-left 220ms ease-out; }
  .fact:hover,
  .fact:focus-within {
    border-left-width: 6px;
    padding-left: 18px;
  }
}

/* ---------------------------------------------------------------
   Hours and place
   --------------------------------------------------------------- */
.hours-place {
  padding-block: 56px;
  padding-inline: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 40px;
}
@media (min-width: 480px) { .hours-place { padding-inline: 24px; } }
@media (min-width: 768px) {
  .hours-place {
    padding-block: 80px;
    padding-inline: 32px;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
@media (min-width: 1120px) { .hours-place { padding-inline: 48px; gap: 80px; } }
@media (min-width: 1440px) { .hours-place { padding-inline: 64px; gap: 120px; } }
@media (min-width: 1920px) { .hours-place { padding-inline: 96px; } }

.hours {
  border-collapse: collapse;
  width: 100%;
  max-width: 440px;
  font-variant-numeric: tabular-nums;
}
.hours th, .hours td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: none; }
.hours th { color: var(--text); }
.hours td { color: var(--text-muted); text-align: right; }

.place-address {
  font-style: normal;
  font-size: 1.05rem;
  margin: 0 0 16px;
  line-height: 1.5;
}
.place-note { color: var(--text-muted); margin-bottom: 16px; }

/* ---------------------------------------------------------------
   Call strip (owner standard 6)
   --------------------------------------------------------------- */
.callstrip {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: 28px;
  padding-inline: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  text-align: center;
}
@media (min-width: 480px) { .callstrip { padding-inline: 24px; } }
@media (min-width: 768px) { .callstrip { padding-inline: 32px; padding-block: 36px; } }
.callstrip p {
  margin: 0;
  font-size: 1.1rem;
  max-width: none;
  font-weight: 500;
}
.call-strip {
  background: var(--accent-ink);
  color: var(--accent);
  font-size: 1.2rem;
  padding: 14px 22px;
}
.call-strip:hover, .call-strip:focus-visible {
  background: var(--accent-ink);
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------
   Footer (owner standard 6: short, aligned columns)
   --------------------------------------------------------------- */
.site-foot {
  background: var(--bg-foot);
  color: var(--text);
  padding-block: 44px 24px;
  padding-inline: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}
@media (min-width: 480px) { .site-foot { padding-inline: 24px; } }
@media (min-width: 768px) { .site-foot { padding-inline: 32px; padding-block: 56px 28px; } }
@media (min-width: 1120px) { .site-foot { padding-inline: 48px; } }
@media (min-width: 1440px) { .site-foot { padding-inline: 64px; } }
@media (min-width: 1920px) { .site-foot { padding-inline: 96px; } }

.foot-inner {
  display: grid;
  gap: 32px 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .foot-inner {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    align-items: start;
  }
}

.foot-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.foot-col a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.foot-col a:hover,
.foot-col a:focus-visible {
  color: var(--accent-dark);
  text-decoration-color: var(--accent);
}
.foot-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.brand-wordmark-foot {
  color: var(--accent);
  padding-top: 5px;
  font-size: clamp(1.15rem, 0.8rem + 1.2vw, 1.6rem);
  align-self: flex-start;
}

.legal {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.86rem;
  max-width: none;
}
.legal a {
  color: var(--text-muted);
  text-decoration-color: var(--line);
}
.legal a:hover,
.legal a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* --- offer icons (v3) ------------------------------------------------------ */
.offer-icon {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--accent, #7a2e2e);
}
.offer-icon svg { display: block; }
.offer-icon .steam { opacity: 0; }

/* --- Signature load reveal: steam rises from the coffee icon --------------- */
@media (prefers-reduced-motion: no-preference) {
  .offer-icon--coffee .steam--left {
    animation: steam-rise 2400ms cubic-bezier(.4,0,.2,1) 400ms forwards;
  }
  .offer-icon--coffee .steam--mid {
    animation: steam-rise 2400ms cubic-bezier(.4,0,.2,1) 600ms forwards;
  }
  .offer-icon--coffee .steam--right {
    animation: steam-rise 2400ms cubic-bezier(.4,0,.2,1) 800ms forwards;
  }
  .offer-icon--ice circle,
  .offer-icon--ice path {
    transform-origin: 32px 58px;
    animation: scoop-settle 700ms cubic-bezier(.3,1.2,.4,1) 1200ms both;
    opacity: 0;
  }
  .offer-icon--wine path {
    transform-origin: 32px 54px;
    animation: pour-in 800ms cubic-bezier(.4,0,.2,1) 1500ms both;
    opacity: 0;
  }

  @keyframes steam-rise {
    0%   { opacity: 0; transform: translateY(6px) scaleY(0.6); }
    25%  { opacity: 1; }
    75%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px) scaleY(1.1); }
  }
  @keyframes scoop-settle {
    0%   { opacity: 0; transform: translateY(-20px) scale(0.6); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes pour-in {
    0%   { opacity: 0; transform: translateY(-14px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-icon .steam { opacity: 0; }
  .offer-icon--ice circle,
  .offer-icon--ice path,
  .offer-icon--wine path { opacity: 1; }
}
