/*
Theme Name: Rookie Magazin
Theme URI: https://rookie-magazin.de
Author: Rookie Magazin
Author URI: https://rookie-magazin.de
Description: Ein modernes Bold-Magazin-Theme für Rookie-Magazin.de – Lifestyle & Jugendkultur. Großzügige Bilder, kräftige Farben, magazinartige Layouts und volle Unterstützung für Kategorien & Tags.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rookie-magazin
Tags: magazine, blog, news, lifestyle, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. Variablen & Reset
   ========================================================= */
:root {
    --rm-bg: #ffffff;
    --rm-bg-alt: #f5f3ef;
    --rm-text: #111111;
    --rm-text-soft: #555555;
    --rm-accent: #ff2e63;          /* Magenta-Pink, jugendlich */
    --rm-accent-2: #ffd000;        /* Gelb für Akzente */
    --rm-dark: #0d0d0d;
    --rm-border: #ececec;
    --rm-radius: 4px;
    --rm-font-display: "Archivo Black", "Inter", "Helvetica Neue", Arial, sans-serif;
    --rm-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --rm-shadow: 0 8px 30px rgba(0,0,0,0.08);
    --rm-max: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--rm-font-body);
    color: var(--rm-text);
    background: var(--rm-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--rm-text);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--rm-accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rm-font-display);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { margin: 0 0 1em; }

.container {
    max-width: var(--rm-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* =========================================================
   2. Header
   ========================================================= */
.site-header {
    background: var(--rm-bg);
    border-bottom: 1px solid var(--rm-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.site-title {
    font-family: var(--rm-font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
}
.site-title a { color: var(--rm-text); }
.site-title .accent { color: var(--rm-accent); }
.site-description { display: none; }

.main-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.main-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .08em;
    padding: .5rem 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--rm-accent);
    border-bottom-color: var(--rm-accent);
}

.menu-toggle {
    display: none;
    background: var(--rm-dark);
    color: #fff;
    border: 0;
    padding: .6rem .9rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--rm-radius);
}

@media (max-width: 860px) {
    .menu-toggle { display: inline-block; }
    .main-nav { display: none; width: 100%; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-top: 1px solid var(--rm-border); }
    .main-nav a { display: block; padding: .9rem 0; }
    .site-header__bar { flex-wrap: wrap; }
}

/* =========================================================
   3. Hero / Featured
   ========================================================= */
.hero {
    background: var(--rm-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    min-height: 520px;
}
.hero__image {
    background-size: cover;
    background-position: center;
}
.hero__content {
    padding: clamp(1.5rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--rm-dark);
}
.hero__kicker {
    display: inline-block;
    background: var(--rm-accent);
    color: #fff;
    padding: .35rem .75rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.hero__title {
    color: #fff;
    margin-bottom: 1rem;
}
.hero__title a { color: #fff; }
.hero__title a:hover { color: var(--rm-accent-2); }
.hero__excerpt { color: #c9c9c9; max-width: 38rem; }
.hero__meta {
    margin-top: 1.25rem;
    color: #888;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__image { min-height: 260px; }
}

/* =========================================================
   4. Sections / Grids
   ========================================================= */
.section {
    padding: 4rem 0;
}
.section--alt { background: var(--rm-bg-alt); }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--rm-dark);
    padding-bottom: .75rem;
}
.section-head h2 {
    margin: 0;
    text-transform: uppercase;
}
.section-head a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .1em;
    color: var(--rm-accent);
}

/* Article cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 980px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.card {
    background: var(--rm-bg);
    display: flex;
    flex-direction: column;
}
.card__media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ddd;
}
.card__media img,
.card__media .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.05); }

.card__category {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--rm-accent);
    color: #fff;
    padding: .3rem .7rem;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.card__body { padding: 1rem 0 0; }
.card__title {
    font-size: 1.25rem;
    margin: 0 0 .5rem;
}
.card__excerpt { color: var(--rm-text-soft); font-size: .95rem; }
.card__meta {
    margin-top: .75rem;
    font-size: .78rem;
    color: var(--rm-text-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Featured large card variant */
.posts-grid--mixed {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: auto;
}
.posts-grid--mixed .card:first-child {
    grid-row: span 2;
}
.posts-grid--mixed .card:first-child .card__title { font-size: 2rem; }
@media (max-width: 980px) {
    .posts-grid--mixed { grid-template-columns: 1fr 1fr; }
    .posts-grid--mixed .card:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
    .posts-grid--mixed { grid-template-columns: 1fr; }
    .posts-grid--mixed .card:first-child { grid-column: auto; }
}

/* =========================================================
   5. Single Post
   ========================================================= */
.single-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--rm-border);
}
.single-hero .kicker {
    display: inline-block;
    background: var(--rm-accent);
    color: #fff;
    padding: .35rem .8rem;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}
.single-hero h1 { max-width: 50rem; margin: 0 auto 1rem; }
.single-hero .meta {
    color: var(--rm-text-soft);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.featured-image {
    margin: 0 0 2rem;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; }

.entry-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.75;
}
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content blockquote {
    border-left: 4px solid var(--rm-accent);
    padding: .5rem 0 .5rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.3rem;
    font-family: var(--rm-font-display);
    color: var(--rm-dark);
}
.entry-content a { color: var(--rm-accent); border-bottom: 1px solid currentColor; }
.entry-content img { margin: 1.5rem 0; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin: 0 0 1.4em; }
.entry-content code, .entry-content pre {
    background: var(--rm-bg-alt);
    border-radius: var(--rm-radius);
    padding: .15em .4em;
    font-size: .95em;
}
.entry-content pre { padding: 1rem; overflow-x: auto; }

.entry-tags {
    max-width: 720px;
    margin: 2rem auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rm-border);
}
.entry-tags a {
    display: inline-block;
    background: var(--rm-bg-alt);
    padding: .3rem .7rem;
    font-size: .8rem;
    margin: 0 .3rem .3rem 0;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}
