/* vierterstern.com — modern layout & theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --gold: #ffcc00;
  --gold-hover: #ffd633;
  --red: #c8102e;
  --red-hover: #a30d25;
  --black: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 28px rgba(255, 204, 0, 0.22);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200, 16, 46, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 204, 0, 0.08), transparent 50%),
    var(--black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--gold-hover);
}

a:visited {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Homepage layout ── */

.gridContainer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

#div1 {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-bottom: 0.25rem;
}

.site-header .site-logo {
  width: min(220px, 55vw);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.site-header a:hover .site-logo {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

#div2 {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}

#div2 img {
  width: 100%;
  margin: 0 auto;
}

#div3 {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
}

#div5 {
  width: 100%;
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

#div5 p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

#div5 p:last-child {
  margin-bottom: 0;
}

p.order {
  margin: 0 0 1.25rem !important;
}

p.order a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-size: 1.05rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--black) !important;
  background: linear-gradient(135deg, var(--gold) 0%, #e6b800 100%);
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

p.order a:hover,
p.order a:focus-visible {
  color: var(--black) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 204, 0, 0.35);
  background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
}

p.order b,
p.order span {
  font-size: inherit !important;
  font-weight: inherit;
}

#div4 {
  width: 100%;
  text-align: center;
  padding-top: 0.5rem;
}

p.impressum {
  margin: 0;
}

p.impressum a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted) !important;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

p.impressum a:hover,
p.impressum a:focus-visible {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Subpages (order, impressum) ── */

body.subpage {
  padding-bottom: 3rem;
}

body.subpage h1,
body.subpage h2 {
  font-family: inherit;
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.headline h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.headline .back {
  margin: 0;
}

.headline .back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted) !important;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.headline .back a:hover,
.headline .back a:focus-visible {
  color: var(--gold) !important;
  background: rgba(255, 255, 255, 0.06);
}

.headline .back b {
  font-weight: inherit;
}

.logopic {
  width: min(180px, 45vw);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  order: -1;
}

.logopic img {
  width: 100%;
}

.textorder,
.text {
  width: 100%;
  margin: 0;
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.textorder h1,
.text h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
}

.textorder > .namen > p,
.textorder > .namen > #contact > p:first-of-type {
  text-align: center;
}

.namen {
  line-height: 1.75;
  color: var(--muted);
  font-size: 1rem;
}

.namen p {
  margin: 0 0 1rem;
}

.text .namen {
  max-width: 28rem;
  margin: 0 auto 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.text .namen p {
  margin: 0 0 0.85rem;
}

.text .namen p:last-child {
  margin-bottom: 0;
}

.text > p {
  color: var(--muted);
  margin: 0 auto 1.25rem;
  max-width: 42rem;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.text > p::first-line {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.text > p:first-of-type {
  border-top: none;
  padding-top: 0;
}

.text > p:last-child {
  margin-bottom: 0;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.text > p:last-child a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  color: var(--muted) !important;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.text > p:last-child a:hover {
  color: var(--gold) !important;
  background: rgba(255, 255, 255, 0.06);
}

.text > p:last-child b {
  font-weight: inherit;
}

/* ── Form (order page) ── */

#contact {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

#contact > p {
  color: var(--muted);
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
}

.progressBar {
  display: block !important;
  width: 100%;
  max-width: 400px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 1.25rem auto 1.75rem;
}

.progressBar div {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #e63946);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.progressBar div span {
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 28px;
  color: #fff;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

form label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

form input[type="text"],
form input[type="email"] {
  width: 100%;
  max-width: 420px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

form input[type="text"]:focus,
form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

form input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: var(--gold);
}

form hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

form .submit,
input.submit,
input#contactus {
  display: block;
  width: auto !important;
  min-width: 180px;
  margin: 1.25rem auto 0;
  padding: 0.85rem 1.75rem !important;
  height: auto !important;
  font-size: 1rem !important;
  font-weight: 700;
  color: var(--black) !important;
  background: linear-gradient(135deg, var(--gold) 0%, #e6b800 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  float: none !important;
  transition: transform var(--transition), box-shadow var(--transition);
}

form .submit:hover,
input#contactus:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 204, 0, 0.35);
}

legend {
  display: block;
  margin-top: 1.5rem;
  padding: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.required {
  color: var(--red);
}

/* Override legacy form/css/style.css on order page */
#contact label {
  color: var(--text) !important;
  width: auto !important;
  text-align: left !important;
  font-family: inherit !important;
}

#contact input,
#contact textarea,
#contact select {
  font-family: inherit !important;
  text-shadow: none !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  color: var(--text) !important;
}

#contact input:focus,
#contact textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15) !important;
  border-color: var(--gold) !important;
}

#contact input:invalid,
#contact textarea:invalid {
  background-color: rgba(200, 16, 46, 0.12) !important;
}

.gridContainer label,
.gridContainer input,
.gridContainer textarea {
  font-family: inherit;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .gridContainer {
    padding: 1.25rem 1rem 2rem;
    gap: 1.25rem;
  }

  #div5 {
    padding: 1.25rem 1rem;
  }

  p.order a {
    width: 100%;
    padding: 0.9rem 1.25rem;
  }

  .page-wrap {
    padding: 1.25rem 1rem 2rem;
    gap: 1.25rem;
  }

  .textorder,
  .text {
    padding: 1.5rem 1.15rem;
  }

  .text .namen {
    padding: 1rem 1.15rem;
  }

  #contact {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
