:root {
  color-scheme: dark;
  --bg: #08090c;
  --surface: #11151b;
  --surface-strong: #171d25;
  --text: #f8fafc;
  --muted: #c9d3df;
  --line: #303844;
  --accent: #f5c84c;
  --accent-strong: #ffe07c;
  --focus: #56e6c2;
  --danger: #ff8585;
  --success: #82f2aa;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(245, 200, 76, 0.08), rgba(8, 9, 12, 0) 22rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 70%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  width: min(100% - 2rem, 58rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

.brand-header {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  text-align: center;
}

.logo-link {
  display: inline-grid;
  place-items: center;
  padding: 0.5rem;
  border-radius: 999px;
}

.logo {
  width: 11rem;
  filter: brightness(0) invert(1);
}

.home-logo {
  width: 13rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.7rem;
  font-size: 3.2rem;
  line-height: 1.05;
}

h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

h4 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

p {
  margin-bottom: 1.05rem;
}

ul {
  padding-left: 1.35rem;
  margin-bottom: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

.hero {
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  text-align: center;
}

.lead {
  max-width: 37rem;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 1.08rem;
}


.bierwand-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(100%, 37rem);
  padding: 1.15rem;
  border: 1px solid rgba(245, 200, 76, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 200, 76, 0.14), rgba(17, 21, 27, 0.92)),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.bierwand-logo {
  width: 4.5rem;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.bierwand-card h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.bierwand-card p:not(.eyebrow) {
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 900;
}

.text-link::after {
  content: "->";
  color: var(--accent);
}

.link-grid {
  display: grid;
  width: min(100%, 37rem);
  gap: 0.75rem;
  margin: 1.3rem auto 0;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-button::after {
  content: "->";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 900;
}

.link-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-strong);
}

.content-panel,
.form-panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 27, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.content-panel {
  color: var(--muted);
}

.content-panel h1,
.content-panel h2,
.content-panel h3,
.content-panel h4 {
  color: var(--text);
}

.content-panel h1 {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--text);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  color: var(--text);
  background: #090b10;
  font: inherit;
}

textarea {
  min-height: 11rem;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.35rem;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.button-primary {
  min-height: 3.25rem;
  border: 0;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  color: #08090c;
  background: var(--accent);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  background: #0d1117;
}

.alert-success {
  border-color: rgba(130, 242, 170, 0.55);
  color: var(--success);
}

.alert-error {
  border-color: rgba(255, 133, 133, 0.55);
  color: var(--danger);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 1rem, 58rem);
    padding-top: 2rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .home-logo {
    width: 10.5rem;
  }

  .logo {
    width: 9rem;
  }

  .content-panel,
  .form-panel {
    padding: 1.15rem;
  }

  .bierwand-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .bierwand-logo {
    width: 4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-primary {
    width: 100%;
  }
}
