/*
Theme Name: SG Waibstadt Divi Child Theme
Theme URI: https://sg-waibstadt.de/
Description: Professionelles Divi Child Theme fuer die SG Waibstadt 1919 e.V. mit Schwarz-Weiss-Gold Design, Vereinsbranding, Buttons, Karten, Footer-Styles und Layout-Helfern.
Author: SG Waibstadt 1919 e.V.
Author URI: https://sg-waibstadt.de/
Template: Divi
Version: 1.0.0
License: GPL-2.0+
Text Domain: sgw-divi-child
*/

:root {
  --sgw-black: #111111;
  --sgw-charcoal: #1b1b1b;
  --sgw-white: #ffffff;
  --sgw-light: #f5f5f5;
  --sgw-border: #dedede;
  --sgw-muted: #707070;
  --sgw-gold: #c8a55a;
  --sgw-gold-dark: #9f813e;
  --sgw-radius: 18px;
  --sgw-shadow: 0 18px 50px rgba(0,0,0,.14);
}

body {
  color: var(--sgw-black);
  background: var(--sgw-white);
  font-weight: 400;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3, .et_pb_text h4 {
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 800;
}

.et_pb_text p {
  font-size: 16px;
  line-height: 1.8;
}

::selection {
  background: var(--sgw-gold);
  color: var(--sgw-black);
}

/* Header / Navigation */
#main-header {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

#top-menu li a {
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 13px;
}

#top-menu li.current-menu-item > a,
#top-menu li a:hover {
  color: var(--sgw-gold) !important;
  opacity: 1;
}

.mobile_menu_bar:before {
  color: var(--sgw-black);
}

/* Layout helpers */
.sgw-section-dark {
  background: var(--sgw-black);
  color: var(--sgw-white);
}

.sgw-section-light {
  background: var(--sgw-light);
}

.sgw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sgw-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  margin-bottom: 14px;
}

.sgw-eyebrow:before {
  content: "";
  width: 36px;
  height: 2px;
  display: inline-block;
  background: var(--sgw-gold);
}

.sgw-watermark {
  position: relative;
  overflow: hidden;
}

.sgw-watermark:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/sg-logo-weiss.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(52vw, 620px);
  opacity: .06;
  pointer-events: none;
}

.sgw-watermark-black:before {
  background-image: url("assets/images/sg-logo-schwarz.png");
  opacity: .045;
}

/* Buttons */
.et_pb_button,
.sgw-button,
a.sgw-button {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 12px 24px !important;
  border: 2px solid var(--sgw-gold) !important;
  transition: all .22s ease;
}

.et_pb_button:hover,
.sgw-button:hover,
a.sgw-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.sgw-button-gold,
.et_pb_button.sgw-button-gold {
  background: var(--sgw-gold) !important;
  color: var(--sgw-black) !important;
}

.sgw-button-dark,
.et_pb_button.sgw-button-dark {
  background: var(--sgw-black) !important;
  color: var(--sgw-white) !important;
  border-color: var(--sgw-black) !important;
}

.sgw-button-outline,
.et_pb_button.sgw-button-outline {
  background: transparent !important;
  color: var(--sgw-white) !important;
  border-color: rgba(255,255,255,.78) !important;
}

/* Cards */
.sgw-card,
.sgw-team-card,
.sgw-value-card,
.sgw-news-card {
  border-radius: var(--sgw-radius);
  overflow: hidden;
  box-shadow: var(--sgw-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sgw-card:hover,
.sgw-team-card:hover,
.sgw-value-card:hover,
.sgw-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(0,0,0,.2);
}

.sgw-team-card .et_pb_main_blurb_image,
.sgw-value-card .et_pb_main_blurb_image {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.sgw-team-card .et_pb_module_header,
.sgw-value-card .et_pb_module_header,
.sgw-team-card .et_pb_blurb_description,
.sgw-value-card .et_pb_blurb_description {
  text-align: center;
}

.sgw-team-card .et-pb-icon,
.sgw-value-card .et-pb-icon {
  color: var(--sgw-gold) !important;
  font-size: 42px !important;
}

/* Matchday */
.sgw-matchday {
  background: linear-gradient(135deg, #111 0%, #1e1e1e 65%, #2a2417 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  overflow: hidden;
}

.sgw-matchday .et_pb_text_inner {
  position: relative;
  z-index: 2;
}

.sgw-matchday strong,
.sgw-matchday h2,
.sgw-matchday h3 {
  color: var(--sgw-white);
}

.sgw-matchday .sgw-matchday-label {
  color: var(--sgw-gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}

/* FuPa and embed blocks */
.sgw-embed-box {
  border-radius: var(--sgw-radius);
  overflow: hidden;
  background: var(--sgw-white);
  box-shadow: var(--sgw-shadow);
}

.sgw-fupa-link,
a.fupa_link {
  color: var(--sgw-gold) !important;
  font-weight: 800;
  text-decoration: none;
}

/* Social footer */
.sgw-social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.sgw-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: var(--sgw-white);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
  transition: all .22s ease;
}

.sgw-social-row a:hover {
  background: var(--sgw-gold);
  color: var(--sgw-black);
  transform: translateY(-2px);
}

.sgw-footer-center,
.sgw-footer-center * {
  text-align: center !important;
}

.sgw-copyright {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  text-align: center;
  margin-top: 24px;
}

/* Forms */
.et_pb_contact p input,
.et_pb_contact p textarea,
.et_pb_contact_select {
  border-radius: 12px !important;
  border: 1px solid var(--sgw-border) !important;
  background: var(--sgw-white) !important;
  color: var(--sgw-black) !important;
  padding: 14px 16px !important;
}

.et_pb_contact_submit {
  background: var(--sgw-gold) !important;
  color: var(--sgw-black) !important;
  border-color: var(--sgw-gold) !important;
}

/* SEO / accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--sgw-gold);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
  .sgw-watermark:before {
    background-size: 72vw;
    opacity: .045;
  }

  h1, .et_pb_text h1 {
    font-size: clamp(38px, 9vw, 68px) !important;
  }

  h2, .et_pb_text h2 {
    font-size: clamp(30px, 7vw, 48px) !important;
  }

  .sgw-matchday {
    border-radius: 18px;
  }
}

@media (max-width: 767px) {
  .et_pb_text p {
    font-size: 15px;
  }

  .sgw-social-row a {
    min-width: 44px;
    min-height: 44px;
  }
}
