@import url('custom-colors.css');
@import url('custom-fonts.css');

/* ============================================================
   DIAMANT Schnapke & Söhne GmbH
   Pixel-genaues CSS nach Vorlage
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 126px; /* Zweizeiliger Header: Top-Bar + Navigationszeile */
  overflow-x: hidden;
}
body { font-family: var(--font-body, Arial, sans-serif); color: #222; background: #fff; overflow-x: hidden; }

/* Kein Abstand zwischen den Seiten-Sektionen */
.page-main {
  display: flex;
  flex-direction: column;
  background: var(--dark-bg); /* Sub-Pixel-Lücken bleiben dunkel = unsichtbar */
  overflow: hidden;           /* Schneidet alles sauber ab */
}
.page-main > * {
  margin: 0;
  flex-shrink: 0;
  transform: translateZ(0);  /* Erzwingt eigene GPU-Compositing-Ebene */
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Abstand damit Inhalt nicht unter dem fixierten Header verschwindet */
body { padding-top: 126px; }

/* Zeile 1: Logo + Kontakt – feste Höhe damit padding-top immer stimmt */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Zeile 2: Navigationsleiste */
.mainnav {
  background: var(--dark-bg);
  border-bottom: 4px solid var(--yellow);
  display: flex;
}
.mainnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  width: 100%;
  justify-content: center;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text-name {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.logo-text-sub {
  font-size: 10px;
  font-weight: 600;
  color: #777;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Logo als Bild (wenn hochgeladen) */
.logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* --- Navigation (Zeile 2) --- */
.mainnav a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 13px 20px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.mainnav a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  background: rgba(255,255,255,.05);
}

/* --- Header Kontakt --- */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 13px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #222;
  transition: color .2s;
}
.header-contact a:hover { color: var(--yellow-d); }
.header-contact i { color: var(--yellow); font-size: 12px; }

/* --- Burger --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: .25s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--dark-bg); /* Fallback – kein weißer Durchblick */
}

/* Bild füllt den gesamten Hero-Bereich */
.hero-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #2a2a2a 0%, #555 100%);
  overflow: hidden;
}

/* --- Slider --- */
.slider {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active {
  opacity: 1;
}

/* --- Hero-Textoverlay (einzelnes Element, wird per JS befüllt) --- */
.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 36px 32px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 65%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}
.hero-caption h2 {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading, Arial, sans-serif);
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
  line-height: 1.2;
}
.hero-caption p {
  font-size: 15px;
  color: rgba(255,255,255,.92);
  margin: 0;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
  line-height: 1.55;
  max-width: 540px;
}
@media (max-width: 960px) {
  .hero-caption { padding: 18px 22px 22px; }
  .hero-caption h2 { font-size: 20px; }
  .hero-caption p  { font-size: 13px; }
}
@media (max-width: 600px) {
  .hero-caption { padding: 12px 14px 16px; }
  .hero-caption h2 { font-size: 16px; margin-bottom: 4px; }
  .hero-caption p  { font-size: 12px; }
}

/* Pfeil-Buttons */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-prev:hover,
.slider-next:hover { background: var(--yellow-75); }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.slider-dot.active {
  background: var(--yellow);
  transform: scale(1.25);
}

/* --- Service-Kacheln: rechts, nur untere 42.5% --- */
.hero-services {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  height: 42.5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: var(--module-bg);
}

/* Schräge Kante */
.hero-services::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 17%;
  background: var(--module-bg);
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.sc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.09);
  color: #fff;
  transition: background .2s;
}
.sc:nth-child(1),
.sc:nth-child(2) {
  border-top: 5px solid var(--yellow);
}
.sc:hover { background: var(--yellow-10); }

.sc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 20px;
}

.sc-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sc-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #fff;
}
.sc-text span {
  font-size: 11px;
  color: #bbb;
  line-height: 1.35;
}

/* ============================================================
   UNSERE LEISTUNGEN
   ============================================================ */
.leistungen-section {
  padding: 60px 0;
  background: #fff;
}

.leistungen-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-heading, Arial, sans-serif);
  color: #222;
  margin-bottom: 24px;
}

.leistungen-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* --- Formular --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--yellow); }
.contact-form textarea { resize: vertical; min-height: 100px; }

.btn-send {
  align-self: flex-end;
  background: var(--yellow);
  color: #111;
  border: none;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}
.btn-send:hover { background: var(--yellow-d); }

