/* AAX Krahl’s Weine – Stylesheet im Stil der Flaschenetiketten
   Weißes Papier, Times für Namen, schlichte Grotesk für Angaben in Versalien,
   Farben aus den Pinselstrichen der Etiketten.
   Keine externen Schriften/CDNs -> keine Drittanbieter-Verbindungen, kein Cookie-Banner. */

:root {
  --papier: #ffffff;
  --papier-2: #faf7f2;
  --tinte: #1c1c1c;
  --grau: #5f5f5f;
  --linie: #e4ded4;
  /* Farben aus den Etiketten */
  --rotstrich: #a8434f;
  --rotstrich-dunkel: #87323d;
  --ocker: #d9a067;
  --gelb: #e8b53a;
  --traube: #34478a;
  --gruen: #4d7a2d;

  --serif: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --max: 1020px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 19px/1.6 var(--serif);
}

a { color: var(--traube); text-underline-offset: 2px; }
a:hover { color: var(--rotstrich); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--tinte); margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.35rem; margin: 1.8rem 0 .4rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Etiketten-Typografie: Jahr – Name – Angabe in Versalien */
.jahr { font-family: var(--serif); font-size: 1.5rem; display: block; margin-bottom: .1rem; }
.angabe {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.15rem; display: block; margin-top: .35rem; line-height: 1.25;
}
.kopfzeile { margin-bottom: 1.6rem; }
.klein { font-family: var(--sans); font-size: .82rem; color: var(--grau); line-height: 1.45; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1.2rem; min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.marke { font-family: var(--serif); font-size: 1.45rem; color: var(--tinte); text-decoration: none; line-height: 1.1; }
.marke small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); }
.nav { display: flex; gap: .3rem 1.2rem; flex-wrap: wrap; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.nav a { text-decoration: none; color: var(--tinte); }
.nav a:hover { color: var(--rotstrich); }

/* Bühne = großes Etikett */
.buehne { padding: 56px 0 40px; }
.buehne .wrap { max-width: var(--max); }
.buehne h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
.buehne h1 .angabe { font-size: clamp(1.1rem, 2.2vw, 1.5rem); margin-top: .5rem; }
.buehne .herkunft { font-family: var(--sans); font-size: 1.15rem; line-height: 1.35; margin: 1.6rem 0 1.8rem; }
.oeko { font-family: var(--sans); font-size: .78rem; color: var(--grau); line-height: 1.35; margin-top: 1.4rem; }
@media (max-width: 760px) { .buehne { padding-top: 32px; } }

.knopf {
  display: inline-block; padding: .7rem 1.35rem; border-radius: 999px;
  background: var(--rotstrich); color: #fff; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: .88rem; letter-spacing: .03em; text-transform: uppercase;
  border: 1px solid var(--rotstrich); cursor: pointer; margin: .2rem .3rem .2rem 0;
}
.knopf:hover { background: var(--rotstrich-dunkel); border-color: var(--rotstrich-dunkel); color: #fff; }
.knopf.zart { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf.zart:hover { background: var(--tinte); color: #fff; }

/* Fotoband unter der Bühne */
.band {
  height: clamp(220px, 34vw, 420px);
  background: url("img/weinberge-hainfeld-suedliche-weinstrasse.jpg") center 62%/cover no-repeat, var(--linie);
  background-image: image-set(url("img/weinberge-hainfeld-suedliche-weinstrasse.webp") type("image/webp"), url("img/weinberge-hainfeld-suedliche-weinstrasse.jpg") type("image/jpeg"));
}

/* Abschnitte */
section { padding: 76px 0; scroll-margin-top: 66px; }
section.zweit { background: var(--papier-2); }
section + section:not(.zweit) { border-top: 1px solid var(--linie); }

.raster { display: grid; gap: 2.2rem 3rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .raster { grid-template-columns: 1fr; } section { padding: 54px 0; } }

/* Angaben wie unten auf dem Etikett */
.karte { border-top: 1px solid var(--tinte); border-bottom: 1px solid var(--tinte); padding: 1.1rem 0; }
.karte dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; font-family: var(--sans); font-size: 1rem; }
.karte dt { color: var(--grau); text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; padding-top: .2rem; }
.karte dd { margin: 0; }

.hinweis { color: var(--grau); font-size: .95rem; }

/* Kundenbrief */
.brief { max-width: 740px; }
.brief ul { padding-left: 0; list-style: none; }
.brief li { margin-bottom: .9rem; padding-left: 1.4rem; position: relative; }
.brief li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .32rem; border-radius: 50%; background: var(--rotstrich); transform: rotate(-18deg); }
.brief li:nth-child(2n)::before { background: var(--ocker); }
.brief li:nth-child(3n)::before { background: var(--gelb); }
.gruss { font-style: italic; }
.sprueche { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); color: var(--grau); font-style: italic; }
.sprueche p { margin: .4rem 0; }

/* Fotos */
.bild { width: 100%; height: auto; display: block; background: var(--linie); aspect-ratio: 4/3; object-fit: cover; }
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.galerie img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--linie); }
@media (max-width: 760px) { .galerie { grid-template-columns: 1fr; } }

