@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fd-yellow: #fcd116;
  --fd-blue: #003893;
  --fd-red: #ce1126;
  --terracotta: #d9772e;
  --terracotta-dark: #a4531a;
  --bg: #f5efe4;
  --card-bg: #fffdf8;
  --text: #2b2318;
  --muted: #7a6f5c;
  --footer-bg: #24211c;
  --radius: 14px;
  --font-display: "Anton", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1, h2,
.hero h1,
.card h2,
.brick-reward-card h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.03em;
}

button, input, select, textarea, label {
  font-family: var(--font-body);
}

.flag-ribbon {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, var(--fd-yellow) 0 33%, var(--fd-blue) 33% 66%, var(--fd-red) 66% 100%);
}

.hero {
  background: linear-gradient(180deg, #f9f3e6, var(--bg));
  color: var(--text);
  padding: 2rem 1.5rem 3rem;
  position: relative;
  border-bottom: 4px solid var(--terracotta);
}

.lang-switch-row {
  max-width: 960px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 380px;
  text-align: left;
}

.hero-image {
  flex: 1 1 320px;
  max-width: 400px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
}

.brick-icon {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  margin: 0 0 0.4rem;
  color: var(--fd-blue);
  letter-spacing: 0.02em;
  font-weight: 800;
  text-align: left;
}

.hero-tagline {
  font-weight: 600;
  color: var(--terracotta-dark);
  margin: 0 0 1rem;
  text-align: left;
}

.hero-sub {
  max-width: 480px;
  margin: 0 0 1.3rem;
  color: var(--muted);
  text-align: left;
}

.hero-cta {
  display: inline-block;
  background: var(--fd-red);
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(206,17,38,0.35);
}

.hero-cta:hover { opacity: 0.92; }

.lang-switch {
  display: flex;
  gap: 0.4rem;
}

.lang-btn {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.lang-btn.active {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
  font-weight: 600;
}

main {
  max-width: 1080px;
  margin: 0 auto 3rem;
  padding: 2rem 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.05);
}

.card h2 {
  margin-top: 0;
  color: var(--fd-blue);
}

.faq-card {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0.6rem 0;
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: inherit;
  opacity: 0.9;
}

/* --- Magazine-style section dividers --- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0;
  opacity: 0.85;
}

.section-divider span {
  flex: 1 1 auto;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 8px,
    transparent 8px 14px
  );
}

.section-divider i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fd-red);
  border: 2px solid var(--terracotta-dark);
  font-style: normal;
}

/* --- Two-column magazine grid: main content + sidebar callout --- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: start;
}

.main-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

@media (min-width: 860px) {
  .content-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(220px, 0.8fr);
  }
  .sidebar-col {
    position: sticky;
    top: 1.2rem;
  }
}

/* --- Info grid: about/contact side by side on wider screens --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.help-card h2 {
  color: var(--terracotta-dark);
}

.split-section {
  display: block;
}

.split-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.split-text {
  margin: 1.5rem 0 0;
}

.impact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.impact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--text);
}

.impact-icon {
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.brick-reward-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  background: #fbeee0;
  border: 1px solid var(--terracotta);
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
}

.sidebar-kicker {
  position: absolute;
  top: -0.6rem;
  right: 0.6rem;
  font-size: 2.6rem;
  color: var(--terracotta);
  opacity: 0.18;
  margin: 0;
  line-height: 1;
  pointer-events: none;
}

.brick-reward-visual {
  flex: 0 0 auto;
}

.brick-reward-visual img {
  width: 110px;
  height: auto;
  display: block;
}

.brick-reward-card h2 {
  color: var(--terracotta-dark);
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.brick-reward-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.legal-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--fd-yellow);
  padding-left: 0.8rem;
  margin: 0;
}

.progress-bar-outer {
  background: #d4b57e;
  border: 2px solid var(--terracotta-dark);
  border-radius: 999px;
  height: 22px;
  overflow: hidden;
}

.progress-bar-inner {
  background: linear-gradient(90deg, var(--terracotta), var(--fd-red));
  height: 100%;
  min-width: 22px;
  transition: width 0.4s ease;
}

.progress-numbers {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-weight: 600;
}

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

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}

@media (max-width: 480px) {
  .amount-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.amount-btn {
  padding: 0.7rem;
  border: 2px solid var(--terracotta);
  background: white;
  color: var(--terracotta-dark);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.amount-btn.selected, .amount-btn:hover {
  background: var(--terracotta);
  color: white;
}

.custom-amount, .donor-name {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.custom-amount input, .donor-name input {
  padding: 0.6rem;
  border: 1px solid #d8cdb5;
  border-radius: 8px;
  font-size: 1rem;
  background: #fffdf8;
}

.primary-btn {
  display: block;
  width: 100%;
  flex: 1 1 100%;
  padding: 0.9rem;
  background: var(--fd-red);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
}

.primary-btn:hover { opacity: 0.9; }

/* --- Donation form: two-column form-like layout with sidebar payment box --- */
.donate-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 1rem;
}

