@tailwind base;
@tailwind components;
@tailwind utilities;

// =============================================================================
// Variablen & CSS Custom Properties
// =============================================================================

$brand-rose: #d9a5b3;
$brand-blue: #1868ae;
$brand-mist: #c6d7eb;
$brand-blue-dark: #0f4f7a;
$hero-fill: #2c6b84;
$brand-text: #1a2740;

$frame-pad-mobile: 0.75rem;
$frame-pad-desktop: 1.25rem;
$hero-radius: 30px;

:root {
  --brand-rose: #{$brand-rose};
  --brand-blue: #{$brand-blue};
  --brand-mist: #{$brand-mist};
  --brand-blue-dark: #{$brand-blue-dark};
  --hero-fill: #{$hero-fill};
  --brand-text: #{$brand-text};
}

// =============================================================================
// Basis
// =============================================================================

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--brand-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
select {
  font: inherit;
}

// =============================================================================
// Layout: Rahmen & Hero-Wrapper
// =============================================================================

.site-frame {
  margin: 0 auto;
  min-height: 100dvh;
  display: grid;
}

.content {
  width: 100%;
  height: 100%;
}

.hero-wrap {
  position: relative;
  color: #fff;
  height: 100%;
}

// =============================================================================
// Hero
// =============================================================================

.hero {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  background: transparent;
}

.hero__shape {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__shape-frame {
  fill: #fff;
}

.hero__shape-main {
  fill: var(--hero-fill, #2c6b84);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  clip-path: url(#hero-main-clip);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 86% 21%, rgba(255, 255, 255, 0.42), transparent 26%),
    radial-gradient(circle at 88% 80%, rgba(255, 255, 255, 0.25), transparent 20%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28));
}

.hero__glow-left,
.hero__glow-right {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
}

.hero__glow-left {
  left: -5rem;
  top: 4rem;
  width: 360px;
  height: 330px;
  background: color-mix(in srgb, var(--brand-rose) 45%, transparent);
}

.hero__glow-right {
  right: 2.5rem;
  top: 1.5rem;
  width: 290px;
  height: 220px;
  background: color-mix(in srgb, var(--brand-mist) 70%, transparent);
}

.hero__body {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
  padding: clamp(0.75rem, 2.5vw, 1.5rem) clamp(0.75rem, 2.5vw, 1.5rem)
    clamp(7rem, 18vw, 9rem) clamp(1rem, 3.6vw, 3rem);
}

.hero__content {
  margin-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);

  @media (min-width: 768px) {
    margin-top: 3rem;
  }
}

.hero__title {
  max-width: 64rem;
  font-size: clamp(2.3rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.hero__text {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

// =============================================================================
// Navigation
// =============================================================================

.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand__logo {
  height: 5rem;
  width: auto;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.login-button {
  border-radius: 9999px;
  border: 0;
  background: #fff;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}

.top-nav__aside {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.probestunde-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  height: clamp(40px, 3.6vw, 46px);
  padding: 0 clamp(12px, 1.6vw, 18px);
  border-radius: 9999px;
  background: #fff;
  color: #0f172a;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  font-size: clamp(0.82rem, 1.05vw, 0.96rem);
  font-weight: 600;

  &:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
  }
}

.probestunde-tab__icon {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-rose) 22%, white);
  color: var(--brand-blue-dark);
}

// =============================================================================
// Karten (Info, Preis, Uhr)
// =============================================================================

.left-info-card {
  position: absolute;
  left: clamp(72px, 10vw, 92px);
  bottom: clamp(64px, 12vw, 80px);
  z-index: 20;
  width: min(290px, calc(100% - 6rem));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #fff;
  color: #0f172a;
  padding: 0.75rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);

  @media (min-width: 768px) {
    width: 340px;
  }

  p {
    margin: 0;
  }
}

.left-info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--brand-mist) 55%, white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.left-info-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.left-info-card__text {
  font-size: 0.875rem;
  font-weight: 600;
}

.price-card {
  position: absolute;
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(48px, 10vw, 64px);
  z-index: 20;
  width: min(290px, calc(100% - 3rem));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 1rem;

  @media (min-width: 768px) {
    width: 340px;
  }

  p {
    margin: 0;
  }
}

.price-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.price-card__value {
  margin-top: 0.25rem;
  font-size: 2rem;
  font-weight: 700;
}

.price-card__text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
}

.time-pill {
  position: absolute;
  left: 14px;
  bottom: 20px;
  z-index: 20;
  width: 72px;
  height: 220px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
  color: #334155;
  align-items: center;
  justify-content: center;

  span {
    transform: rotate(-90deg);
    font-size: 34px;
    line-height: 1;
  }
}

// =============================================================================
// Buchungsformular
// =============================================================================

.booking-form-wrap {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-mist) 65%, #cbd5e1);
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);

  @media (min-width: 768px) {
    left: 2.5rem;
    right: 2.5rem;
    bottom: 1.5rem;
    border-radius: 9999px;
    padding: 0.5rem;
  }
}

.booking-form__select,
.booking-form__price,
.booking-form__submit {
  border-radius: 9999px;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

.booking-form__select {
  border: 1px solid #e2e8f0;
  color: #0f172a;
  background: #fff;
  width: 100%;
}

.booking-form__price {
  background: color-mix(in srgb, var(--brand-mist) 38%, white);
  color: var(--brand-blue-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-form__submit {
  border: 0;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  width: 100%;

  &:hover {
    background: var(--brand-blue-dark);
  }

  &:focus-visible {
    outline: 2px solid var(--brand-rose);
    outline-offset: 2px;
  }
}