/* Preisliste */
.preis { max-width: 740px; }
.angebot { font-size: 1.15rem; border-left: 3px solid var(--rotstrich); padding: .2rem 0 .2rem .9rem; }
.angebot .angabe { display: inline; font-size: .8rem; color: var(--rotstrich); margin-right: .5rem; }

.weinkarte { columns: 2 440px; column-gap: 3.5rem; margin: 2.2rem 0 1rem; }
.weine { width: 100%; border-collapse: collapse; break-inside: avoid; margin: 0 0 2.4rem; }
.weine caption {
  text-align: left; font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
  padding: .45rem .6rem; background: #ecebe8; margin-bottom: .2rem;
}
.weine caption small { display: block; text-transform: none; letter-spacing: 0; color: var(--grau); font-size: .8rem; }
.weine thead { position: absolute; left: -9999px; }
.weine td { padding: .55rem .25rem; vertical-align: top; border-bottom: 1px solid var(--linie); }
.weine .nr { white-space: nowrap; width: 3.2rem; color: var(--grau); }
.weine .name { display: block; font-size: 1.08rem; line-height: 1.25; }
.weine .name b { font-weight: 700; }
.weine .info { display: block; font-family: var(--sans); font-size: .76rem; color: var(--grau); text-transform: uppercase; letter-spacing: .02em; margin-top: .15rem; line-height: 1.4; }
.weine .herkunft-wein { text-transform: none; letter-spacing: 0; font-weight: 600; }
.weine .inhalt { white-space: nowrap; font-family: var(--sans); font-size: .82rem; color: var(--grau); padding-top: .75rem; text-align: right; }
.weine .eur { white-space: nowrap; text-align: right; font-weight: 700; font-size: 1.1rem; width: 5.2rem; }
.weine .eur small { display: block; font-weight: 400; font-family: var(--sans); font-size: .72rem; color: var(--grau); }

.bedingungen { margin-top: .5rem; }
.lieferung { font-family: var(--sans); font-size: .92rem; padding-left: 1.1rem; line-height: 1.55; }
.lieferung li { margin-bottom: .35rem; }

