/* Sicilian Soul – Stylesheet
   Gestaltung nach dem bisherigen Shopify-Auftritt (Theme „Dawn“):
   Off-White, fast schwarze Schrift, Cormorant als einzige Schrift, hellgrauer Fußbereich. */

@font-face {
  font-family: "Cormorant";
  src: url("../schriften/cormorant.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../schriften/cormorant-italic.woff") format("woff");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --grund: #fcfcfc;                    /* Seitenhintergrund */
  --dunkel: #101112;                   /* Überschriften, Knöpfe */
  --text: rgba(16, 17, 18, 0.75);      /* Fließtext */
  --linie: rgba(16, 17, 18, 0.08);     /* Trennlinien */
  --feldrand: rgba(16, 17, 18, 0.55);  /* Formularfelder */
  --hover: rgba(16, 17, 18, 0.04);     /* Menü-Hover */
  --fuss-grund: #ebeced;               /* Fußbereich */
  --fuss-text: rgba(16, 57, 72, 0.75);

  --schrift: "Cormorant", "Cormorant Garamond", Garamond, Georgia, serif;

  --breite: 1320px;
  --rand: 16.5px;
}
@media (min-width: 750px) { :root { --rand: 35px; } }
@media (min-width: 990px) { :root { --rand: 55px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.727;
  letter-spacing: 0.04em;
}
@media (min-width: 750px) { body { font-size: 17.6px; } }
body.menue-offen { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dunkel); text-underline-offset: 0.3rem; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid rgba(16, 17, 18, 0.5); outline-offset: 3px; box-shadow: 0 0 0 3px var(--grund), 0 0 5px 4px rgba(16, 17, 18, 0.3); }

