/* Öffentliche Seite im Stil des AL-QAMAR-Logos:
   Nachtblau mit Papierkorn, goldene Ornamente, Pergament-Karte. Alles lokal, keine fremden Server. */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --night: #0e1828;
  --night-2: #15233a;
  --night-3: #1d2f4c;
  --gold-1: #f4e2a6;
  --gold-2: #dcbc6a;
  --gold-3: #b48d40;
  --gold-4: #7a5b22;
  --parchment: #f8f2e4;
  --parchment-2: #efe4cb;
  --parchment-3: #e3d3ae;
  --ink: #1b2232;
  --ink-soft: #4d5466;
  --err: #9c2a1c;
  --ok: #2d6a45;
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --text: "EB Garamond", Garamond, "Times New Roman", serif;
  --gold-text: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-1) 30%, var(--gold-2) 52%, var(--gold-1) 74%, var(--gold-3) 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.public {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 70% 42% at 50% 12%, rgba(220, 188, 106, .13), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23dcbc6a' stroke-opacity='.042' stroke-width='1'%3E%3Cpath d='M34 34h28v28H34z'/%3E%3Cpath d='M48 28.2 67.8 48 48 67.8 28.2 48z'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3Cpath d='M0 0l14 14M96 0 82 14M0 96l14-14M96 96 82 82'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #101b2d 0%, var(--night) 55%, #0b1422 100%);
  background-attachment: scroll, scroll, scroll, fixed;
}
a { color: var(--gold-2); text-underline-offset: .18em; }
a:hover { color: var(--gold-1); }

/* ---------------------------------------------------------------- Testbanner */
.testbanner {
  background: repeating-linear-gradient(-45deg, rgba(220, 188, 106, .22) 0 10px, rgba(220, 188, 106, .1) 10px 20px);
  border-bottom: 1px solid rgba(220, 188, 106, .45);
  color: var(--gold-1);
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-align: center;
  padding: 7px 16px;
}

/* ---------------------------------------------------------------- Kopf mit Emblem */
.hero { text-align: center; padding: 34px 16px 8px; }
.emblem {
  display: block;
  width: auto;
  height: clamp(170px, 30vw, 236px);
  margin: 0 auto;
  filter: drop-shadow(0 0 22px rgba(220, 188, 106, .28));
  animation: emblem 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
.brand {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .42em;
  padding-left: .42em;
  color: var(--gold-2);
  animation: rise .9s .25s both;
}
.org {
  margin: 2px 0 0;
  font-style: italic;
  font-size: .98rem;
  color: rgba(248, 242, 228, .62);
  animation: rise .9s .32s both;
}
.zier {
  display: block;
  width: 118px;
  height: auto;
  margin: 14px auto 6px;
  opacity: .95;
  animation: rise .9s .4s both;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 8.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: .04em;
  background: var(--gold-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise .9s .5s both, sheen 4.5s 1.2s ease-in-out both;
}
.hero h1 span { display: inline-block; }
.dates span { display: inline-block; }
@media (max-width: 520px) { .dates .sep { display: none; } .dates span { display: block; } }
.dates {
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(248, 242, 228, .86);
  animation: rise .9s .6s both;
}

/* ---------------------------------------------------------------- Eckdaten als Medaillons */
.wrap { max-width: 680px; margin: 0 auto; padding: 18px 16px 28px; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 22px;
  animation: rise .9s .7s both;
}
.facts > div {
  position: relative;
  text-align: center;
  padding: 12px 6px 11px;
  border: 1px solid rgba(220, 188, 106, .55);
  border-radius: 3px;
  background: rgba(21, 35, 58, .72);
  box-shadow: inset 0 0 0 3px var(--night-2), inset 0 0 0 4px rgba(220, 188, 106, .28);
}
.facts > div::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold-2);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 0 3px var(--night);
}
.facts .k {
  display: block;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--gold-2);
}
.facts .v { display: block; font-size: clamp(1.02rem, 4.4vw, 1.28rem); font-weight: 600; color: var(--parchment); line-height: 1.25; margin-top: 3px; white-space: nowrap; }

