/*
 * Theme Name: GurkenTheme - Winter
 * Author: FlosLetsPlay
 * Description: Dynamischer Header mit Gradient-Fade und kategoriebasierte Beitrags-Reihen. Winter Edition
 * Version: 1.0
 * Text Domain: gurkenschau
 */

/* ===== Theme Farben ===== */
:root{
       --main-color: rgb(83, 86, 255); /*Sitebar, Header,*/
    --akzent1-color: rgb(255, 242,   0); /*Buttons, Sitebar-Link-Hover*/
    --akzent2-color: rgb(255, 255, 255); /*Hintergrung (Weiß)*/
    --akzent3-color: rgb(103, 198, 227); /*Artikel-Karte*/
    --akzent4-color: rgb(55, 140, 231); /*Sendungs-Karte*/
    /*gradient-colors*/
    --g-start:rgba(83, 86, 255, 1);
    --g-middle:rgba(83, 86, 255, 0.85);
    --g-end:rgba(83, 86, 255, 0);
}
/* ===== Smooth scrolling ===== */

 html {
	scroll-behavior: smooth;
  }

/* ===== Font smoothing ===== */

body {
	-moz-osx-font-smoothing: var(--wp--custom--typography--font-smoothing--moz, auto);
	-webkit-font-smoothing: var(--wp--custom--typography--font-smoothing--webkit, auto);
}

/* ===== BASIC SETUP ===== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--akzent2-color);
    color: #222;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: var(--main-color);
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    color: var(--akzent2-color);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar .logo-link {
    width: 36px;
    height: 36px;
    margin-bottom: 24px;
    display: block;
}

.sidebar nav a{
    display: block;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: color 0.3s ease;
}

.sidebar nav a:hover {
    color: var(--akzent1-color);
}

/* ===== HOMEPAGE LAYOUT ===== */
.main-content {
    margin-left: 90px;
    padding: 0;
    background: var(--akzent2-color);
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER MIT FADE-OVERLAY ===== */
.header {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    padding-right: 250px;
    color: #fff;
    overflow: hidden;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(280deg, var(--g-start) 10%, var(--g-middle) 60%, var(--g-end) 95%);
    z-index: 2;
}

.header-text {
    position: relative;
    z-index: 3;
    margin-left: auto;
    max-width: 45%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.header-text h1 {
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.15;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    margin: 0;
}

.header-button {
    text-decoration: none;
}

.header-button button {
    background: var(--akzent1-color);
    color: #000;
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.header-button button:hover {
    background: #fff200;
    transform: translateY(-2px);
}

/* ===== NEWS SECTION - ZWEI REIHEN ===== */
.news-section {
    padding: 20px;
    background: var(--akzent2-color);
    color: #000;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-section h2 {
    margin-bottom: 20px;
    font-weight: 700;
    color: #000;
    font-size: 1.5rem;
}

/* Reihen-Container */
.news-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.row-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 5px;
}

/* Karten-Container */
.news-cards-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

/* Kleinere, abgerundete Karten */
.news-card {
    flex: 0 0 180px;
    min-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Bild oben in der Karte */
.card-image {
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text unten in der Karte */
.news-card h4 {
    margin: 12px 12px 6px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    flex-grow: 1;
}

.news-card span {
    margin: 0 12px 12px 12px;
    font-size: 0.75rem;
    color: #666;
    flex-shrink: 0;
}

/* Unterschiedliche Farben für Artikel und Sendungen */
.news-card--artikel {
    background: var(--akzent3-color);
}

.news-card--sendung {
    background: var(--akzent4-color);
    color: #fff;
}

.news-card--sendung span {
    color: #e0f4ff;
}

/* Scrollbar-Design */
.news-cards-row::-webkit-scrollbar {
    height: 6px;
}

.news-cards-row::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-cards-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.news-cards-row::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ===== SINGLE POST LAYOUT ===== */
body.single .single-main-content {
    margin-left: 90px;
    padding: 0;
    background: #fff;
    min-height: 100vh;
    color: #222;
}

body.single .single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
    line-height: 1.6;
}

/* Single Post Header */
body.single .single-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 20px;
}

body.single .single-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.2;
}

body.single .single-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

body.single .post-date {
    font-weight: 600;
}

body.single .post-category {
    color: var(--main-color);
    font-weight: 600;
}

/* Featured Image Block */
body.single .single-featured-image {
    margin: 30px 0;
    text-align: center;
}

body.single .featured-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Single Post Content */
body.single .single-content {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 30px;
}

body.single .single-content p {
    margin-bottom: 20px;
}

body.single .single-content h2,
body.single .single-content h3,
body.single .single-content h4 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #222;
}

body.single .single-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

body.single .single-content h3 {
    font-size: 1.5rem;
}

body.single .single-content h4 {
    font-size: 1.3rem;
}

body.single .single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

body.single .single-content blockquote {
    border-left: 4px solid var(--main-color);
    margin: 25px 0;
    padding: 15px 20px;
    background: #f9f9f9;
    font-style: italic;
}

/* Post Navigation */
body.single .post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

body.single .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

body.single .nav-previous,
body.single .nav-next {
    flex: 1;
    max-width: 45%;
}

body.single .nav-next {
    text-align: right;
}

body.single .nav-links a {
    display: block;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

body.single .nav-links a:hover {
    background: var(--main-color);
    color: white;
}

body.single .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

body.single .nav-links a:hover .nav-subtitle {
    color: #ccc;
}

body.single .nav-title {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .news-card {
        flex: 0 0 160px;
        min-height: 220px;
    }

    .card-image {
        height: 100px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-content {
        margin-left: 70px;
    }

    .header {
        height: 300px;
        padding-right: 20px;
    }

    .header-text {
        max-width: 60%;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .news-card {
        flex: 0 0 150px;
        min-height: 200px;
    }

    .card-image {
        height: 90px;
    }

    /* Single Post Mobile */
    body.single .single-main-content {
        margin-left: 70px;
    }

    body.single .single-post {
        padding: 30px 20px;
    }

    body.single .single-title {
        font-size: 2rem;
    }

    body.single .nav-links {
        flex-direction: column;
    }

    body.single .nav-previous,
    body.single .nav-next {
        max-width: 100%;
        text-align: left;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-content {
        margin-left: 0;
    }

    .sidebar {
        width: 70px;
    }

    .header {
        height: 260px;
    }

    .header-text {
        max-width: 85%;
        margin: 0 auto;
        text-align: center;
    }

    .news-card {
        flex: 0 0 140px;
        min-height: 180px;
    }

    .card-image {
        height: 80px;
    }

    .news-cards-row {
        gap: 10px;
    }

    /* Single Post Small Mobile */
    body.single .single-main-content {
        margin-left: 0;
    }

    body.single .single-post {
        padding: 20px 15px;
    }

    body.single .single-title {
        font-size: 1.7rem;
    }

    body.single .single-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .header-button,
    .post-navigation {
        display: none;
    }

    .main-content,
    body.single .single-main-content {
        margin-left: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
}
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: local('Material Icons'),
    local('MaterialIcons-Regular'),
      url(https://gurkenschau.eu/cdn/fonts/MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 32px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
	text-rendering:optimizeLegibility;
  -moz-osx-font-smoothing:grayscale;
  font-feature-settings: 'liga';
}
.main-content{
	background-color:#fff;
	color:#000;
}
.hover:hover {
  color: var(--akzent1-color);
}