h1, h2, h3 {
  font-family: var(--schrift);
  font-weight: 500;
  color: var(--dunkel);
  line-height: 1.275;
  letter-spacing: 0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1, .gross { font-size: 36px; }
h2 { font-size: 24px; }
h3 { font-size: 20.4px; }
@media (min-width: 750px) {
  h1, .gross { font-size: 48px; }
  h2 { font-size: 28.8px; }
}
p { margin: 0 0 1em; }
strong { color: var(--dunkel); font-weight: 600; }

.huelle { max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
.schmal { max-width: 40rem; }

.kleintitel {
  font-size: 13.2px;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1rem;
}

.sprunglink { position: absolute; left: -999px; top: 0; background: var(--grund); padding: 8px 12px; z-index: 50; }
.sprunglink:focus { left: 8px; }

/* ---------- Ankündigungsleisten ---------- */
.leiste, .ankuendigung {
  border-bottom: 1px solid var(--linie);
  text-align: center;
  color: var(--dunkel);
  font-size: 15.6px;
  letter-spacing: 0.07em;
  line-height: 1.3;
}
.leiste .huelle { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; max-width: 64rem; }
.leiste p { margin: 0; padding: 11px 0; }
.leiste button {
  background: none; border: 0; color: var(--dunkel); cursor: pointer;
  width: 44px; height: 42px; display: grid; place-items: center; padding: 0;
}
.leiste svg { width: 9px; height: 14px; }
.ankuendigung a { display: inline-flex; align-items: center; gap: 10px; padding: 11px var(--rand); text-decoration: none; color: var(--dunkel); }
.ankuendigung a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ankuendigung svg { width: 14px; height: 10px; flex: none; }
.ankuendigung[hidden] { display: none; }

/* ---------- Kopf ---------- */
.kopf { background: var(--grund); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-innen {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 20px var(--rand);
  min-height: 88px;
}
@media (min-width: 990px) { .kopf-innen { padding-left: 35px; padding-right: 35px; } }
.wortmarke, .wortmarke a {
  font-family: var(--schrift);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--dunkel);
  text-decoration: none;
  margin: 0;
  white-space: nowrap;
}
@media (min-width: 750px) { .wortmarke, .wortmarke a { font-size: 36px; } }
.wortmarke a:hover { text-decoration: none; }
.kopf-symbol {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; padding: 0; color: var(--dunkel); cursor: pointer;
}
.kopf-symbol svg { width: 22px; height: 22px; }
.kopf-symbol:hover svg { transform: scale(1.07); }
.kopf-rechts { justify-self: end; }
.menue-knopf .zu { display: none; }
.menue-knopf[aria-expanded="true"] .auf { display: none; }
.menue-knopf[aria-expanded="true"] .zu { display: block; }

/* Seitenmenü (wie im Original immer als ausklappbare Leiste) */
.navigation {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(440px, 100vw);
  height: calc(100vh - 88px); /* wird beim Öffnen per Skript genau gesetzt */
  background: var(--grund);
  border-right: 1px solid rgba(16, 17, 18, 0.1);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  z-index: 30;
}
.navigation.offen { display: flex; }
.navigation ul { list-style: none; margin: 0; padding: 20px 0; }
.navigation li a {
  display: block;
  padding: 12px 33px;
  font-size: 19.8px;
  line-height: 1.27;
  color: var(--dunkel);
  text-decoration: none;
}
.navigation li a:hover, .navigation li a[aria-current="page"] { background: var(--hover); }
.navigation li a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3rem; }
.navigation .menue-fuss { padding: 22px 26px; background: rgba(16, 17, 18, 0.03); }
.schleier { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(16, 17, 18, 0.5); z-index: 15; }
.schleier[hidden] { display: none; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 30px;
  font-family: var(--schrift);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.067em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border-radius: 40px;
  border: 1px solid var(--dunkel);
  background: var(--dunkel);
  color: var(--grund);
  cursor: pointer;
}
@media (min-width: 750px) { .knopf { min-height: 52px; padding: 0 33px; } }
.knopf:hover { box-shadow: 0 0 0 1px var(--dunkel); text-decoration: none; }
.knopf.hell { background: transparent; color: var(--dunkel); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 44px 0; }
@media (min-width: 750px) { .abschnitt { padding: 66px 0; } }

.kopfzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.kopfzeile h2 { margin: 0; }

.seitenkopf { padding: 27px 0 10px; }
.seitenkopf h1 { margin: 0.55em 0 0.3em; }
.seitenkopf p { max-width: 40rem; }

/* Bild mit Text (wie „Image with text“ im Original) */
.bildtext { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; }
.bildtext > img, .bildtext > figure, .bildtext > a { width: 100%; margin: 0; }
.bildtext img { width: 100%; }
.bildtext-inhalt { padding: 36px 0 0; min-width: 0; }
@media (min-width: 750px) {
  .bildtext { grid-template-columns: 1fr 1fr; }
  .bildtext-inhalt { padding: 66px 0 77px 77px; align-self: center; }
}

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 8px; align-items: start; }
@media (min-width: 750px) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.galerie > .leer { grid-column: 1 / -1; }
.werkkarte a { text-decoration: none; color: inherit; display: block; }
.werkkarte .rahmen { overflow: hidden; }
.werkkarte img { width: 100%; transition: transform 0.6s ease; }
.werkkarte a:hover img { transform: scale(1.03); }
.werkkarte h3 { font-size: 18px; line-height: 1.275; margin: 14px 8px 2px; text-align: center; }
@media (min-width: 750px) { .werkkarte h3 { font-size: 21.6px; margin-top: 19px; } }
.werkkarte a:hover h3 { text-decoration: underline; text-underline-offset: 0.3rem; }
.werkkarte .unter { text-align: center; margin: 4px 8px 0; font-size: 0.95em; line-height: 1.45; }
.leer { color: var(--text); }