/* ---------------------------------------------------------------- Pergament-Karte mit Goldrahmen */
.card {
  position: relative;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23b48d40' stroke-width='1.3'%3E%3Cpath d='M8 44V18c0-5.5 4.5-10 10-10h26'/%3E%3Cpath d='M13 44V20c0-3.9 3.1-7 7-7h24' stroke-opacity='.6'/%3E%3C/g%3E%3Cpath d='M8 2l3.5 3.5L8 9 4.5 5.5z' fill='%23b48d40'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg transform='rotate(90 23 23)'%3E%3Cg fill='none' stroke='%23b48d40' stroke-width='1.3'%3E%3Cpath d='M8 44V18c0-5.5 4.5-10 10-10h26'/%3E%3Cpath d='M13 44V20c0-3.9 3.1-7 7-7h24' stroke-opacity='.6'/%3E%3C/g%3E%3Cpath d='M8 2l3.5 3.5L8 9 4.5 5.5z' fill='%23b48d40'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg transform='rotate(270 23 23)'%3E%3Cg fill='none' stroke='%23b48d40' stroke-width='1.3'%3E%3Cpath d='M8 44V18c0-5.5 4.5-10 10-10h26'/%3E%3Cpath d='M13 44V20c0-3.9 3.1-7 7-7h24' stroke-opacity='.6'/%3E%3C/g%3E%3Cpath d='M8 2l3.5 3.5L8 9 4.5 5.5z' fill='%23b48d40'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg transform='rotate(180 23 23)'%3E%3Cg fill='none' stroke='%23b48d40' stroke-width='1.3'%3E%3Cpath d='M8 44V18c0-5.5 4.5-10 10-10h26'/%3E%3Cpath d='M13 44V20c0-3.9 3.1-7 7-7h24' stroke-opacity='.6'/%3E%3C/g%3E%3Cpath d='M8 2l3.5 3.5L8 9 4.5 5.5z' fill='%23b48d40'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, #fffaf0 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-position: 6px 6px, calc(100% - 6px) 6px, 6px calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), 0 0, 0 0;
  border: 1px solid var(--gold-3);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 5px var(--parchment),
    inset 0 0 0 6px rgba(180, 141, 64, .55),
    0 18px 50px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(0, 0, 0, .25);
  padding: 46px 22px 44px;
  margin-bottom: 22px;
  animation: rise 1s .8s both;
}
@media (min-width: 600px) { .card { padding: 50px 50px 46px; } }
.card a { color: var(--gold-4); }
.card a:hover { color: var(--ink); }

.lead {
  text-align: center;
  font-size: 1.16rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 auto 26px;
  max-width: 34em;
}
.notice {
  background: var(--parchment-2);
  border-left: 3px solid var(--gold-3);
  border-radius: 2px;
  padding: 10px 14px;
  margin: 16px 0 0;
  color: var(--ink);
}
.closed { text-align: center; }
.closed h2, .thanks h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: .03em;
  color: var(--gold-4);
  margin: 0 0 12px;
}

/* ---------------------------------------------------------------- Formular */
form.form { margin-top: 18px; }
fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--gold-4);
}
legend::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gold-3);
  transform: rotate(45deg);
}
legend::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-3), rgba(180, 141, 64, 0));
}
@media (max-width: 420px) {
  legend { flex-wrap: wrap; row-gap: 2px; }
  legend::after { display: none; }
  legend .tag { flex-basis: 100%; padding-left: 19px; }
  .eltern legend { flex-wrap: nowrap; }          /* passt in eine Zeile, liegt auf dem Rahmen */
  .eltern legend .tag { flex-basis: auto; padding-left: 0; }
}
.tag {
  white-space: nowrap;
  font-family: var(--text);
  font-style: italic;
  font-weight: 400;
  font-size: .92rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 15px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; color: var(--ink); }
