/*
 Theme Name:   Volleyballfreunde Astra Child – Style Pack (Elementor)
 Theme URI:    https://example.com
 Description:  Fokus auf Hintergrund, Buttons und Schrift in Elementor + Theme. Moderne, responsiv skalierende Typo, einheitliche Buttons, Background-Utilities.
 Author:       ChatGPT
 Version:      1.0.0
 Template:     astra
 Text Domain:  vf-child-style
*/

/* ==============================
   DESIGN-VARIABLEN
   ============================== */
:root{
  /* Farben */
  --vf-accent: #0ea5e9;         /* Primär (Buttons/Links) */
  --vf-accent-600: #0284c7;
  --vf-accent-700: #0369a1;
  --vf-text: #0b1220;
  --vf-muted: #6b7280;
  --vf-bg: #ffffff;             /* Seitenhintergrund */
  --vf-surface: #f7fafc;        /* Karten/sek. Hintergrund */
  --vf-border: rgba(10,10,10,.08);

  /* Typo */
  --vf-font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji","Segoe UI Emoji";
  --vf-leading: 1.65;
  --vf-h-leading: 1.15;

  /* Radius & Schatten */
  --vf-radius: 14px;
  --vf-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(2, 132, 199, .08);

  /* Abstände */
  --vf-gap: clamp(16px, 2vw, 28px);

  /* Button-Höhen */
  --vf-btn-h: 44px;
  --vf-btn-h-lg: 52px;
  --vf-btn-h-sm: 36px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark){
  :root{
    --vf-text: #e5e7eb;
    --vf-muted: #a1a1aa;
    --vf-bg: #0b0f14;
    --vf-surface: #0f141a;
    --vf-border: rgba(255,255,255,.09);
    --vf-shadow: 0 1px 2px rgba(0,0,0,.6), 0 16px 40px rgba(0,0,0,.45);
    --vf-accent: #38bdf8;
    --vf-accent-600: #0ea5e9;
    --vf-accent-700: #0284c7;
  }
}

/* ==============================
   GLOBALER HINTERGRUND & TYPO
   ============================== */
html{scroll-behavior:smooth}
body{
  background: var(--vf-bg);
  color: var(--vf-text);
  font-family: var(--vf-font);
  line-height: var(--vf-leading);
  font-size: clamp(16px, 1.4vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Option: dezente Verlauf-Fläche für Seitenhintergrund */
.vf-bg-gradient{
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(14,165,233,.08), transparent 60%),
    radial-gradient(1200px 600px at 100% 0%, rgba(14,165,233,.06), transparent 60%),
    var(--vf-bg);
}

/* Überschriften – responsive, kompakt, mit leichtem Negativ-Kerning */
h1,h2,h3,h4,h5,h6{
  line-height: var(--vf-h-leading);
  letter-spacing: -.015em;
  margin: 0 0 .5em 0;
}
h1{font-size: clamp(2rem, 5.5vw, 3rem);}
h2{font-size: clamp(1.6rem, 3.5vw, 2.25rem);}
h3{font-size: clamp(1.25rem, 2.4vw, 1.5rem);}
h4{font-size: clamp(1.125rem, 2vw, 1.25rem);}
small,.small{font-size:.9rem;color:var(--vf-muted)}

p{margin: 0 0 1em 0;}
a{color: var(--vf-accent); text-underline-offset: .2em;}
a:hover{color: var(--vf-accent-600);}

/* ==============================
   CONTAINERS & KARTEN
   ============================== */
.vf-container{margin-inline:auto;width:min(1200px,92vw);}
.bg-surface{background:var(--vf-surface);}
.card{
  background: var(--vf-bg);
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius);
  box-shadow: var(--vf-shadow);
}

/* ==============================
   BUTTONS – GLOBAL + ELEMENTOR
   ============================== */
