@import "./layout.css";
@import "./hero.css";
@import "./tabs.css";
@import "./cards.css";
@import "./button.css";
@import "./mobile-menu.css";
@import "./scroll-reveal.css";
@import "./contact-panel.css";
@import "./tables.css";
@import "./verein.css";
@import "./typography.css";

html,
body {
  margin: 0;
  background: linear-gradient(var(--bg), var(--bg2));
  color: var(--text);
  overflow-x: hidden;

  @supports (-webkit-touch-callout: none) {
    background: #0b1220;
  }

}

:root {
  --bg: #0b1220;
  --bg2: #08101c;

  --card: rgba(20, 30, 45, 0.75);
  --cardSolid: #10233f;

  --surface: #144885;
  --surfaceSecondary: #5578bb;
  --surfaceTertiary: #009cb2;
  --surfaceQuaternary: #0073aa;

  --primary: #2fb6a3;
  --primaryText: #e7e6f3;

  --accent: var(--primary);

  --text: #e6eef8;
  --muted: rgba(230, 238, 248, 0.75);

  --border: rgba(255, 255, 255, 0.14);
  --shadow: 20px 20px 60px rgba(0, 0, 0, 0.65);

  --radius: 20px;
  --radiusSm: 20px;

  --container: 1800px;
  --gutter: clamp(16px, 2.2vw, 32px);

  --header-height: calc(0.5rem + 64px);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.content {
  padding-top: var(--header-height);
  flex: 1;
}

main h2 {
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}


* {
  box-sizing: border-box; 
}

html {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body.home main.content {
  padding-top: 0;
}

.header {
  padding-top: 0.5rem;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: rgba(20, 30, 45, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}



.nav {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
}


.nav a { 
  color: var(--text);
  text-decoration: none;
}

/* Dropdown Grundstruktur */
.nav-item {
  position: relative;
}




.links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}


@media (max-width: 1150px) {
  .links {
    position: static;          /* raus aus absolute */
    transform: none;
    margin-left: auto;         /* schiebt nach rechts */
    gap: 1.5rem;
  }
}

@media (max-width: 800px) {
  .links {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }
}

@media (min-width: 801px) {
  .burger {
    display: none;
  }
}

.dropdown-label {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text);
  opacity: 0.9;
  cursor: pointer; /* statt default */
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.links a,
.dropdown-label {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
  cursor: default;
}

.links a:hover,
.dropdown-label:hover {
  opacity: 1;
}

.links > li {
  position: relative;
}


/* Menü */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(16, 35, 63, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  margin-top: 12px;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}

/* Hover */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu,
.nav-item.dropdown.is-open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Links */
.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}


.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Divider */
.dropdown-menu .divider {
  height: 1px;
  margin: 0.4rem 0;
  background: rgba(247, 208, 208, 0.15);
}

/* Pfeil */
.caret {
  font-size: 0.7rem;
  opacity: 0.7;
}


.container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@supports (-webkit-touch-callout: none) {
  @media (orientation: landscape) {
    .container {
      padding-left: max(var(--gutter), env(safe-area-inset-left));
      padding-right: max(var(--gutter), env(safe-area-inset-right));
    }
  }
}

.container h1 {
  margin-bottom: 1.5rem;
}

.container h2 {
  margin-top: 2rem;
}

.container p {
  max-width: 70ch;
  line-height: 1.6;
}


.intro {
  margin: 0rem 0 0rem;
}

.intro h1 {
  text-align: center;
}

.footer {
  background: var(--surface);
  padding-top: 5rem;
  /*padding-bottom: 2rem;*/
  text-align: center;

  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.footer nav a {
  color: var(--text);
  opacity: 0.8;
  text-decoration: none;
}

.footer nav a:hover {
  opacity: 1;
  transition: opacity 0.3s;
}


/* CTA Divider */
.cta-divider {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 3.5rem 0;
  margin-top: 5rem;
}

.cta-divider .btn {
  position: absolute;
  bottom: -1.5rem;
}

.cta-logo-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-logo {
  position: absolute;
  right: 3rem;
  height: 80px;
  opacity: 0.8;
  bottom: 0rem;
}

@media (max-width: 900px) {
  .cta-logo {
    display: none;
  }
}


a[href^="http"]:not([href*="tee-timers.de"]):not([href$=".pdf"])::after {
  content: "↗";
  font-size: 0.75em;
  margin-left: 0.25em;
  opacity: 0.7;
}

a[href$=".pdf"]::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.3em;
  opacity: 0.7;
  vertical-align: text-bottom;

  background-color: currentColor;

  -webkit-mask: url("/images/file-download.svg") no-repeat center / contain;
  mask: url("/images/file-download.svg") no-repeat center / contain;

}