/* ---------- Werk-Detail ---------- */
.werk { display: grid; grid-template-columns: 1fr; gap: 0; padding: 24px 0 44px; align-items: start; }
@media (min-width: 750px) { .werk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 36px 0 66px; } }
@media (min-width: 990px) { .werk { grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); } }
.bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 750px) { .bilder { gap: 40px 10px; } }
.bilder button { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.bilder button:first-child { grid-column: 1 / -1; }
.bilder img { width: 100%; }
.beschreibung { padding-top: 30px; min-width: 0; }
@media (min-width: 750px) {
  .beschreibung { padding: 0 0 0 44px; position: sticky; top: 108px; }
}
.beschreibung .kleintitel { font-size: 11px; letter-spacing: 0.13em; margin-bottom: 12px; }
.werk h1 { margin-bottom: 0.4em; }
.werk .uebersetzung { margin-bottom: 1em; }
.werk .hinweis {
  display: inline-block; font-size: 13px; letter-spacing: 0.08em;
  color: var(--dunkel); border: 1px solid var(--dunkel); border-radius: 40px; padding: 3px 13px; margin-bottom: 1.2em;
}
.werk .details ul { padding-left: 22px; margin: 0 0 1em; }
.werk .knopfreihe { flex-direction: column; max-width: 44rem; gap: 10px; margin-top: 2rem; }
.werk .knopfreihe .knopf { width: 100%; }
.blaettern { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--linie); padding: 24px 0 44px; }
.blaettern a { text-decoration: none; max-width: 48%; }
.blaettern small { display: block; font-size: 13.2px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text); }
.blaettern span { font-size: 21.6px; color: var(--dunkel); }
.blaettern a:hover span { text-decoration: underline; text-underline-offset: 0.3rem; }
.blaettern .weiter { text-align: right; margin-left: auto; }

dialog.lupe { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: var(--grund); }
dialog.lupe::backdrop { background: var(--grund); }
dialog.lupe img { max-width: 100%; max-height: 100vh; width: auto; margin: 0 auto; object-fit: contain; padding: 60px var(--rand) 24px; }
dialog.lupe button {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grund); border: 1px solid var(--linie); color: var(--dunkel); cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
dialog.lupe button svg { width: 18px; height: 18px; }

/* ---------- Ausstellungen ---------- */
#kommend { padding-bottom: 66px; }
.termin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 56px; padding: 32px 0; border-top: 1px solid var(--linie); }
.termin:last-child { border-bottom: 1px solid var(--linie); }
.termin .wann { font-size: 21.6px; color: var(--dunkel); line-height: 1.3; margin-bottom: 0.3em; }
.termin img { margin-top: 16px; }
.termin.vorbei { opacity: 0.7; }
@media (max-width: 749px) { .termin { grid-template-columns: 1fr; } }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 20px; max-width: 760px; padding-bottom: 66px; }
@media (min-width: 750px) { .formular .paar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }
.formular .paar { display: grid; gap: 20px; }
.formular label { display: block; margin-bottom: 4px; color: var(--text); }
.formular .optional { color: var(--text); opacity: 0.8; }
.formular input, .formular textarea {
  width: 100%; font: inherit; letter-spacing: 0.04em; color: var(--dunkel);
  background: var(--grund); border: 1px solid var(--feldrand); border-radius: 2px;
  min-height: 45px; padding: 10px 15px;
}
.formular input:hover, .formular textarea:hover { box-shadow: 0 0 0 1px var(--feldrand); }
.formular textarea { min-height: 150px; resize: vertical; }
.formular .klein { font-size: 15px; }
.versteckt { position: absolute !important; left: -9999px !important; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 48rem; padding-bottom: 66px; }
.rechtstext h2 { margin-top: 1.4em; }
.ergaenzen { background: #fff3c4; padding: 0 4px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--fuss-grund); color: var(--fuss-text); padding: 44px 0 32px; margin-top: 44px; }
.fuss a { color: var(--fuss-text); }
.fuss .symbole { display: flex; justify-content: center; padding-bottom: 36px; }
.fuss .symbole a { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.fuss .symbole svg { width: 22px; height: 22px; }
.fuss .symbole a:hover svg { transform: scale(1.07); }
.fuss-unten {
  border-top: 1px solid rgba(16, 57, 72, 0.08);
  padding-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px;
  font-size: 13.2px; letter-spacing: 0.06em; line-height: 1.6; text-align: center;
}
.fuss-unten ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.fuss-unten a { text-decoration: none; }
.fuss-unten a:hover { text-decoration: underline; }
.fuss-unten p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
