/* =============================================
   FF Hämelerwald - Stylesheet
   ============================================= */

:root {
  --color-bg:         #ffffff;
  --color-bg-subtle:  #f6f6f6;
  --color-navy:       #0d2040;
  --color-red:        #c8102e;
  --color-red-hover:  #a50d25;
  --color-text:       #1a1a1a;
  --color-muted:      #6b7280;
  --color-border:     #e5e7eb;
  --radius:           10px;
  --transition:       180ms ease;
  --max-width:        600px;
  --font:             -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                      Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/*  Page shell */

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2.5rem 1.25rem 0;
}

/* Header / Logo */

.site-header {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.logo {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* Hero */

.hero {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  margin-bottom: 3rem;
}

.hero-tagline {
  color: var(--color-muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.training-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.training-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: left;
}

.training-card__icon {
  color: var(--color-red);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.training-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.training-card__time {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* social section */

.social-section {
  width: 100%;
  max-width: var(--max-width);
  margin-bottom: 3rem;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.social-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--platform-color, var(--color-red));
  border-radius: var(--radius) 0 0 var(--radius);
}

.social-card:hover {
  border-color: var(--platform-color, var(--color-red));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.social-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--platform-color, var(--color-red));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-card__icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.social-card__text {
  flex: 1;
  min-width: 0;
}

.social-card__name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.social-card__handle {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-card__arrow {
  color: var(--color-border);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.social-card:hover .social-card__arrow {
  color: var(--color-muted);
  transform: translateX(3px);
}

/* Footer  */

.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer nav a {
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.site-footer nav a:hover {
  color: var(--color-red);
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--color-border);
}

/* Sub-pages */

.subpage-wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.subpage-back:hover {
  color: var(--color-red);
}

.subpage-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.subpage-content h1 {
  font-size: 1.75rem;
  color: var(--color-navy);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-red);
}

.subpage-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 2rem 0 0.5rem;
}

.subpage-content p,
.subpage-content address {
  font-size: 0.9rem;
  color: var(--color-text);
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.subpage-content a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subpage-content a:hover {
  color: var(--color-red-hover);
}

.subpage-content ul {
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
}

.notice {
  background: #fff8f8;
  border: 1px solid #fcd5d5;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* Responsive */

@media (max-width: 480px) {
  .logo {
    max-width: 260px;
  }

  .hero-tagline {
    font-size: 0.85rem;
  }
}
