/*
Theme Name: Café Hoch³
Theme URI: https://cafe-hoch3.de
Author: Für Hoch³ UG – gebaut mit Claude
Author URI: https://cafe-hoch3.de
Description: Maßgeschneidertes WordPress-Theme für das Café Hoch³ in der Stralsunder Altstadt. Frühstück & Brunch, Specialty Coffee und Gemeinschaft – hanseatisch geerdet in Backsteinrot und Ostsee-Petrol. Schriften selbst gehostet (DSGVO-freundlich, kein Google-Fonts-CDN).
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cafe-hoch3
Tags: cafe, restaurant, custom-logo, custom-menu, featured-images, translation-ready, blog, two-columns, right-sidebar
*/

/* =========================================================================
   1. Selbst gehostete Schriften  (Fraunces = Display, Instrument Sans = Text)
   ========================================================================= */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/fraunces-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); }

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }

/* =========================================================================
   2. Design-Tokens
   ========================================================================= */
:root {
  /* Farbwelt: warmes Papier, Espresso-Tinte, Stralsunder Backsteinrot, Ostsee-Petrol */
  --paper:       #F2EEE4;
  --surface:     #FBF8F2;
  --ink:         #241B14;
  --ink-soft:    #6A5D50;
  --brick:       #A23A2B;
  --brick-deep:  #7C2A1E;
  --petrol:      #1E4A47;
  --petrol-deep: #143634;
  --sand:        #E7D9BE;
  --line:        #DDD1BC;
  --white:       #FFFFFF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(36,27,20,.05), 0 12px 34px -18px rgba(36,27,20,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================================
   3. Reset & Grundlagen
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brick-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* =========================================================================
   4. Layout-Helfer
   ========================================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brick); display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brick); display: inline-block; }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brick); color: var(--white); }
.btn--primary:hover { background: var(--brick-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--petrol { background: var(--petrol); color: var(--white); }
.btn--petrol:hover { background: var(--petrol-deep); color: var(--white); }

/* =========================================================================
   5. Kopfzeile / Navigation
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }

.brand { display: inline-flex; align-items: baseline; gap: .05rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .cube { color: var(--brick); font-weight: 700; }
.brand img { max-height: 46px; width: auto; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.primary-nav a { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none; padding: .35rem 0; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--brick); transition: right .28s var(--ease); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { right: 0; }
.primary-nav .current-menu-item > a { color: var(--brick-deep); }

.header-cta { display: inline-flex; align-items: center; gap: 1rem; }

/* Mobile-Toggle */
.nav-toggle { display: none; background: transparent; border: 1.5px solid var(--line); border-radius: 10px; width: 46px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .primary-nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); box-shadow: var(--shadow);
  }
  .nav-open .primary-nav { max-height: 80vh; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .primary-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 1rem 0; font-size: 1.15rem; }
  .primary-nav a::after { display: none; }
}

/* =========================================================================
   6. Hero
   ========================================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-heading { font-size: clamp(2.7rem, 6.2vw, 4.9rem); font-weight: 500; line-height: 1.02; margin: 0 0 1.1rem; }
.hero-heading .cube { color: var(--brick); }
.hero-text { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-facts { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.hero-fact { min-width: 0; }
.hero-fact .k { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); margin-bottom: .25rem; }
.hero-fact .v { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }

/* Visual: Bild oder gestalteter Duoton-Platzhalter mit ³-Signet */
.hero-visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual--placeholder {
  background:
    radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--brick) 55%, transparent), transparent 60%),
    linear-gradient(150deg, var(--petrol) 0%, var(--petrol-deep) 55%, #0f2624 100%);
}
.hero-visual--placeholder::after {
  content: "³"; position: absolute; right: -.08em; bottom: -.28em;
  font-family: var(--font-display); font-weight: 700; font-size: 20rem; line-height: 1;
  color: rgba(255,255,255,.10);
}
.hero-visual--placeholder .ph-label {
  position: absolute; left: 1.6rem; bottom: 1.6rem; right: 1.6rem;
  color: rgba(255,255,255,.92); font-family: var(--font-display); font-size: 1.35rem; font-style: italic;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 11; order: -1; }
}

/* =========================================================================
   7. Drei Säulen  (¹ ² ³ – die Bedeutung von Hoch³)
   ========================================================================= */
