/*
Theme Name: Smoke Generation
Theme URI: https://smoke-generation.de/
Author: Smoke Generation
Description: Maßgeschneidertes WordPress-Theme für Smoke Generation mit zentralem Header, Lokomotiv-Footer und eigenen Seitenlayouts.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: smoke-generation
*/

:root {
  --sg-black: #060606;
  --sg-panel: #11100e;
  --sg-gold: #d3a648;
  --sg-gold-bright: #f1ce7a;
  --sg-cream: #f6f0df;
  --sg-muted: #b8b3a7;
  --sg-line: rgba(211, 166, 72, .32);
  --sg-width: 1180px;
  --sg-shadow: 0 18px 55px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sg-cream);
  background: var(--sg-black);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
body.menu-open { overflow: hidden; }
a { color: var(--sg-gold-bright); text-decoration: none; }
a:hover, a:focus { color: #fff; }
img { max-width: 100%; height: auto; }
.elementor-page main#main { overflow: hidden; }
.elementor-page .elementor-widget-button + .elementor-widget-button { display: inline-block; margin-left: 12px; }
.elementor-page .elementor-widget-button { display: inline-block; width: auto; }
.elementor-page .elementor-button { background: var(--sg-gold); color: #090909; border: 1px solid var(--sg-gold); border-radius: 3px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.elementor-page .elementor-button:hover { background: var(--sg-gold-bright); color: #000; }
.sg-elementor-hero > .elementor-background-overlay { background: linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.08)); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sg-wrap { width: min(calc(100% - 40px), var(--sg-width)); margin-inline: auto; }
.sg-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(6, 6, 6, .96);
  border-bottom: 1px solid var(--sg-line);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.sg-header-inner { min-height: 104px; display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.site-branding { flex: 0 0 auto; display: flex; align-items: center; gap: 17px; color: var(--sg-cream); }
.site-branding:hover, .site-branding:focus { color: var(--sg-gold-bright); }
.custom-logo { width: 112px; max-height: 88px; object-fit: contain; }
.sg-brand-name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 1.55vw, 25px); font-weight: 700; line-height: 1.05; white-space: nowrap; }
.sg-socials { display: flex; align-items: center; gap: 9px; }
.sg-socials a, .sg-social-link {
  width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px;
  color: var(--sg-gold-bright); border: 1px solid var(--sg-line); border-radius: 50%;
  background: rgba(255,255,255,.025); transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.sg-socials a:hover, .sg-socials a:focus { color: #fff; border-color: var(--sg-gold-bright); transform: translateY(-2px); }
.sg-socials svg { width: 17px; height: 17px; fill: currentColor; }
.sg-social-link.is-disabled { opacity: .58; cursor: help; }
.sg-nav { margin-left: auto; }
.sg-nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.sg-nav a {
  display: block; color: var(--sg-cream); font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.sg-nav a:hover, .sg-nav .current-menu-item > a, .sg-nav .current_page_item > a {
  color: var(--sg-gold-bright); border-color: var(--sg-gold);
}
.sg-menu-toggle {
  display: none; margin-left: auto; color: var(--sg-cream); background: transparent;
  border: 1px solid var(--sg-line); border-radius: 4px; padding: 10px 12px;
  font: inherit; font-weight: 700;
}

/* Hero */
.sg-hero {
  position: relative; min-height: clamp(560px, 72vw, 760px); display: grid; align-items: center;
  background: #090909 center/cover no-repeat;
  isolation: isolate;
}
.sg-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.68) 42%, rgba(0,0,0,.1) 78%),
              linear-gradient(0deg, #060606 0%, transparent 28%);
}
.sg-hero-content { width: min(620px, 86%); padding-block: 80px; }
.sg-kicker { color: var(--sg-gold-bright); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.14; }
h1 { margin: 14px 0 20px; font-size: clamp(48px, 7vw, 88px); color: #fff; text-shadow: 0 4px 28px #000; }
h2 { margin: 0 0 20px; font-size: clamp(32px, 5vw, 54px); color: var(--sg-gold-bright); }
h3 { font-size: 27px; color: var(--sg-gold-bright); }
.sg-lead { font-size: clamp(19px, 2vw, 24px); color: #f8f3e8; max-width: 650px; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.sg-button, .wp-element-button, button.sg-submit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 11px 23px; border: 1px solid var(--sg-gold);
  border-radius: 3px; background: var(--sg-gold); color: #090909;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.sg-button:hover, .sg-button:focus, button.sg-submit:hover { background: var(--sg-gold-bright); color: #000; }
.sg-button--ghost { color: var(--sg-gold-bright); background: rgba(0,0,0,.45); }

/* Content */
.sg-section { padding: clamp(70px, 9vw, 120px) 0; }
.sg-section--dark { background: linear-gradient(180deg, #0b0b0b, #12100d); }
.sg-section-head { text-align: center; max-width: 760px; margin: 0 auto 45px; }
.sg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sg-card { padding: 30px; background: linear-gradient(150deg, #171512, #0b0b0b); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); }
.sg-card p { color: var(--sg-muted); }
.sg-page-head { padding: 95px 0 55px; text-align: center; background: radial-gradient(circle at 50% 0, #31230e 0, #0a0908 55%, #060606 100%); border-bottom: 1px solid var(--sg-line); }
.sg-page-head h1 { font-size: clamp(44px, 7vw, 72px); }
.sg-content { padding: 60px 0 100px; }
.sg-content > *:first-child { margin-top: 0; }
.sg-content p, .sg-content li { color: #d7d2c7; }
.sg-content blockquote { margin: 35px 0; padding: 20px 25px; border-left: 3px solid var(--sg-gold); background: #12100d; font-size: 21px; }
.sg-empty { padding: 30px; border: 1px dashed var(--sg-line); color: var(--sg-muted); text-align: center; }

/* Termine und Galerie */
.sg-event { display: grid; grid-template-columns: 110px 1fr auto; gap: 25px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--sg-line); }
.sg-event-date { color: var(--sg-gold-bright); font-size: 20px; font-weight: 800; text-align: center; }
.sg-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sg-gallery img { display: block; aspect-ratio: 4/3; width: 100%; object-fit: cover; border: 1px solid var(--sg-line); }

/* Kontakt */
.sg-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.sg-contact-form-wrap { margin-top: 38px; padding: clamp(24px, 5vw, 42px); background: linear-gradient(150deg, #171512, #0b0b0b); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); }
.sg-contact-form-wrap h2 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 42px); }
.sg-form-intro { margin: 0 0 28px; color: var(--sg-muted); }
.sg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sg-form label { display: block; margin-bottom: 18px; font-weight: 700; }
.sg-form input, .sg-form textarea, .sg-form select {
  width: 100%; margin-top: 6px; padding: 13px 14px; color: #fff; background: #121212;
  border: 1px solid #51462e; border-radius: 3px; font: inherit;
}
.sg-form select { min-height: 54px; color-scheme: dark; }
.sg-form input:focus, .sg-form textarea:focus, .sg-form select:focus { outline: 2px solid var(--sg-gold); outline-offset: 1px; }
.sg-form textarea { resize: vertical; min-height: 180px; }
.sg-optional { color: var(--sg-muted); font-size: .9em; font-weight: 400; }
.sg-form .sg-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.sg-form .sg-check input { width: auto; margin-top: 7px; }
.sg-notice { margin-bottom: 25px; padding: 14px 18px; border: 1px solid var(--sg-line); background: #15120c; }
.sg-notice--error { border-color: #a64f4f; }

/* Footer mit Lokomotive */
.site-footer { position: relative; border-top: 1px solid var(--sg-line); background: #050505; overflow: hidden; }
.sg-train { min-height: 250px; background: #050505 center/cover no-repeat; position: relative; }
.sg-train::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #050505 0, transparent 45%), linear-gradient(90deg, rgba(0,0,0,.25), transparent, rgba(0,0,0,.25)); }
.sg-footer-bottom { padding: 28px 0 34px; text-align: center; color: var(--sg-muted); font-size: 14px; }
.sg-footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; }
.sg-footer-meta a { color: var(--sg-muted); }
.sg-footer-meta a:hover { color: var(--sg-gold-bright); }

@media (max-width: 980px) {
  .sg-header-inner { min-height: 92px; }
  .custom-logo { width: 92px; }
  .site-branding { gap: 11px; }
  .sg-brand-name { font-size: 17px; }
  .sg-socials { gap: 6px; }
  .sg-socials a, .sg-social-link { width: 30px; height: 30px; flex-basis: 30px; }
  .sg-nav ul { gap: 13px; }
  .sg-nav a { font-size: 12px; letter-spacing: .045em; }
  .sg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .admin-bar .site-header { top: 46px; }
  .sg-menu-toggle { display: inline-flex; }
  .sg-socials { margin-left: auto; }
  .sg-nav { display: none; position: fixed; inset: 93px 0 0; padding: 28px 24px; background: rgba(6,6,6,.99); overflow-y: auto; }
  .sg-nav.is-open { display: block; }
  .sg-nav ul { display: block; }
  .sg-nav li { border-bottom: 1px solid var(--sg-line); }
  .sg-nav a { padding: 18px 5px; font-size: 16px; }
  .sg-grid, .sg-contact-grid, .sg-gallery, .sg-form-row { grid-template-columns: 1fr; }
  .sg-event { grid-template-columns: 80px 1fr; }
  .sg-event .sg-button { grid-column: 1 / -1; }
  .sg-hero { min-height: 680px; background-position: 64% center; }
  .sg-hero::before { background: linear-gradient(90deg, rgba(0,0,0,.91), rgba(0,0,0,.38)), linear-gradient(0deg, #060606, transparent 36%); }
  .sg-actions { align-items: stretch; flex-direction: column; }
  .sg-button { width: 100%; }
  .sg-train { min-height: 170px; }
}
@media (max-width: 520px) {
  .sg-header-inner { gap: 10px; }
  .custom-logo { width: 72px; }
  .sg-brand-name { max-width: 92px; white-space: normal; font-size: 14px; line-height: 1.12; }
  .sg-socials { gap: 4px; }
  .sg-socials a, .sg-social-link { width: 27px; height: 27px; flex-basis: 27px; }
  .sg-socials svg { width: 14px; height: 14px; }
  .sg-menu-toggle { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 420px) {
  .sg-wrap, .sg-narrow { width: min(calc(100% - 28px), var(--sg-width)); }
  h1 { font-size: 42px; }
}
