/* wechselpass.at - Sportlich Modern Theme */

:root {
  --primary: #1B4332;
  --primary-dark: #0D2818;
  --primary-light: #2D6A4F;
  --secondary: #1A365D;
  --secondary-light: #2C5282;
  --accent: #F97316;
  --accent-light: #FDBA74;
  --accent-dark: #EA580C;
  --bg: #FAFAF9;
  --bg-alt: #F0FDF4;
  --bg-card: #FFFFFF;
  --text: #1C1917;
  --text-muted: #57534E;
  --text-light: #78716C;
  --border: #D6D3D1;
  --border-light: #E7E5E4;
  --success: #16A34A;
  --warning: #F59E0B;
  --shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
  --shadow-hover: 0 8px 30px rgba(27, 67, 50, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
}

/* Navigation */
nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

nav > ul > li {
  position: relative;
}

nav > ul > li > a {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 20px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease, background 0.2s ease;
}

nav > ul > li > a:hover,
nav > ul > li > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

nav > ul > li > a .arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 240px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-hover);
  z-index: 200;
}

.dropdown a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

nav > ul > li:hover .dropdown {
  display: block;
}

nav > ul > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 550px;
  margin-bottom: 30px;
}

/* Main Content */
main {
  padding: 60px 0;
}

/* Section Titles */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--accent);
  border-radius: 2px;
}

/* Featured Article */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.featured-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured:hover .featured-image img {
  transform: scale(1.03);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-category {
  display: inline-flex;
  align-items: center;
  background: rgba(27, 67, 50, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  width: fit-content;
}

.featured h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured h2 a {
  color: inherit;
}

.featured h2 a:hover {
  color: var(--accent);
}

.featured p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.featured .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.featured .read-more:hover {
  gap: 12px;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

/* Article Card */
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.article-card-image {
  position: relative;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-content {
  padding: 24px;
}

.article-card .category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text);
}

.article-card h3 a {
  color: inherit;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card .excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Category Colors */
.category-taktik { color: var(--primary); }
.category-training { color: #16A34A; }
.category-positionen { color: var(--secondary); }
.category-spielerboerse { color: var(--accent); }
.category-wissen { color: #7C3AED; }

/* Category Badges */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-taktik { background: rgba(27, 67, 50, 0.12); color: var(--primary); }
.badge-training { background: rgba(22, 163, 74, 0.12); color: #16A34A; }
.badge-positionen { background: rgba(26, 54, 93, 0.12); color: var(--secondary); }
.badge-spielerboerse { background: rgba(249, 115, 22, 0.12); color: var(--accent-dark); }
.badge-wissen { background: rgba(124, 58, 237, 0.12); color: #7C3AED; }

/* Single Article */
article.single {
  padding: 60px 0;
}

article.single .article-header {
  margin-bottom: 40px;
  text-align: center;
}

article.single .article-header .category {
  margin-bottom: 16px;
}

article.single h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 20px;
}

article.single .meta {
  color: var(--text-light);
  font-size: 0.95rem;
}

article.single .featured-img {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

article.single .featured-img img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* Article Content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 45px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(27, 67, 50, 0.15);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 35px 0 15px;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 24px 30px;
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(27, 67, 50, 0.03);
}

/* FAQ Section */
.faq {
  margin: 50px 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px;
}

.faq h2 {
  margin-bottom: 30px;
  border-bottom: none;
  text-align: center;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.05);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(27, 67, 50, 0.03);
}

.faq-question::before {
  content: 'F:';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question::after {
  content: '+';
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--text-light);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 24px 0 48px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px 48px;
  max-height: 500px;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.08) 0%, rgba(27, 67, 50, 0.03) 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 30px 0;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box p,
.info-box ul {
  margin: 0;
  color: var(--text);
}

.info-box ul {
  padding-left: 20px;
  margin-top: 8px;
}

.info-box li {
  margin-bottom: 6px;
}

/* Tip Box */
.tip-box {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.03) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 30px 0;
}

.tip-box p {
  margin: 0;
}

/* Warning Box */
.warning-box {
  background: #FEF2F2;
  border-left: 4px solid #EF4444;
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.warning-box h4 {
  color: #DC2626;
  margin-bottom: 8px;
  font-size: 1rem;
}

.warning-box p {
  color: #991B1B;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 10px;
  color: var(--text-light);
}

/* Category Hero */
.category-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.category-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.category-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* Active nav state */
nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.info-table tr {
  border-bottom: 1px solid var(--border-light);
}

.info-table td {
  padding: 12px 16px;
}

.info-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 40%;
}

/* Taktik Board (Visual element for formations) */
.formation-visual {
  background: linear-gradient(to bottom, var(--primary) 0%, #2D6A4F 100%);
  border-radius: var(--radius);
  padding: 40px 20px;
  margin: 30px 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  position: relative;
}

.formation-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.formation-visual .line {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
}

.formation-visual .player {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav > ul > li > a {
    padding: 14px 0;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    display: none;
  }

  .dropdown a {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    padding-left: 28px;
  }

  .dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  nav > ul > li.dropdown-open .dropdown {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .featured {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .featured-image img {
    height: 220px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  article.single h1 {
    font-size: 1.8rem;
  }

  .faq {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .category-hero {
    padding: 40px 0;
  }

  .category-hero h1 {
    font-size: 1.8rem;
  }

  .category-hero p {
    font-size: 1rem;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .article-card-content {
    padding: 18px;
  }

  .formation-visual .line {
    gap: 20px;
  }

  .formation-visual .player {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }
}

/* Print Styles */
@media print {
  header, footer, nav, .breadcrumb {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
