/* meinplan.at - Fresh Student Lifestyle Design */

:root {
  --primary: #E07A5F;        /* Warm terracotta */
  --primary-light: #F4A582;
  --primary-dark: #C75B41;
  --secondary: #81B29A;      /* Soft sage green */
  --secondary-light: #A8D5BA;
  --accent: #F2CC8F;         /* Warm golden */
  --dark: #3D405B;           /* Deep blue-gray */
  --text: #2D3142;
  --text-light: #6B7280;
  --bg: #FEFEFE;
  --bg-warm: #FBF8F4;
  --bg-card: #FFFFFF;
  --shadow: 0 4px 20px rgba(61, 64, 91, 0.08);
  --shadow-hover: 0 8px 30px rgba(61, 64, 91, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-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(--bg);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(61, 64, 91, 0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
  width: auto;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary);
}

/* Navigation */
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--primary);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero p {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 550px;
  margin-bottom: 30px;
}

/* Main Content */
main {
  padding: 60px 0;
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--primary);
  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: var(--secondary-light);
  color: var(--dark);
  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-size: 1.8rem;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured h2 a {
  color: inherit;
}

.featured h2 a:hover {
  color: var(--primary);
}

.featured p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.featured .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.featured .read-more:hover {
  gap: 12px;
}

/* Article Grid - Masonry-like */
.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;
  color: var(--primary);
}

.article-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--dark);
}

.article-card h3 a {
  color: inherit;
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card .excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Category Colors */
.category-liebe { color: #E07A5F; }
.category-freunde { color: #81B29A; }
.category-alltag { color: #F2CC8F; }
.category-wien { color: #3D405B; }
.category-studium { color: #5C80BC; }
.category-gesundheit { color: #8CB369; }
.category-glaube { color: #9B7EDE; }
.category-wohnen { color: #E9967A; }

/* 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-liebe { background: rgba(224, 122, 95, 0.15); color: #E07A5F; }
.badge-freunde { background: rgba(129, 178, 154, 0.15); color: #5A9A7A; }
.badge-alltag { background: rgba(242, 204, 143, 0.2); color: #C9A55C; }
.badge-wien { background: rgba(61, 64, 91, 0.1); color: #3D405B; }
.badge-studium { background: rgba(92, 128, 188, 0.15); color: #5C80BC; }
.badge-gesundheit { background: rgba(140, 179, 105, 0.15); color: #6B9A4A; }
.badge-glaube { background: rgba(155, 126, 222, 0.15); color: #9B7EDE; }
.badge-wohnen { background: rgba(233, 150, 122, 0.15); color: #D97D5A; }

/* 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-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  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-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin: 45px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-light);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  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(--dark);
  font-weight: 600;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 24px 30px;
  background: var(--bg-warm);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

/* Tables */
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 rgba(61, 64, 91, 0.08);
}

th {
  background: var(--secondary-light);
  color: var(--dark);
  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(129, 178, 154, 0.05);
}

/* FAQ Section */
.faq {
  margin: 50px 0;
  background: var(--bg-warm);
  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: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(61, 64, 91, 0.05);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question::before {
  content: 'F:';
  color: var(--primary);
  font-weight: 700;
}

.faq-answer {
  padding: 0 24px 20px 48px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, var(--secondary-light) 0%, rgba(129, 178, 154, 0.3) 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 30px 0;
}

.info-box h4 {
  color: var(--dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box p {
  margin: 0;
  color: var(--text);
}

/* Tip Box */
.tip-box {
  background: linear-gradient(135deg, rgba(242, 204, 143, 0.3) 0%, rgba(242, 204, 143, 0.1) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 30px 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(--primary);
}

.breadcrumb span {
  margin: 0 10px;
  color: var(--text-light);
}

/* Footer */
footer {
  background: var(--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-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(--primary-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;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    padding-top: 20px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .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;
  }
}

@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;
  }
}

/* Category Hero */
.category-hero {
  background: linear-gradient(135deg, var(--bg-warm) 0%, #FFF5EB 100%);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.category-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.category-hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Active nav state */
nav a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.info-table tr {
  border-bottom: 1px solid rgba(61, 64, 91, 0.1);
}

.info-table td {
  padding: 12px 16px;
}

.info-table td:first-child {
  font-weight: 500;
  color: var(--dark);
  width: 40%;
}

/* Warning Box */
.warning-box {
  background: #FEF2F2;
  border-left: 4px solid #EF4444;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.warning-box h4 {
  color: #DC2626;
  margin-bottom: 8px;
  font-size: 1rem;
}

.warning-box p {
  color: #991B1B;
  margin: 0;
}

@media (max-width: 768px) {
  .category-hero {
    padding: 40px 0;
  }

  .category-hero h1 {
    font-size: 1.8rem;
  }

  .category-hero p {
    font-size: 1rem;
    padding: 0 16px;
  }
}

/* Print Styles */
@media print {
  header, footer, nav, .breadcrumb {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