.form-msg {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 2px;
  display: none;
}
.form-msg.success { display: block; background: #d4edda; color: #155724; }
.form-msg.error   { display: block; background: #f8d7da; color: #721c24; }

/* --- Info-Box --- */
.info-box {
  background: var(--dark-bg);
  color: #fff;
  padding: 24px;
  border-radius: 2px;
}

.info-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.info-address {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 10px;
  line-height: 1.6;
}
.info-address i { color: var(--yellow); margin-top: 3px; flex-shrink: 0; }

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 8px;
}
.info-row i { color: var(--yellow); font-size: 12px; flex-shrink: 0; }
.info-row a { color: #ccc; transition: color .2s; }
.info-row a:hover { color: var(--yellow); }

.info-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social-fb,
.social-ig {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: opacity .2s;
}
.social-fb:hover, .social-ig:hover { opacity: .85; }
.social-fb { background: #1877f2; }
.social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-bg);
  border-top: 4px solid var(--yellow);
  padding: 16px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-nav span { color: #555; font-size: 13px; }

.footer-copy {
  font-size: 12px;
  color: #888;
  margin: 0;
}
.footer-copy a { color: #888; transition: color .2s; }
.footer-copy a:hover { color: var(--yellow); }

/* ============================================================
   AKTUELLES-STREIFEN (schmal, direkt unter dem Hero)
   ============================================================ */
.aktuelles-strip {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}
.aktuelles-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: baseline;
  gap: 0;
  min-height: 44px;
  border-left: 5px solid var(--yellow);
}
.aktuelles-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--yellow);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 0 16px;
  height: 44px;
  margin-right: 20px;
  white-space: nowrap;
}
.aktuelles-label i { font-size: 12px; }
.aktuelles-text {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  overflow: hidden;
}
/* CMS-Inhalt im Streifen: nur inline-Text, keine Block-Elemente aufgebläht */
.cms-content--strip p        { margin: 0; font-size: 13px; color: #444; line-height: 1.6; }
.cms-content--strip h2,
.cms-content--strip h3       { display: inline; font-size: 13px; font-weight: 700;
                                color: #222; border: none; padding: 0; margin: 0; }
.cms-content--strip ul,
.cms-content--strip ol       { margin: 2px 0 0 1.2em; font-size: 13px; color: #444; }
.cms-content--strip li       { margin-bottom: 0; }
.cms-content--strip strong   { color: #111; }
.cms-content--strip a        { color: var(--yellow-d); text-decoration: underline; }

/* ============================================================
   CONTENT-SEKTIONEN (Startseite – dynamisch)
   ============================================================ */
.content-section {
  padding: 60px 20px;
  background: #fff;
}
.content-section--alt {
  background: #f7f7f7;
}
.content-section--dark {
  background: var(--dark-bg);
}
.content-section--dark .section-title { color: #fff; }
.content-section--dark .section-title::after { background: var(--yellow); }
.content-section--dark .cms-content h2 { color: #eee; }
.content-section--dark .cms-content h3 { color: #ccc; }
.content-section--dark .cms-content p,
.content-section--dark .cms-content address,
.content-section--dark .cms-content ul,
.content-section--dark .cms-content ol { color: #bbb; }
.content-section--dark .cms-content strong { color: #fff; }
.content-section--dark .cms-content blockquote { background: rgba(255,255,255,.06); color: #ccc; }
.content-section--dark .cms-content td,
.content-section--dark .cms-content th { border-color: #2c4d7a; }
.content-section--dark .cms-content th { background: rgba(255,255,255,.1); }

/* Kontaktformular im dunklen Abschnitt */
.content-section--dark .contact-form input,
.content-section--dark .contact-form textarea {
  background: #172b46;
  border-color: #2c4d7a;
  color: #ddd;
}
.content-section--dark .contact-form input::placeholder,
.content-section--dark .contact-form textarea::placeholder { color: #7a9bbf; }
.content-section--dark .contact-form input:focus,
.content-section--dark .contact-form textarea:focus { border-color: var(--yellow); }

/* Info-Box im dunklen Abschnitt: zentriert, linksbündig */
.content-section--dark .leistungen-cols {
  align-items: center;
}
.content-section--dark .info-box {
  background: #172b46;
  border: 1px solid #2c4d7a;
  max-width: 340px;
  margin: 0 auto;
  text-align: left;
}

.content-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Abschnitts-Kopf: Icon + Titel */
.section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--yellow);
}
.section-header-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: var(--yellow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 22px;
}
.section-header .section-title {
  margin-bottom: 0;
  position: relative;
  padding-bottom: 8px;
}
.section-header .section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

/* CMS-Inhalt (aus TinyMCE) */
.cms-content {
  margin-top: 0;
}
.cms-content h2 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-heading, Arial, sans-serif);
  color: #222;
  margin: 1.6em 0 .5em;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--yellow);
}
.cms-content h2:first-child { margin-top: 0; }
.cms-content h3 {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-heading, Arial, sans-serif);
  color: #333;
  margin: 1.2em 0 .4em;
}
.cms-content p,
.cms-content address {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: .85em;
  font-style: normal;
}
.cms-content ul,
.cms-content ol {
  margin: 0 0 .85em 1.5em;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}
.cms-content li { margin-bottom: .2em; }
.cms-content a { color: var(--yellow-d); text-decoration: underline; }
.cms-content a:hover { color: var(--yellow); }
.cms-content strong { color: #222; }
.cms-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 1em;
}
.cms-content td,
.cms-content th {
  padding: 9px 14px;
  border: 1px solid #ddd;
  text-align: left;
}
.cms-content th {
  background: var(--dark-bg);
  color: #fff;
  font-weight: 600;
}
.cms-content blockquote {
  border-left: 4px solid var(--yellow);
  padding: 10px 16px;
  background: #f9f5e0;
  margin: 1em 0;
  font-style: italic;
  color: #555;
}
.cms-content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

/* 2-Spalten-Layout für breiten Inhalt */
.cms-content .cms-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 700px) {
  .cms-content .cms-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible; /* kein Abschneiden der gestackten Kacheln */
  }
  .hero-image {
    position: relative;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden; /* Slider-Bild bleibt geclippt */
  }
  .hero-services {
    position: relative;
    width: 100%;
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    background: var(--dark-bg);
    overflow: visible;
  }
  .hero-services::before { display: none; } /* Diagonale auf Tablet sinnlos */
  .leistungen-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-contact { display: none; }
  .mainnav {
    display: none;
    border-bottom: none;
  }
  .mainnav.open {
    display: flex;
    border-bottom: 4px solid var(--yellow);
  }
  .mainnav-inner {
    flex-direction: column;
    padding: 0;
    justify-content: flex-start;
  }
  .mainnav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .burger { display: flex; }
  /* Logo auf Mobile: kompakter */
  .logo-text-name {
    font-size: 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }
  .logo-text-sub { display: none; }
  .logo-img { height: 52px; }
  html { scroll-padding-top: 68px; }
  body { padding-top: 68px; }
  .header-inner { height: 68px; }
  .hero { height: auto; flex-direction: column; overflow: visible; }
  .hero-image { position: relative; height: 220px; flex-shrink: 0; overflow: hidden; }
  .hero-services {
    position: relative; width: 100%; height: auto;
    grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
    overflow: visible;
  }
  .sc { padding: 10px 12px; }
  .sc-icon { width: 38px; height: 38px; font-size: 16px; }
}

/* ===== Downloads-Sektion ===== */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.dl-card:hover {
  border-color: var(--yellow);
  background: #fffcf0;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.dl-card-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: #fff0f0;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #c0392b;
  font-size: 20px;
}
.dl-card-info { flex: 1; min-width: 0; }
.dl-card-title {
  font-size: 14px; font-weight: 600; color: #222;
  line-height: 1.4;
  word-break: break-word;
}
.dl-card-hint { font-size: 12px; color: #888; margin-top: 4px; }
.dl-card-arrow { flex-shrink: 0; color: var(--yellow-d); font-size: 13px; }
.dl-empty { text-align: center; color: #aaa; font-size: 14px; padding: 40px 0; }
@media (max-width: 500px) { .dl-grid { grid-template-columns: 1fr; } }

/* ===== Legal-Sektionen (Impressum / Datenschutz) ===== */
.legal-section { background: #fafafa; }
.legal-content { max-width: 820px; }
.legal-content h2 {
  font-size: 18px; font-weight: 700; color: #222;
  margin: 1.6em 0 .4em; padding-bottom: 5px;
  border-bottom: 2px solid var(--yellow);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 14px; font-weight: 600; color: #333; margin: 1.1em 0 .3em; }
.legal-content p, .legal-content address, .legal-content li {
  font-size: 13px; color: #555; line-height: 1.8; margin-bottom: .7em;
}
.legal-content ul, .legal-content ol { margin: 0 0 .7em 1.4em; }
.legal-content a { color: var(--yellow-d); text-decoration: underline; }
.legal-content a:hover { color: var(--yellow); }

/* ===== Legal Modals (Impressum / Datenschutz) ===== */
.wm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 900;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.wm-overlay.open { display: flex; }
.wm-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  width: 100%;
  max-width: 760px;
  padding: 40px 48px;
  position: relative;
  animation: wmIn .2s ease;
  color: #333;
}
@keyframes wmIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wm-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #999;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}
.wm-close:hover { color: #333; }
.wm-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--yellow, #f5c400);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wm-content {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  text-align: left;
}
.wm-content p   { margin: 0 0 12px; }
.wm-content h2,
.wm-content h3  { color: #222; font-size: 15px; margin: 16px 0 6px; }
.wm-content a   { color: var(--yellow, #f5c400); }
.wm-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: right;
}
.wm-btn-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--yellow, #f5c400);
  border: 1px solid transparent;
  border-radius: 4px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.wm-btn-close:hover { background: var(--yellow-d, #c9a000); color: #111; }
@media (max-width: 600px) {
  .wm-box { padding: 28px 20px; }
  .wm-footer { text-align: center; }
}