.req { color: var(--gold-3); }
input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 10px 13px;
  background: #fffdf8;
  border: 1px solid var(--parchment-3);
  border-bottom-color: #cdb98a;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(122, 91, 34, .08);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-3);
  box-shadow: 0 0 0 3px rgba(180, 141, 64, .22), inset 0 1px 2px rgba(122, 91, 34, .08);
}
:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 2px; }
.has-error input, .has-error textarea { border-color: var(--err); background: #fff8f5; }
.hint { color: var(--ink-soft); font-size: .98rem; font-style: italic; margin: 4px 0 0; }
.hint.center { text-align: center; }
.error { color: var(--err); font-size: 1rem; font-weight: 600; margin: 4px 0 0; }
.alert {
  border: 1px solid rgba(156, 42, 28, .35);
  background: #fbefe9;
  color: var(--err);
  border-radius: 3px;
  padding: 11px 14px;
  margin-bottom: 20px;
  font-weight: 600;
}
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400 !important;
  cursor: pointer;
  border: 1px solid var(--parchment-3);
  background: #fffdf8;
  border-radius: 3px;
  padding: 8px 16px;
}
.choice input { width: auto; margin: 6px 0 0; accent-color: var(--gold-4); transform: scale(1.2); box-shadow: none; }
.check .choice { border: 0; background: none; padding: 0; }
.eltern {
  background: rgba(239, 228, 203, .55);
  border: 1px dashed rgba(180, 141, 64, .5);
  border-radius: 3px;
  padding: 16px 16px 4px;
}
.eltern legend { margin-bottom: 8px; }
html.js .nojs-only { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy {
  background: rgba(239, 228, 203, .6);
  border: 1px solid var(--parchment-3);
  border-radius: 3px;
  padding: 10px 16px;
  margin-bottom: 14px;
}
.privacy summary { cursor: pointer; font-weight: 600; color: var(--gold-4); }
.privacy ul { padding-left: 20px; margin: 10px 0 4px; }
.privacy li { margin-bottom: 6px; font-size: 1.02rem; }

.btn.primary.big {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 15px 20px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: .14em;
  color: var(--gold-1);
  background:
    linear-gradient(110deg, transparent 30%, rgba(244, 226, 166, .18) 46%, transparent 62%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, var(--night-3), var(--night-2));
  border: 1px solid var(--gold-3);
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px var(--night-2), inset 0 0 0 4px rgba(220, 188, 106, .45), 0 8px 20px rgba(14, 24, 40, .25);
  transition: background-position .9s ease, transform .15s ease, color .2s;
}
.btn.primary.big:hover { background-position: 150% 0, 0 0; color: #fff4cf; }
.btn.primary.big:active { transform: translateY(1px); }
.btn.primary.big:disabled { opacity: .7; cursor: wait; }

/* ---------------------------------------------------------------- Danke-Seite */
.thanks { text-align: center; }
.thanks p { margin: 0 0 12px; }
.addr {
  display: inline-block;
  font-size: 1.22rem;
  font-weight: 600;
  padding: 6px 16px;
  border-top: 1px solid var(--gold-3);
  border-bottom: 1px solid var(--gold-3);
  word-break: break-all;
}
.thanks .notice { text-align: left; margin-top: 20px; }

/* ---------------------------------------------------------------- Fuß */
.foot {
  text-align: center;
  padding: 4px 16px 40px;
  color: rgba(248, 242, 228, .6);
  font-size: 1rem;
}
.foot p { margin: 4px 0; }
.foot .zier { width: 80px; margin: 0 auto 12px; opacity: .65; animation: none; }

/* ---------------------------------------------------------------- Startseite alqamarev.de */
.brand-title {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 11vw, 4.2rem);
  letter-spacing: .28em;
  padding-left: .28em;
  line-height: 1.05;
  background: var(--gold-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise .9s .25s both, sheen 4.5s 1.1s ease-in-out both;
}
.home .org { font-size: 1.12rem; margin-top: 6px; }
.home .zier { margin-top: 18px; }
.eyebrow {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .24em;
  color: var(--gold-3);
}
.home-card { text-align: center; }
.home-card h2, .camp-teaser h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 5.4vw, 1.75rem);
  letter-spacing: .03em;
  color: var(--gold-4);
}
.home-card p { margin: 0 auto 12px; max-width: 32em; }
.home-card .contact { margin-top: 18px; font-size: 1.2rem; font-weight: 600; }
.camp-teaser {
  position: relative;
  text-align: center;
  padding: 30px 22px 28px;
  margin-bottom: 26px;
  border: 1px solid rgba(220, 188, 106, .6);
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(220, 188, 106, .14), transparent 65%),
    rgba(21, 35, 58, .82);
  box-shadow: inset 0 0 0 4px var(--night-2), inset 0 0 0 5px rgba(220, 188, 106, .3), 0 14px 40px rgba(0, 0, 0, .35);
  animation: rise 1s .95s both;
}
.camp-teaser::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--gold-2);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 0 4px var(--night);
}
.camp-teaser .eyebrow { color: var(--gold-2); }
.camp-teaser h2 {
  color: transparent;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
}
.camp-teaser .when { margin: 0 0 18px; font-style: italic; color: rgba(248, 242, 228, .86); }
.camp-teaser .when span { display: inline-block; }
@media (max-width: 420px) { .camp-teaser .when .sep { display: none; } .camp-teaser .when span { display: block; } }
.camp-teaser .soon { margin: 0; color: var(--gold-1); font-style: italic; }
.btn.gold {
  display: inline-block;
  padding: 13px 34px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--night);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .15s ease, filter .2s ease;
}
.btn.gold:hover { color: var(--night); filter: brightness(1.07); transform: translateY(-1px); }

/* ---------------------------------------------------------------- Impressum und Datenschutz */
.page-title {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  letter-spacing: .06em;
  background: var(--gold-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise .9s .3s both;
}
.legal .card { animation-delay: .4s; }
.prose { font-size: 1.08rem; }
.prose .lead { text-align: left; font-size: 1.12rem; margin: 0 0 8px; max-width: none; }
.prose h2 {
  margin: 28px 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: .08em;
  color: var(--gold-4);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(180, 141, 64, .35);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 20px 0 4px; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.todo { background: #fbefc9; color: var(--gold-4); padding: 0 6px; border-radius: 2px; font-style: italic; }
.stand { margin-top: 24px !important; color: var(--ink-soft); font-style: italic; }
.back { margin-top: 18px !important; }
.foot .legal { margin-top: 10px; font-size: .95rem; }
.foot .legal a { color: rgba(248, 242, 228, .75); }
.foot .legal a:hover { color: var(--gold-1); }

/* ---------------------------------------------------------------- Bewegung */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes emblem {
  0% { opacity: 0; transform: scale(.94); filter: drop-shadow(0 0 0 rgba(220, 188, 106, 0)); }
  60% { opacity: 1; filter: drop-shadow(0 0 34px rgba(220, 188, 106, .5)); }
  100% { opacity: 1; transform: none; filter: drop-shadow(0 0 22px rgba(220, 188, 106, .28)); }
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
