/* Main Stylesheet — Villa Ankerplatz */

@import 'reset.css';
@import 'tokens.css';
@import 'nav.css';
@import 'footer.css';
@import 'home.css';
@import './villa.css';
@import './gallery.css';
@import './content-pages.css';
@import './animations.css';

/* ============================================================
   BASE BODY STYLES
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height-body);
}

/* ============================================================
   HEADING STYLES
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-base); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

/* Responsive type scaling */
@media (min-width: 768px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

@media (min-width: 1200px) {
  h1 { font-size: calc(var(--font-size-3xl) * 1.2); }
  h2 { font-size: calc(var(--font-size-2xl) * 1.15); }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ============================================================
   ACCESSIBILITY UTILITIES
   ============================================================ */

/* Screen reader only — visually hidden but accessible to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip-to-content: visible when keyboard focused (WCAG 2.4.1) */
.sr-only:focus,
.sr-only:focus-visible {
  position: static;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  z-index: var(--z-modal, 9999);
  display: inline-block;
}

/* Global focus fallback — ensures no interactive element is focus-invisible (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