.pillars { background: var(--surface); border-block: 1px solid var(--line); }
.pillars-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.pillar {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.7rem 1.9rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand); }
.pillar .num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--brick);
  display: block; margin-bottom: .9rem;
}
.pillar .num sup { font-size: .55em; }
.pillar h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   8. Über uns
   ========================================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.about-copy .lede { margin-bottom: 1.2rem; }
.about-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-figure--placeholder { background: linear-gradient(160deg, var(--sand), #d8c49b); display: grid; place-items: center; }
.about-figure--placeholder span { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--brick-deep); padding: 2rem; text-align: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-figure { order: -1; aspect-ratio: 16/10; } }

/* =========================================================================
   9. Besuch: Öffnungszeiten · Standort · Kontakt
   ========================================================================= */
.visit { background: var(--petrol); color: color-mix(in srgb, var(--white) 92%, var(--petrol)); }
.visit h2, .visit h3 { color: var(--white); }
.visit .eyebrow { color: #E7C6A6; }
.visit .eyebrow::before { background: #E7C6A6; }
.visit a { color: #F2D9BE; }
.visit a:hover { color: var(--white); }
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.hours-list { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 420px; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(255,255,255,.22); }
.hours-list .day { font-weight: 500; }
.hours-list .time { font-family: var(--font-display); }
.visit-contact p { margin-bottom: .4rem; }
.visit-contact .label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #E7C6A6; font-weight: 600; margin-top: 1.3rem; margin-bottom: .2rem; }
.visit-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.visit .btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.visit .btn--ghost:hover { background: var(--white); color: var(--petrol-deep); }
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   10. Aktuelles / Blog
   ========================================================================= */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 3/2; overflow: hidden; background: var(--sand); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card--noimg .thumb { display: grid; place-items: center; background: linear-gradient(160deg, var(--sand), #ddc9a3); }
.post-card--noimg .thumb::after { content: "Hoch³"; font-family: var(--font-display); font-style: italic; color: var(--brick-deep); font-size: 1.3rem; }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brick-deep); }
.post-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem; }
.post-card .more { margin-top: auto; font-weight: 600; color: var(--brick-deep); text-decoration: none; }
.post-card .more:hover { text-decoration: underline; }

/* =========================================================================
   11. Inhaltsseiten & Beiträge (Einzelansicht)
   ========================================================================= */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.entry { max-width: 720px; margin-inline: auto; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.7rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.6em; }
.entry-content img, .entry-content .wp-block-image { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 3px solid var(--brick); padding: .4rem 0 .4rem 1.4rem; margin-inline: 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink);
}
.entry-content a { color: var(--brick-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .4em; }
.entry-content figure { margin: 0 0 1.4em; }
.entry-content figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .5rem; }
.wp-block-image img { margin-inline: auto; }
.alignwide { width: min(100%, 1000px); margin-inline: auto; }
.alignfull { width: 100%; }

.featured-media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow); }
.entry-meta { font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8rem; }

/* Kommentare */
.comments-area { max-width: 720px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-family: inherit; font-size: 1rem; margin-bottom: 1rem;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--petrol); outline: none; }

/* =========================================================================
   12. Fußzeile
   ========================================================================= */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 82%, var(--ink)); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer h4 { color: var(--paper); font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 1rem; }
.footer-brand .brand { color: var(--paper); font-size: 1.7rem; }
.footer-brand p { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); max-width: 34ch; margin-top: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); text-decoration: none; }
.footer-col a:hover { color: var(--paper); }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(242,238,228,.25); border-radius: 50%; display: grid; place-items: center; color: var(--paper); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.socials a:hover { background: var(--brick); border-color: var(--brick); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(242,238,228,.15); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .86rem; color: color-mix(in srgb, var(--paper) 60%, var(--ink)); }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; } }

/* =========================================================================
   13. Scroll-Reveal (respektiert reduced-motion via JS-Gate)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-anim .reveal { opacity: 1; transform: none; transition: none; }

/* =========================================================================
   14. Pagination & Diverses
   ========================================================================= */
.pagination { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 3rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pagination .page-numbers.current { background: var(--brick); color: var(--white); border-color: var(--brick); }
.pagination .page-numbers:hover { border-color: var(--brick); }

.searchform { display: flex; gap: .5rem; }
.searchform input[type="search"] { flex: 1; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-family: inherit; }

.notice-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