.button, .wp-element-button, .wp-block-button__link,
input[type=submit], input[type=button], button,
.elementor-button, .elementor a.button, .elementor-button-link{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 18px;
  min-height: var(--vf-btn-h);
  border-radius: 999px;
  border: 1px solid var(--vf-accent);
  background: var(--vf-accent);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none !important;
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 6px 18px rgba(14,165,233,.22);
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.elementor-button .elementor-button-text{line-height:1;}

.button:hover, .wp-element-button:hover, .wp-block-button__link:hover,
input[type=submit]:hover, input[type=button]:hover, button:hover,
.elementor-button:hover, .elementor a.button:hover, .elementor-button-link:hover{
  background: var(--vf-accent-600);
  border-color: var(--vf-accent-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 10px 26px rgba(14,165,233,.3);
}

.button:active, .wp-element-button:active, .wp-block-button__link:active,
input[type=submit]:active, input[type=button]:active, button:active,
.elementor-button:active, .elementor a.button:active, .elementor-button-link:active{
  transform: translateY(0);
  background: var(--vf-accent-700);
  border-color: var(--vf-accent-700);
}

.button:focus-visible, .wp-element-button:focus-visible, .wp-block-button__link:focus-visible,
input[type=submit]:focus-visible, input[type=button]:focus-visible, button:focus-visible,
.elementor-button:focus-visible, .elementor a.button:focus-visible, .elementor-button-link:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--vf-accent), white 40%);
  outline-offset: 2px;
}

/* Button-Varianten */
.btn{ /* utility class if needed */
  composes: wp-element-button;
}
.btn-outline,
.elementor-button--outline .elementor-button{
  background: transparent;
  color: var(--vf-accent) !important;
  border-color: var(--vf-accent);
  box-shadow: none;
}
.btn-outline:hover,
.elementor-button--outline .elementor-button:hover{
  background: color-mix(in oklab, var(--vf-accent), transparent 85%);
}

.btn-ghost{ background: transparent; border-color: transparent; color: var(--vf-accent) !important; box-shadow: none;}
.btn-ghost:hover{ background: color-mix(in oklab, var(--vf-accent), transparent 92%); }

/* Button-Größen */
.btn-lg, .elementor-size-lg .elementor-button{ min-height: var(--vf-btn-h-lg); padding: 0 22px; font-size: 1.0625rem; }
.btn-sm, .elementor-size-sm .elementor-button{ min-height: var(--vf-btn-h-sm); padding: 0 14px; font-size: .95rem; }

/* ==============================
   ELEMENTOR-SEKTIONEN / HINTERGRUND
   ============================== */
.elementor-section{ border-radius: max(0px, calc(var(--vf-radius) - 6px)); overflow: hidden; }
.elementor-section.elementor-section-boxed .elementor-container{ width: min(1200px, 92vw); }
.elementor-section.full-width{ margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Utility Hintergründe für Sektionen */
.vf-bg-surface{ background: var(--vf-surface) !important; }
.vf-bg-accent{ background: color-mix(in oklab, var(--vf-accent), white 88%) !important; }
.vf-bg-gradient-hero{
  background:
    radial-gradient(1000px 540px at 0% 0%, color-mix(in oklab, var(--vf-accent), transparent 80%), transparent 60%),
    radial-gradient(1000px 540px at 100% 0%, color-mix(in oklab, var(--vf-accent), transparent 85%), transparent 60%),
    var(--vf-bg);
}

/* ==============================
   FORMULARE
   ============================== */
input, select, textarea{
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--vf-bg);
  color: var(--vf-text);
}
input:focus, select:focus, textarea:focus{
  border-color: color-mix(in oklab, var(--vf-accent), #000 0%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--vf-accent), transparent 85%);
  outline: none;
}

/* ==============================
   TABELLE / MEDIA
   ============================== */
table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.98rem}
th,td{padding:.6rem;border-bottom:1px solid var(--vf-border)}
th{text-align:left}
img{max-width:100%;height:auto;border-radius:12px}

/* ==============================
   ACCESSIBILITY / MISC
   ============================== */
:where(.sr-only){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
hr{border:none;border-top:1px solid var(--vf-border);margin:2rem 0}
blockquote{border-left:4px solid var(--vf-accent);padding-left:1rem;color:var(--vf-muted)}
/* ======================================
   FOOTER: immer volle Breite
   ====================================== */
.site-footer, 
.site-footer .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  background: var(--vf-surface); /* oder var(--vf-accent) wenn du Farbe willst */
  margin-top: 3rem;
}

/* Optional: Innenabstände und Typo anpassen */
.site-footer .ast-builder-grid-row {
  padding: 2rem clamp(16px, 5vw, 40px);
}

.site-footer,
.site-footer a {
  color: var(--vf-text);
}
.site-footer a:hover {
  color: var(--vf-accent);
}