/* Formular */
form { display: grid; gap: 1rem; }
label { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); display: block; margin-bottom: .3rem; }
input, textarea {
  width: 100%; padding: .65rem .2rem; border: 0; border-bottom: 1px solid #9a948b; border-radius: 0;
  font: inherit; font-size: 1.05rem; background: transparent; color: var(--tinte);
}
input:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--rotstrich); }
textarea { min-height: 150px; resize: vertical; border: 1px solid #9a948b; padding: .6rem; }
textarea:focus { border: 1px solid var(--rotstrich); box-shadow: inset 0 0 0 1px var(--rotstrich); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dsgvo { font-family: var(--sans); font-size: .8rem; color: var(--grau); }
.meldung { padding: .9rem 1rem; font-family: var(--sans); font-size: .95rem; }
.meldung.ok { background: #edf3e6; color: #2f4a1c; border-left: 3px solid var(--gruen); }
.meldung.fehler { background: #f8e9ea; color: var(--rotstrich-dunkel); border-left: 3px solid var(--rotstrich); }

/* Fuß = Etikettenfuß */
.fuss { border-top: 1px solid var(--tinte); padding: 34px 0 40px; font-family: var(--sans); font-size: .92rem; line-height: 1.5; }
.fuss .wrap { display: flex; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; align-items: flex-end; }
.fuss a { color: var(--tinte); }
.fuss nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

/* Rechtstexte */
.recht { max-width: 760px; padding: 56px 20px 72px; margin: 0 auto; }
.recht h1 { font-size: 2.6rem; margin-bottom: 1rem; }
.recht h2 { font-size: 1.4rem; margin: 2rem 0 .4rem; }
.recht ul { padding-left: 1.2rem; }
.platzhalter { background: #fff1b8; padding: 0 .25rem; }

/* Formular: Anliegen */
fieldset.art { border: 0; padding: 0; margin: 0; }
fieldset.art legend { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); margin-bottom: .4rem; padding: 0; }
label.wahl { display: flex; align-items: center; gap: .5rem; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--tinte); margin: .25rem 0; cursor: pointer; }
label.wahl input { width: auto; accent-color: var(--rotstrich); }
[hidden] { display: none !important; }

/* Fotos mit Bildunterschrift */
figure { margin: 0; }
.foto { margin-top: 1.8rem; }
.foto img { width: 100%; height: auto; display: block; background: var(--linie); }
figcaption { font-family: var(--sans); font-size: .8rem; color: var(--grau); margin-top: .45rem; }
.portraet { float: right; width: 210px; margin: .3rem 0 1rem 1.8rem; }
.portraet img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .portraet { width: 130px; margin-left: 1rem; } }
.brief::after { content: ""; display: block; clear: both; }
.ueber-2 { grid-template-columns: 1.5fr 1fr; }
.ueber-2 .foto { margin-top: .4rem; }
@media (max-width: 760px) { .ueber-2 { grid-template-columns: 1fr; } }

/* Kundenbrief-Archiv */
.archiv { margin-top: 2rem; font-family: var(--sans); font-size: .92rem; }
.archiv summary { cursor: pointer; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.archiv ul { columns: 2 180px; padding-left: 1.1rem; margin-top: .8rem; }

picture { display: block; }
.galerie picture { height: 100%; }
.partner { font-size: 1rem; }
.partner .angabe { display: block; font-size: .8rem; color: var(--gruen); margin-bottom: .2rem; }

/* ---- Bestellen aus der Preisliste ---- */
.weine .menge { width: 4.4rem; text-align: right; padding-left: .6rem; }
.weine .menge input {
  width: 3.8rem; padding: .35rem .3rem; text-align: center; font: inherit; font-size: 1rem;
  border: 1px solid #b9b2a7; border-radius: 6px; background: #fff;
}
.weine .menge input:focus { outline: 2px solid var(--rotstrich); outline-offset: 0; border-color: transparent; }
.weine tr.gewaehlt td { background: #faf1f1; }
.weine tr.gewaehlt .menge input { border-color: var(--rotstrich); font-weight: 700; }

.korb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.2rem; flex-wrap: wrap;
  padding: .7rem max(20px, calc((100vw - var(--max)) / 2 + 20px));
  background: #fff; border-top: 2px solid var(--rotstrich); box-shadow: 0 -6px 18px rgba(0,0,0,.08);
  font-family: var(--sans);
}
.korb-text { font-size: .98rem; }
.korb-versand { color: var(--grau); font-size: .85rem; }
.korb-knoepfe { display: flex; gap: .4rem; }
.korb .knopf { margin: 0; padding: .55rem 1.1rem; }
body.mit-korb { padding-bottom: 88px; }

.uebersicht { border: 1px solid var(--linie); background: var(--papier-2); padding: .9rem 1rem; }
.uebersicht-titel { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
.uebersicht table { width: 100%; border-collapse: collapse; margin: .5rem 0; font-family: var(--sans); font-size: .9rem; }
.uebersicht td { padding: .3rem .2rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.uebersicht td:first-child { color: var(--grau); white-space: nowrap; width: 3rem; }
.uebersicht td:last-child { text-align: right; white-space: nowrap; }
.uebersicht tfoot td { color: var(--grau); }
.uebersicht tfoot tr.gesamt td { color: var(--tinte); font-weight: 700; border-bottom: 0; font-size: 1rem; }

@media (max-width: 560px) {
  .weine .inhalt { display: none; }
  .weine .menge { width: 3.6rem; padding-left: .3rem; }
  .weine .menge input { width: 3.2rem; }
  .korb { padding: .6rem 16px; }
  .korb-versand { display: block; }
}
.geb-mobil { display: none; }
@media (max-width: 560px) { .geb-mobil { display: inline; } }
.geb-mobil { text-transform: none; }
.korb { transition: transform .25s ease; }
.korb.weg { transform: translateY(110%); }