.donate-form-fields {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8ddc8;
  border-radius: 10px;
  padding: 1.1rem 1.1rem 0.6rem;
  min-width: 0;
  background: repeating-linear-gradient(
    #fffdf8 0,
    #fffdf8 2.05rem,
    #f2ead9 2.05rem,
    #f2ead9 calc(2.05rem + 1px)
  );
}

.form-field {
  background: transparent;
}

.brick-optin label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.brick-optin input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

@media (min-width: 700px) {
  .donate-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
    align-items: start;
  }
}

.payment-fallback {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e8ddc8;
  min-width: 0;
}

@media (min-width: 700px) {
  .payment-fallback {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-left: 2px dashed var(--terracotta);
    padding-left: 1.2rem;
    height: 100%;
  }
}

.payment-fallback-title {
  margin-top: 0;
}

.payment-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  font-size: 0.95rem;
}

.payment-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.payment-details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

#pd-iban {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.disbursement-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.disbursement-row {
  display: grid;
  grid-template-columns: 90px 90px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #efe6d4;
  font-size: 0.9rem;
}

.disbursement-row a {
  color: var(--fd-blue);
  font-weight: 600;
  text-decoration: none;
}

.footer-bar {
  background: var(--footer-bg);
  color: #d9d2c2;
  text-align: center;
  font-size: 0.82rem;
  padding: 1.5rem 1.2rem;
}

.footer-bar p {
  max-width: 640px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 0.6rem;
}

.footer-links a,
.footer-links button {
  background: none;
  border: none;
  color: #d9d2c2;
  text-decoration: underline;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  margin: 0 0.5rem;
  font-family: inherit;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #fff;
}

/* --- Privacy notice banner --- */
#privacy-notice-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--footer-bg);
  color: #eee5d0;
  padding: 1rem 1.2rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.privacy-notice-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.privacy-notice-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.privacy-notice-actions {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.consent-btn {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid var(--terracotta);
}

.consent-btn-secondary {
  background: transparent;
  color: #eee5d0;
}

.consent-btn-primary {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

@media (max-width: 480px) {
  .privacy-notice-inner { flex-direction: column; align-items: stretch; }
  .privacy-notice-actions { justify-content: stretch; }
  .consent-btn { flex: 1; }
}

@media (max-width: 480px) {
  .disbursement-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "date amount" "desc desc" "receipt receipt";
  }
}

/* --- Consent-gated Google Maps embed --- */
.map-context {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.map-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef1ef;
}

.map-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  background: #eef1ef;
}

.map-placeholder p {
  max-width: 32rem;
  margin: 0;
  color: #445;
}

.map-placeholder .primary-btn {
  width: auto;
  flex: 0 0 auto;
  padding: 0.75rem 1.6rem;
}

/* --- Mini-brick address form --- */
/* Hidden by default; app.js toggles the .visible class. */
.brick-address-form {
  display: none;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e8ddc8; /* same separator as .payment-fallback / .donate-form-fields */
  min-width: 0;
}

.brick-address-form.visible {
  display: block;
}

/* Small section heading: emphasized like card section text (0.95rem, weight 600). */
.brick-address-form .brick-address-title {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Muted explanatory line, matches .small-note. */
.brick-address-form .brick-address-note {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Same rhythm + input look as the sibling .custom-amount / .donor-name fields. */
.brick-address-form .form-field {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.brick-address-form .form-field input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d8cdb5;
  border-radius: 8px;
  font-size: 1rem;
  background: #fffdf8;
}

/* PLZ + Ort side by side on all screen sizes. */
.brick-address-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.6rem;
  margin: 1rem 0;
  align-items: start;
  min-width: 0;
}

.brick-address-row .form-field {
  margin: 0;
}

/* Single column on very narrow phones. */
@media (max-width: 380px) {
  .brick-address-row {
    grid-template-columns: 1fr;
  }
}
