/* Hahne & Kohrs – Website-Stylesheet */
@font-face { font-family: 'Open Sans Condensed'; font-weight: 300; font-display: swap; src: url(../fonts/OpenSansCondensed-300.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans Condensed'; font-weight: 700; font-display: swap; src: url(../fonts/OpenSansCondensed-700.woff2) format('woff2'); }

:root {
  --brand: #7B002A;     /* Titel, Navigation, Links */
  --accent: #790028;    /* Überschriften im Inhalt */
  --accent-2: #64001E;  /* dunklere Variante (Kontaktseite) */
  --text: #2E2E2E;
  --nav: #A3B1B3;       /* Menü auf Weinrot (Kontrast ≥ 4.5:1) */
  --nav-light: #66777A; /* Menü auf Weiß (mobil) */
  --nav-on: #54606D;
  --hover: #5F666E;
  --line: #E2E7EA;
  --cond: 'Open Sans Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: #494949; font: 15px/1.5 'helvetica neue', helvetica, arial, sans-serif; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--hover); }
h1, h2, h3, p, ul, fieldset { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; color: var(--accent); }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--y, 15px)); } }
@keyframes draw { from { width: 0; } }

/* ---------------------------------------------------------------- Barrierefreiheit */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10000; padding: 10px 18px; border-radius: 0 0 6px 6px; background: var(--brand); color: #fff; font: 700 16px var(--cond); letter-spacing: 1px; text-transform: uppercase; transition: top .15s; }
.skip:focus { top: 0; color: #fff; outline: 3px solid #fff; outline-offset: -6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.nav a:focus-visible { outline-offset: -6px; }
#inhalt:focus { outline: none; }

/* ---------------------------------------------------------------- Kopfbereich */
.hero { position: relative; z-index: 3; overflow: hidden; background: #CED6D9; text-align: center; animation: fade .6s both; }
.hero-bg { position: absolute; inset: 0; background: center 0 / cover no-repeat; will-change: transform; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: #000; opacity: .1; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--brand); opacity: .45; }
.hero-in { position: relative; z-index: 2; max-width: 940px; margin: 5% auto 15%; padding: 50px 20px; color: var(--brand); font-family: var(--cond); text-shadow: 0 5px 15px rgba(0, 0, 0, .1); }
.hero-in > * { animation: rise 1.5s .9s cubic-bezier(.19, 1, .22, 1) both; }
.hero-in img, .hero-in svg { display: block; margin: 0 auto 6px; }
/* Zahn-Logo: wird nach Titel und Untertitel als Linie gezeichnet – von der Wurzelspitze über die Wurzel bis zur Krone */
.hero-in > .logo-draw { animation: none; }
.logo-draw path { stroke-dasharray: 1 1.01; animation: line 1.33s .95s cubic-bezier(.5, 0, .25, 1) both; }
.logo-draw .l2 { animation-duration: 1.9s; animation-delay: 2.185s; }
@keyframes line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero .title { font-size: 70px; line-height: 70px; font-weight: 300; letter-spacing: -2px; text-transform: uppercase; hyphens: auto; }
.hero .slogan { --y: 20px; font-size: 24px; font-weight: 700; padding-bottom: 10px; animation-duration: 1s; animation-delay: .45s; }
@media (min-width: 900px) { .hero .title { font-size: 90px; line-height: 90px; } }

/* ---------------------------------------------------------------- Navigation */
.nav { position: sticky; top: 0; z-index: 120; height: 70px; background: var(--brand); font: 700 16px/70px var(--cond); letter-spacing: 1px; text-transform: uppercase; user-select: none; transition: box-shadow .3s; animation: fade .6s .3s both; }
.nav.stuck { box-shadow: 0 0 30px rgba(0, 0, 0, .15); }
.nav ul { list-style: none; display: flex; max-width: 1000px; margin: 0 auto; }
.nav li { flex: 1; min-width: 0; text-align: center; transition: background .3s; }
.nav li + li { box-shadow: -1px 0 0 rgba(0, 0, 0, .1); }
.nav a { display: block; padding: 0 15px; overflow: hidden; color: var(--nav); font-size: 1.2em; white-space: nowrap; text-overflow: ellipsis; transition: color .3s; }
.nav li.current, .nav li:hover { background: #fff; }
.nav ul:hover li.current:not(:hover) { background: none; }
.nav ul:hover li.current:not(:hover) a { color: var(--nav); }
.nav .current a, .nav a:hover { color: var(--nav-on); }
.burger { display: none; }

@media (max-width: 899px) {
  .burger { display: block; position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
  .burger span { position: absolute; left: calc(50% - 25px); top: calc(50% - 15px); width: 50px; height: 4px; background: var(--nav); animation: draw .6s both; }
  .burger span:nth-child(2) { top: calc(50% - 3px); animation-delay: .25s; }
  .burger span:nth-child(3) { top: calc(50% + 9px); width: 25px; animation-delay: .5s; }
  .burger::after { content: ''; position: absolute; left: calc(50% + 7px); top: calc(50% + 9px); border: 9px solid transparent; border-top-color: var(--nav); border-bottom: 0; animation: fade .5s .8s both; }
  .nav ul { display: block; position: absolute; left: 5%; right: 5%; top: 90px; background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .3s, visibility 0s .3s, transform 1s cubic-bezier(.19, 1, .22, 1); }
  .nav.open ul { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform 1s cubic-bezier(.19, 1, .22, 1); }
  .nav li { padding: 0 30px; text-align: left; }
  .nav li + li { box-shadow: none; border-top: 1px solid #eee; }
  .nav li.current { background: none; }
  .nav a, .nav ul:hover li.current:not(:hover) a { color: var(--nav-light); }
  .nav a { padding: 20px 0; line-height: 1.6; white-space: normal; }
}

/* ---------------------------------------------------------------- Inhalt */
.main { box-sizing: content-box; max-width: 1000px; margin: 0 auto; padding: 6%; animation: fade .5s .5s both; }
.blk { display: flow-root; color: var(--text); font-size: 16px; }
:where(.blk) h1 { font-size: 36px; }
:where(.blk) h2 { font-size: 24px; }
:where(.blk) h3 { font-size: 18px; }
.fs-14 { font-size: 14px; } .fs-15 { font-size: 15px; } .fs-16 { font-size: 16px; } .fs-18 { font-size: 18px; } .fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; } .fs-24 { font-size: 24px; } .fs-36 { font-size: 36px; }
.c { color: var(--accent); } .c2 { color: var(--accent-2); }
.b { font-weight: 700; }
.fr { float: right; margin-left: 20px; }
.fl { float: left; margin-right: 20px; }
a.tel { color: inherit; }
@media (max-width: 440px) {
  :where(.blk) h1, .fs-36 { font-size: 24px; }
}
/* Handy: Bilder neben dem Text über die volle Breite */
@media (max-width: 600px) {
  .blk > .fr, .blk > .fl { float: none; display: block; margin: 0 auto 15px; }
}

/* Zwei Spalten (bricht unter 771 px um) */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols > div { display: flow-root; }
/* Häkchen-Liste */
.check { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; color: var(--accent); font-size: 22px; }
.blk ul.list { margin: 6px 0 0; padding-left: 1.3em; }
.blk ul.list li { margin-bottom: 5px; }
.blk ul.list li::marker { color: var(--brand); }
.check li::before { content: '✓ '; font: 24px 'Lucida Grande', Verdana, sans-serif; }
@media (max-width: 770px) { .cols, .check { grid-template-columns: 1fr; } }

.embed iframe { display: block; max-width: 100%; border: 1px solid #000; }

/* Karte: OpenStreetMap wird erst nach Klick geladen */
.map { position: relative; display: grid; place-items: end center; padding-bottom: 28px; height: 300px; border: 1px solid #000; background: #e5e3df center / cover no-repeat; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { max-width: 90%; padding: 12px 18px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 18px rgba(0, 0, 0, .2); color: var(--text); font-family: inherit; font-size: 15px; line-height: 1.4; cursor: pointer; }
.map-load b { display: block; color: var(--brand); font-size: 17px; }
.map-load:hover b { text-decoration: underline; }
.map small { position: absolute; right: 0; bottom: 0; padding: 1px 5px; background: rgba(255, 255, 255, .8); font-size: 11px; }

/* ---------------------------------------------------------------- Kontaktformular */
.cform label, .cform legend { font: 600 12px/24px sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #494949; }
.cform, #formular { scroll-margin-top: 90px; }
.cform .f { margin-bottom: 15px; }
.cform .grp { margin-bottom: 22px; border: 0; }
.cform fieldset.grp { margin-bottom: 24px; }
.cform .opt { display: block; line-height: 25px; }
.cform input[type=radio], .cform input[type=checkbox] { margin: 3px 5px 0; vertical-align: -1px; }
.cform input:not([type]), .cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform textarea, .cform select {
  display: block; width: 100%; padding: 9px 2%; border: 2px solid #8a9297; border-radius: 3px; background: none; font: 15px/normal "helvetica neue", helvetica, arial, sans-serif; color: inherit; -webkit-appearance: none; }
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(123, 0, 42, .18); }  /* Fokus deutlich sichtbar (WCAG 2.4.7) */
.cform select { padding-right: 44px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B002A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px; }
.cform select:hover { border-color: #6b7378; }
.cform select:has(option[value='']:checked) { color: #6b7378; }
.cform select option { color: var(--text); }
.cform input[type=file] { display: block; width: 100%; margin-top: 0; padding: 4px 0 10px;  /* Platz für Schatten des Knopfs, sonst schneidet das Feld ihn ab */ font: 14px "helvetica neue", helvetica, arial, sans-serif; color: #6b7378; cursor: pointer; }
.cform input[type=file]::file-selector-button {
  margin-right: 14px; padding: 11px 20px 11px 42px; border: 0; border-radius: 999px; cursor: pointer;
  background: #f1f4f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B002A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-8.8 8.8a5.5 5.5 0 0 1-7.8-7.8l8.8-8.8a3.7 3.7 0 0 1 5.2 5.2l-8.8 8.8a1.8 1.8 0 0 1-2.6-2.6l8.1-8.1'/%3E%3C/svg%3E") no-repeat 17px 50% / 17px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--brand); font: 700 15px/1 var(--cond); letter-spacing: 1px; text-transform: uppercase;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cform input[type=file]:hover::file-selector-button { background-color: #fbf1f4; box-shadow: inset 0 0 0 1px rgba(123, 0, 42, .25), 0 3px 8px rgba(123, 0, 42, .12); }
.cform input[type=file]:active::file-selector-button { transform: scale(.97); }
.cform input[type=file]:focus-visible { outline: none; }
.cform input[type=file]:focus-visible::file-selector-button { outline: 3px solid rgba(123, 0, 42, .35); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cform input[type=file]::file-selector-button { transition: none; } }
.cform .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border: 0; border-radius: 999px; font: 700 17px/1 var(--cond); letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; transition: transform .25s ease; }
.btn:focus-visible { outline: 3px solid rgba(123, 0, 42, .35); outline-offset: 3px; }
.btn-send { color: #fff; background: linear-gradient(180deg, #93103f 0%, var(--brand) 55%, #640022 100%);
  box-shadow: 0 6px 16px rgba(123, 0, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(123, 0, 42, .34), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-send:hover svg { transform: translateX(3px) rotate(-8deg); }
.btn-send:active { transform: translateY(0) scale(.98); box-shadow: 0 3px 10px rgba(123, 0, 42, .3); }
.btn-reset { padding: 12px 22px; color: #5f666e; background: #f1f4f5; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.btn-reset:hover { color: var(--brand); background: #fbf1f4; box-shadow: inset 0 0 0 1px rgba(123, 0, 42, .25); }
.btn-reset:hover svg { transform: rotate(-60deg); }
.btn-reset:active { transform: scale(.97); }
@media (max-width: 600px) { .cform .actions { flex-direction: column; align-items: stretch; } .btn { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .btn, .btn svg { transition: none; } }
.msg { padding: 12px 16px; border-radius: 3px; }
.msg.ok { background: #eef6ee; color: #2c5e2e; }
.msg.err { background: #fbeeee; color: #8a1f1f; margin-bottom: 15px; }

/* ---------------------------------------------------------------- Fußzeile */
.foot { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); color: #6b7378; }
.foot a, .foot a.tel { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot a:hover, .foot a.tel:hover { color: var(--hover); }

/* ---------------------------------------------------------------- Termin-Knopf (erscheint nach dem Kopfbereich) */
.cta { position: fixed; z-index: 150; right: 20px; bottom: 20px; padding: 12px 22px; border-radius: 30px; background: var(--brand); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  color: #fff; font: 700 18px/1 var(--cond); letter-spacing: 1px; text-transform: uppercase;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility 0s .3s, background .2s; }
.cta.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, background .2s; }
.cta:hover { background: #5c001f; color: #fff; }
@media (max-width: 600px) { .cta { right: 12px; bottom: 12px; padding: 11px 18px; font-size: 16px; } }

/* ---------------------------------------------------------------- Cookie-Hinweis */
#cookie { position: fixed; z-index: 9001; left: 0; right: 0; bottom: 0; display: flow-root; padding: 15px 30px; background: #fff; border-top: 3px solid #77052f; color: #5f666e; font-size: 17px; line-height: 1.3; }
#cookie[hidden] { display: none; }
#cookie a { color: #77052f; }
#cookie .btns { float: right; display: flex; gap: 10px; margin-left: 10px; }
#cookie button { padding: 8px 15px; border: 0; border-radius: 5px; background: #77052f; color: #feffff; font: inherit; cursor: pointer; transition: background .2s; }
#cookie button.alt { background: #6b7378; }
#cookie button:hover { background: #4a5157; }
@media (max-width: 767px) { #cookie { padding: 10px; font-size: 13px; } #cookie .btns { flex-direction: column; } }
@media print { #cookie, .nav, .cta { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Admin-Vorschau */
.preview-note { position: fixed; z-index: 9999; top: 0; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 0 0 6px 6px; background: #f5c400; color: #000; font: 600 13px sans-serif; }
