/*
Theme Name: My Favourite Drinks
Theme URI: https://example.com
Author: My Favourite Drinks
Description: Schwarzes One-Page-Theme für den mobilen Barservice. Alle Texte und Bilder unter Design > Customizer > Inhalte der Startseite.
Version: 1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: mobile-bar
*/

/* Self-hosted fonts (no requests to Google, DSGVO-friendly) */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/work-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/work-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --black: #000000;
  --ink: #ECE6DA;
  --muted: #9A9286;
  --copper: #CC8C60;   /* taken from the logo */
  --line: #2A2722;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font-family: var(--body); font-weight: 300; font-size: 1.0625rem; line-height: 1.65;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  hyphens: auto;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--black); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { font-family: var(--display); font-style: italic; font-size: 1.35rem; text-decoration: none; }
.site-header nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.book { color: var(--copper); }

/* Hero: text left, photo right fading into black */
.hero { position: relative; display: flex; align-items: center; min-height: min(86vh, 760px); overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 64%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 18%, rgba(0,0,0,0) 42%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%);
}
.hero-text { position: relative; z-index: 1; padding: 5rem 0; }
.hero-text > * { max-width: 34rem; }
.hero h1 { font-family: var(--display); font-weight: 400; margin: 0; font-size: clamp(2.75rem, 6.5vw, 5.75rem); line-height: .98; letter-spacing: -.02em; }
.hero h1 em { display: block; font-style: italic; color: var(--copper); }
.hero p { color: var(--ink); opacity: .8; margin: 2rem 0 2.5rem; font-size: 1.15rem; max-width: 32ch; }
.btn {
  display: inline-block; padding: 1rem 2rem; border: 1px solid var(--copper); color: var(--black); background: var(--copper);
  text-decoration: none; font-family: var(--body); font-weight: 500; font-size: 1rem; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--copper); }

.section { padding: 6rem 0; border-top: 1px solid var(--line); }
.section h2, .entry h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; margin: 0 0 2rem; }

/* Über mich */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; }
.about-text p { max-width: 60ch; margin: 0 0 1.25rem; }
.facts { display: flex; gap: 3rem; margin-top: 2.5rem; flex-wrap: wrap; }
.facts div { font-family: var(--display); font-size: 2.5rem; line-height: 1; }
.facts span { display: block; font-family: var(--body); font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* Angebot */
.menu { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.menu li { padding: 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; align-items: baseline; }
.menu h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.menu p { color: var(--muted); margin: 0; max-width: 60ch; }
.note { color: var(--muted); font-size: .95rem; margin-top: 2rem; }

/* Buchen */
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; }
.steps li { counter-increment: s; display: flex; gap: 1rem; margin-bottom: 1.25rem; color: var(--muted); }
.steps li::before { content: counter(s); font-family: var(--display); font-style: italic; color: var(--copper); font-size: 1.4rem; line-height: 1.2; }
.mb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.mb-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; color: var(--muted); }
.mb-form .full { grid-column: 1 / -1; }
.mb-form .hp { position: absolute; left: -9999px; }
.mb-form label.consent { flex-direction: row; align-items: flex-start; gap: .75rem; }
.mb-form label.consent input { width: auto; margin-top: .3rem; accent-color: var(--copper); }
.section input, .section select, .section textarea {
  font: inherit; color: var(--ink); background: var(--black); border: none; border-bottom: 1px solid var(--muted); padding: .6rem 0; border-radius: 0; width: 100%;
}
.section select { appearance: none; }
.section input:focus, .section select:focus, .section textarea:focus { outline: none; border-bottom-color: var(--copper); }
.section textarea { resize: vertical; min-height: 6rem; }
.form-msg { color: var(--copper); margin: 0 0 1.5rem; }
.form-msg.error { color: #E08A7A; }

.entry { padding: 5rem 0; }
.entry-content { max-width: 70ch; }

/* Rechtliches (Impressum & Datenschutz) */
.entry h1 { margin-bottom: 3rem; }
.entry-content h2 { font-family: var(--display); font-weight: 400; font-size: 2.25rem; line-height: 1.1; margin: 4rem 0 1.5rem; scroll-margin-top: 6rem; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { font-family: var(--body); font-weight: 500; font-size: 1.1rem; margin: 2.25rem 0 .5rem; }
.entry-content p, .entry-content ul { margin: 0 0 1rem; }
.entry-content ul { padding-left: 1.25rem; }
.entry-content a { color: var(--copper); }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 4rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.footer-logo { display: block; width: 220px; max-width: 60vw; margin-bottom: 1.25rem; }
.site-footer .links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

@media (max-width: 820px) {
  .site-header nav ul { gap: 1.1rem; }
  .site-header nav li:not(:last-child) { display: none; }
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; width: 100%; height: 62vw; max-height: 420px; }
  .hero-media img { object-position: center 60%; }
  .hero-media::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 45%); }
  .hero-text { padding: 0 0 4rem; margin-top: -3rem; }
  .about, .book-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 4rem 0; }
  .mb-form { grid-template-columns: 1fr; }
  .menu li { grid-template-columns: 1fr; gap: .5rem; }
  .menu h3 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