.entry-tags a:hover { background: var(--rm-accent); color: #fff; }

/* =========================================================
   6. Sidebar / Widgets
   ========================================================= */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}
@media (max-width: 980px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
}
.sidebar .widget {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rm-border);
}
.sidebar .widget-title {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: .08em;
    border-left: 4px solid var(--rm-accent);
    padding-left: .6rem;
    margin-bottom: 1rem;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .4rem 0; border-bottom: 1px dashed var(--rm-border); }

/* =========================================================
   7. Pagination & Buttons
   ========================================================= */
.pagination {
    display: flex; gap: .5rem; justify-content: center;
    margin: 3rem 0;
}
.pagination a, .pagination .current {
    padding: .6rem .9rem;
    border: 1px solid var(--rm-border);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .1em;
}
.pagination .current {
    background: var(--rm-dark);
    color: #fff;
    border-color: var(--rm-dark);
}

.button, .wp-block-button__link, button[type="submit"], input[type="submit"] {
    display: inline-block;
    background: var(--rm-accent);
    color: #fff;
    padding: .8rem 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .85rem;
    border: 0;
    cursor: pointer;
    transition: background .2s ease;
}
.button:hover { background: var(--rm-dark); color: #fff; }

/* =========================================================
   8. Comments
   ========================================================= */
.comments-area {
    max-width: 720px;
    margin: 3rem auto;
}
.comment-list { list-style: none; padding: 0; }
.comment-body {
    padding: 1.25rem;
    background: var(--rm-bg-alt);
    border-radius: var(--rm-radius);
    margin-bottom: 1rem;
}
.comment-meta { font-size: .8rem; color: var(--rm-text-soft); margin-bottom: .5rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--rm-border);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* =========================================================
   9. Footer
   ========================================================= */
.site-footer {
    background: var(--rm-dark);
    color: #c9c9c9;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--rm-accent-2); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: .25rem 0; }
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
    text-align: center;
    font-size: .85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* =========================================================
   10. Utilities & WP defaults
   ========================================================= */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--rm-text-soft); text-align: center; }
.sticky { position: relative; }
.gallery-caption {}
.bypostauthor {}

.placeholder {
    background: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--rm-font-display);
    font-size: 2rem;
    text-transform: uppercase;
}


.rk-archiv-hinweis p {
    margin: 0;
}
.rk-archiv-hinweis {
    margin-bottom: 1.4em;
}

.featured-image img {
    object-fit: contain;
}

header.site-header, article {
    padding: 0 1rem;
}

.featured-image {

    margin-left: -1rem;
    margin-right: -1rem;
}