Upload via GUI (205 Dateien)

This commit is contained in:
2026-11-17 21:15:26 +00:00
parent d1057b513e
commit 320342666d
18 changed files with 1920 additions and 615 deletions
@@ -0,0 +1,58 @@
<?php
/**
* Changelog: Server-Updates als Zeitleiste.
*
* @package Minecraft-Modern-Theme
*/
get_header();
?>
<main id="primary" class="container site-main mm-plain-main">
<div class="mm-changelog-page">
<header class="mm-rules__header">
<h1 class="mm-rules__title"><i class="fas fa-history" aria-hidden="true"></i> <?php esc_html_e( 'Changelog', 'minecraft-modern-theme' ); ?></h1>
<p class="mm-rules__intro"><?php esc_html_e( 'Alle Updates, Neuerungen und Fehlerbehebungen auf einen Blick.', 'minecraft-modern-theme' ); ?></p>
</header>
<?php
mm_changelog_render_filter();
$feed_url = get_post_type_archive_feed_link( 'mm_changelog' );
if ( $feed_url ) :
?>
<p class="mm-changelog-feed">
<a href="<?php echo esc_url( $feed_url ); ?>"><i class="fas fa-rss" aria-hidden="true"></i> <?php esc_html_e( 'Updates als RSS-Feed abonnieren', 'minecraft-modern-theme' ); ?></a>
</p>
<?php endif; ?>
<?php if ( have_posts() ) : ?>
<ol class="mm-changelog">
<?php
while ( have_posts() ) {
the_post();
mm_changelog_render_entry();
}
?>
</ol>
<?php
the_posts_pagination( array(
'mid_size' => 1,
'prev_text' => '<i class="fas fa-chevron-left" aria-hidden="true"></i><span class="screen-reader-text">' . esc_html__( 'Neuere Einträge', 'minecraft-modern-theme' ) . '</span>',
'next_text' => '<span class="screen-reader-text">' . esc_html__( 'Ältere Einträge', 'minecraft-modern-theme' ) . '</span><i class="fas fa-chevron-right" aria-hidden="true"></i>',
) );
?>
<?php else : ?>
<p><?php esc_html_e( 'Noch keine Einträge vorhanden.', 'minecraft-modern-theme' ); ?></p>
<?php endif; ?>
</div>
</main>
<?php get_footer(); ?>
@@ -0,0 +1,49 @@
<?php
/**
* Event-Kalender: kommende und vergangene Events.
*
* @package Minecraft-Modern-Theme
*/
get_header();
$upcoming = mm_events_query( true );
$past = mm_events_query( false, 6 );
?>
<main id="primary" class="container site-main mm-plain-main">
<div class="mm-events-page">
<header class="mm-rules__header">
<h1 class="mm-rules__title"><i class="fas fa-calendar-alt" aria-hidden="true"></i> <?php esc_html_e( 'Events', 'minecraft-modern-theme' ); ?></h1>
<p class="mm-rules__intro"><?php esc_html_e( 'Turniere, Aktionen und geplante Wartungen auf einen Blick.', 'minecraft-modern-theme' ); ?></p>
</header>
<h2 class="mm-events__heading"><?php esc_html_e( 'Kommende Events', 'minecraft-modern-theme' ); ?></h2>
<?php if ( $upcoming->have_posts() ) : ?>
<div class="mm-events">
<?php
foreach ( $upcoming->posts as $p ) {
echo mm_event_render_card( $p->ID ); // phpcs:ignore WordPress.Security.EscapeOutput -- in mm_event_render_card() escaped.
}
?>
</div>
<?php else : ?>
<p class="mm-events-empty"><?php esc_html_e( 'Aktuell sind keine Events geplant. Schau bald wieder vorbei!', 'minecraft-modern-theme' ); ?></p>
<?php endif; ?>
<?php if ( $past->have_posts() ) : ?>
<h2 class="mm-events__heading mm-events__heading--past"><?php esc_html_e( 'Vergangene Events', 'minecraft-modern-theme' ); ?></h2>
<div class="mm-events">
<?php
foreach ( $past->posts as $p ) {
echo mm_event_render_card( $p->ID, true ); // phpcs:ignore WordPress.Security.EscapeOutput -- in mm_event_render_card() escaped.
}
?>
</div>
<?php endif; ?>
</div>
</main>
<?php get_footer(); ?>
+120
View File
@@ -0,0 +1,120 @@
<?php
/**
* Regelwerk: alle Regeln nach Kategorien, mit Inhaltsverzeichnis.
*
* @package Minecraft-Modern-Theme
*/
get_header();
$mm_groups = mm_rules_get_groups();
$mm_intro = get_theme_mod( 'mm_rules_intro', '' );
$mm_modified = mm_rules_last_modified();
// "tabs": immer nur eine Kategorie sichtbar, Regeln zum Aufklappen.
// "list": alles untereinander (frühere Darstellung).
$mm_tabs = 'list' !== get_theme_mod( 'mm_rules_layout', 'tabs' );
?>
<main id="primary" class="container site-main mm-plain-main">
<div class="mm-rules" id="mm-rules"<?php echo $mm_tabs ? ' data-mm-rules-tabs' : ''; ?>>
<?php if ( $mm_tabs ) : ?>
<?php // Sofort markieren, dass JavaScript läuft: so wird ohne Aufblitzen eingeklappt, und ohne JavaScript bleibt alles lesbar. ?>
<script>document.getElementById('mm-rules').classList.add('mm-rules--js');</script>
<?php endif; ?>
<header class="mm-rules__header">
<h1 class="mm-rules__title"><i class="fas fa-shield-alt" aria-hidden="true"></i> <?php esc_html_e( 'Regelwerk', 'minecraft-modern-theme' ); ?></h1>
<?php if ( $mm_intro ) : ?>
<p class="mm-rules__intro"><?php echo nl2br( esc_html( $mm_intro ) ); ?></p>
<?php endif; ?>
<?php if ( $mm_modified ) : ?>
<p class="mm-rules__stand">
<?php
/* translators: %s: date of the last change */
echo esc_html( sprintf( __( 'Stand: %s', 'minecraft-modern-theme' ), $mm_modified ) );
?>
</p>
<?php endif; ?>
</header>
<?php if ( empty( $mm_groups ) ) : ?>
<p><?php esc_html_e( 'Es wurden noch keine Regeln veröffentlicht.', 'minecraft-modern-theme' ); ?></p>
<?php else : ?>
<div class="mm-rules__layout">
<nav class="mm-rules__toc" aria-label="<?php esc_attr_e( 'Inhaltsverzeichnis', 'minecraft-modern-theme' ); ?>">
<h2 class="mm-rules__toc-title"><?php esc_html_e( 'Inhalt', 'minecraft-modern-theme' ); ?></h2>
<ol>
<?php foreach ( $mm_groups as $mm_i => $mm_group ) : ?>
<li>
<a href="#<?php echo esc_attr( $mm_group['id'] ); ?>" data-mm-rules-tab="<?php echo esc_attr( $mm_group['id'] ); ?>"<?php echo ( $mm_tabs && 0 === $mm_i ) ? ' aria-current="true"' : ''; ?>>
<span class="mm-rules__toc-no">§<?php echo (int) ( $mm_i + 1 ); ?></span>
<span class="mm-rules__toc-name"><?php echo esc_html( $mm_group['name'] ); ?></span>
<span class="mm-rules__toc-count"><?php echo (int) count( $mm_group['rules'] ); ?></span>
</a>
</li>
<?php endforeach; ?>
</ol>
</nav>
<div class="mm-rules__content">
<?php foreach ( $mm_groups as $mm_i => $mm_group ) : ?>
<section class="mm-rules__group<?php echo 0 === $mm_i ? ' is-active' : ''; ?>" id="<?php echo esc_attr( $mm_group['id'] ); ?>">
<div class="mm-rules__group-head">
<h2 class="mm-rules__group-title">
<span class="mm-rules__no">§<?php echo (int) ( $mm_i + 1 ); ?></span>
<?php echo esc_html( $mm_group['name'] ); ?>
</h2>
<?php if ( $mm_tabs ) : ?>
<button type="button" class="mm-rules__expand-all" data-mm-rules-expand
data-open="<?php esc_attr_e( 'Alle aufklappen', 'minecraft-modern-theme' ); ?>"
data-close="<?php esc_attr_e( 'Alle zuklappen', 'minecraft-modern-theme' ); ?>"><?php esc_html_e( 'Alle aufklappen', 'minecraft-modern-theme' ); ?></button>
<?php endif; ?>
</div>
<?php if ( $mm_group['description'] ) : ?>
<p class="mm-rules__group-desc"><?php echo esc_html( $mm_group['description'] ); ?></p>
<?php endif; ?>
<?php foreach ( $mm_group['rules'] as $mm_j => $mm_rule ) :
$mm_no = ( $mm_i + 1 ) . '.' . ( $mm_j + 1 );
$mm_anchor = 'regel-' . ( $mm_i + 1 ) . '-' . ( $mm_j + 1 );
?>
<article class="mm-rules__rule" id="<?php echo esc_attr( $mm_anchor ); ?>">
<div class="mm-rules__rule-head">
<h3 class="mm-rules__rule-title">
<?php if ( $mm_tabs ) : ?>
<button type="button" class="mm-rules__toggle" aria-expanded="false" aria-controls="<?php echo esc_attr( $mm_anchor ); ?>-text">
<span class="mm-rules__rule-no">§<?php echo esc_html( $mm_no ); ?></span>
<span class="mm-rules__rule-name"><?php echo esc_html( $mm_rule->post_title ); ?></span>
<i class="fas fa-chevron-down mm-rules__chevron" aria-hidden="true"></i>
</button>
<?php else : ?>
<span class="mm-rules__rule-no">§<?php echo esc_html( $mm_no ); ?></span>
<?php echo esc_html( $mm_rule->post_title ); ?>
<?php endif; ?>
</h3>
<a class="mm-rules__anchor" href="#<?php echo esc_attr( $mm_anchor ); ?>"
aria-label="<?php
/* translators: %s: rule number */
echo esc_attr( sprintf( __( 'Direktlink zu Regel %s', 'minecraft-modern-theme' ), $mm_no ) ); ?>"><i class="fas fa-link" aria-hidden="true"></i></a>
</div>
<div class="mm-rules__rule-text" id="<?php echo esc_attr( $mm_anchor ); ?>-text">
<?php echo apply_filters( 'the_content', $mm_rule->post_content ); // phpcs:ignore WordPress.Security.EscapeOutput ?>
</div>
</article>
<?php endforeach; ?>
</section>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
</div>
</main>
<?php get_footer(); ?>
+4 -6
View File
@@ -26,12 +26,10 @@
$banner_url = $banner_id ? wp_get_attachment_image_url( $banner_id, 'medium_large' ) : false;
// UUID hat Vorrang – Minecraft Avatar via visage.surgeplay.com
if ( $uuid ) {
$avatar_url = 'https://visage.surgeplay.com/bust/' . esc_attr( $uuid ) . '.png';
} elseif ( $img ) {
$avatar_url = $img;
} else {
$avatar_url = false;
// Das Bild wird lokal zwischengespeichert (Datenschutz, siehe inc/privacy-proxy.php).
$avatar_url = $uuid ? mm_proxy_url( 'bust', $uuid ) : '';
if ( ! $avatar_url ) {
$avatar_url = $img ? $img : false;
}
$use_placeholder = ! $avatar_url;
$initials = mb_strtoupper( mb_substr( get_the_title(), 0, 1 ) );
+73 -8
View File
@@ -201,7 +201,8 @@
if ( ! $thumb && $url && $type === 'youtube' ) {
if ( preg_match( '/(?:youtube\.com\/(?:watch\?v=|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/', $url, $m ) ) {
$thumb = 'https://img.youtube.com/vi/' . $m[1] . '/maxresdefault.jpg';
// Vorschaubild lokal zwischenspeichern (Datenschutz, siehe inc/privacy-proxy.php)
$thumb = mm_proxy_url( 'ytthumb', $m[1] );
}
}
@@ -277,7 +278,54 @@
</div>
</div>
<script src="https://www.youtube.com/iframe_api"></script>
<script>
/*
* Datenschutz: Erst nach einem Klick auf "Video laden" (oder mit Marketing-Einwilligung
* im Cookie-Banner) wird eine Verbindung zu YouTube, Vimeo oder Twitch aufgebaut.
*/
function mmMarketingOk() {
try {
var m = document.cookie.match(/(?:^|; )mm_cookie_consent=([^;]*)/);
var c = m ? JSON.parse(decodeURIComponent(m[1])) : null;
return !!(c && c.marketing);
} catch (e) { return false; }
}
var mmAllowed = {};
function mmProviderFor(url) {
if (/youtube\.com|youtube-nocookie\.com|youtu\.be/i.test(url)) return 'YouTube';
if (/vimeo\.com/i.test(url)) return 'Vimeo';
if (/twitch\.tv/i.test(url)) return 'Twitch';
if (/kick\.com/i.test(url)) return 'Kick';
return '';
}
/** Ruft go() auf, sobald der Besucher zugestimmt hat; zeigt sonst den Hinweis in box. */
function mmConsentGate(box, provider, go) {
if (!provider || mmAllowed[provider] || mmMarketingOk()) { go(); return; }
box.style.display = 'block';
box.innerHTML = '';
var ph = document.createElement('div');
ph.className = 'mmc-placeholder';
ph.style.height = '100%';
ph.style.marginBottom = '0';
var p = document.createElement('p');
p.textContent = 'Zum Abspielen wird eine Verbindung zu ' + provider + ' aufgebaut. Dabei wird deine IP-Adresse an ' + provider + ' übertragen.';
var b = document.createElement('button');
b.type = 'button';
b.className = 'mmc-ph-btn';
b.textContent = 'Video laden';
b.addEventListener('click', function () { mmAllowed[provider] = true; box.innerHTML = ''; go(); });
ph.appendChild(p);
ph.appendChild(b);
box.appendChild(ph);
}
function mmLoadYtApi() {
if (document.getElementById('mm-yt-api')) return;
var s = document.createElement('script');
s.id = 'mm-yt-api';
s.src = 'https://www.youtube.com/iframe_api';
document.head.appendChild(s);
}
</script>
<script>
var ytPlayer = null;
var ytPlayerReady = false;
@@ -289,6 +337,7 @@ function onYouTubeIframeAPIReady() {
ytPlayer = new YT.Player('yt-player', {
height: '100%',
width: '100%',
host: 'https://www.youtube-nocookie.com',
playerVars: { autoplay: 1, rel: 0, modestbranding: 1 },
events: {
onReady: function(e) {
@@ -340,13 +389,21 @@ document.addEventListener('DOMContentLoaded', function() {
if (ytId) {
otContainer.style.display = 'none';
otContainer.innerHTML = '';
ytContainer.style.display = 'block';
if (ytPlayerReady && ytPlayer) ytPlayer.loadVideoById(ytId); else pendingVideoId = ytId;
ytContainer.style.display = 'none';
// Erst nach Zustimmung wird das YouTube-Skript geladen.
mmConsentGate(otContainer, 'YouTube', function () {
otContainer.style.display = 'none';
ytContainer.style.display = 'block';
mmLoadYtApi();
if (ytPlayerReady && ytPlayer) ytPlayer.loadVideoById(ytId); else pendingVideoId = ytId;
});
} else {
ytContainer.style.display = 'none';
if (ytPlayerReady && ytPlayer) ytPlayer.stopVideo();
otContainer.style.display = 'block';
otContainer.innerHTML = buildOtherEmbed(url, title);
mmConsentGate(otContainer, mmProviderFor(url), function () {
otContainer.innerHTML = buildOtherEmbed(url, title);
});
}
}
@@ -396,7 +453,7 @@ document.addEventListener('DOMContentLoaded', function() {
<div class="livestream-lightbox-box">
<div class="livestream-lightbox-head">
<h3 class="livestream-lightbox-title"></h3>
<button class="livestream-lightbox-close" aria-label="Schließen"><i class="fas fa-times"></i></button>
<button class="livestream-lightbox-close" aria-label="<?php esc_attr_e( 'Schließen', 'minecraft-modern-theme' ); ?>"><i class="fas fa-times" aria-hidden="true"></i></button>
</div>
<div class="livestream-lightbox-player"></div>
<div class="livestream-lightbox-meta"></div>
@@ -412,7 +469,14 @@ document.addEventListener('DOMContentLoaded', function() {
function openLivestreamLightbox(embedUrl, title, profileUrl, platform) {
lsTitle.textContent = title || 'Livestream';
// Wir nutzen ein sauberes Iframe für das Popup
lsPlayer.innerHTML = '<iframe src="' + embedUrl + '" allow="autoplay; encrypted-media" allowfullscreen></iframe>';
lsPlayer.innerHTML = '';
mmConsentGate(lsPlayer, mmProviderFor(embedUrl), function () {
var f = document.createElement('iframe');
f.src = embedUrl;
f.setAttribute('allow', 'autoplay; encrypted-media');
f.setAttribute('allowfullscreen', '');
lsPlayer.appendChild(f);
});
var icon = platform === 'youtube' ? 'fab fa-youtube' : (platform === 'twitch' ? 'fab fa-twitch' : 'fas fa-play');
lsMeta.innerHTML = profileUrl ? '<a href="' + profileUrl + '" target="_blank" rel="noopener"><i class="' + icon + '"></i> Zum Kanal</a>' : '';
@@ -444,7 +508,8 @@ document.addEventListener('DOMContentLoaded', function() {
e.preventDefault();
var iframe = card.querySelector('iframe');
var embedUrl = iframe ? iframe.src : '';
// Ist der Player vom Cookie-Banner gesperrt, steckt die Adresse in data-mm-orig-src.
var embedUrl = iframe ? (iframe.dataset.mmOrigSrc || iframe.src) : '';
var title = card.querySelector('h3') ? card.querySelector('h3').textContent : 'Livestream';
var link = card.querySelector('.btn-primary') ? card.querySelector('.btn-primary').href : '';
+70
View File
@@ -0,0 +1,70 @@
/* =============================================================
BARRIEREFREIHEIT
Wird nach style.css geladen. Enthaelt nur Ergaenzungen, die
bestehende Optik fuer Mausnutzer nicht veraendern.
============================================================= */
/* --- Skip-Link: erst bei Tastaturfokus sichtbar --- */
.skip-link.screen-reader-text:focus {
clip: auto;
clip-path: none;
height: auto;
width: auto;
margin: 0;
overflow: visible;
position: fixed;
top: 12px;
left: 12px;
z-index: 100000;
padding: 12px 20px;
border-radius: 6px;
background: var(--surface-color, #1e2029);
color: var(--text-color, #e4e4e4);
font-weight: 700;
text-decoration: none;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
outline: 3px solid var(--primary-accent, #00d4ff);
outline-offset: 2px;
}
#mm-content-start:focus {
outline: none;
}
/* --- Sichtbarer Fokusrahmen nur fuer Tastaturnutzer ---
:focus-visible greift nicht bei Mausklicks; das bisherige Aussehen
beim Klicken bleibt also gleich. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
outline: 3px solid var(--primary-accent, #00d4ff) !important;
outline-offset: 2px;
}
/* Dropdowns auch per Tastatur oeffnen (bisher nur :hover).
Nur Desktop und nur die Kopfzeilen-Navigation; das Sidebar-Panel und das
mobile Menue klappen per Klick auf. */
@media (min-width: 993px) {
.site-header .main-navigation li:focus-within > .sub-menu {
opacity: 1;
visibility: visible;
transform: translateY(10px);
}
}
/* --- Reduzierte Bewegung ---
Respektiert die Systemeinstellung "Bewegung reduzieren". */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
+200
View File
@@ -0,0 +1,200 @@
/* =============================================================
BEWERBUNGSFORMULAR
============================================================= */
.bewerbung-container {
background: var(--card-bg);
border-radius: 8px;
border: 1px solid var(--border-color);
padding: 50px;
margin: 40px 0 30px;
}
.bewerbung-container .page-header { text-align: center; margin-bottom: 40px; }
.bewerbung-container .page-title { font-size: 2.5rem; color: var(--primary-accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.bewerbung-container .page-title i { font-size: 2rem; }
.bewerbung-container .page-description { font-size: 1.1rem; color: var(--text-muted); margin: 0; }
/* Deaktiviert */
.bewerbung-disabled { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.bewerbung-disabled i { font-size: 3rem; opacity: 0.25; display: block; margin-bottom: 16px; }
/* Formular */
.bewerbung-form { max-width: 760px; margin: 0 auto; }
.bew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.bew-field--small { grid-column: span 1; }
.bew-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.bew-grid .bew-field { margin-bottom: 0; }
.bew-label { font-size: 0.9rem; font-weight: 700; color: var(--text-color); display: flex; align-items: center; gap: 8px; }
.bew-label i { color: var(--primary-accent); font-size: 0.85rem; width: 16px; text-align: center; }
.bew-required { color: var(--primary-accent); font-weight: 700; }
.bew-input,
.bew-textarea {
background: rgba(255,255,255,0.05);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 11px 14px;
color: var(--text-color);
font-family: inherit;
font-size: 0.9rem;
transition: border-color 0.2s ease, background 0.2s ease;
width: 100%;
box-sizing: border-box;
}
.bew-input:focus, .bew-textarea:focus {
outline: none;
border-color: var(--primary-accent);
background: rgba(0,212,255,0.04);
}
.bew-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.bew-hint { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
/* Minecraft Avatar neben Input */
.bew-mc-wrap { display: flex; gap: 10px; align-items: center; }
.bew-mc-wrap .bew-input { flex: 1; }
.bew-mc-avatar { width: 44px; height: 44px; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.bew-mc-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.bew-mc-avatar i { color: var(--text-muted); font-size: 1.1rem; }
/* Zeichenzähler */
.bew-char-count { font-size: 0.75rem; color: var(--text-muted); text-align: right; }
/* Erfolg */
.bewerbung-success { display: flex; align-items: flex-start; gap: 16px; background: rgba(70,180,80,0.1); border: 1px solid rgba(70,180,80,0.35); border-radius: 10px; padding: 24px; color: var(--text-color); margin-bottom: 20px; }
.bewerbung-success i { font-size: 2rem; color: #46b450; flex-shrink: 0; margin-top: 2px; }
.bewerbung-success p { margin: 0; font-size: 1rem; line-height: 1.6; }
/* Fehler */
.bewerbung-error { display: flex; align-items: flex-start; gap: 12px; background: rgba(220,50,50,0.1); border: 1px solid rgba(220,50,50,0.35); border-radius: 8px; padding: 14px 16px; color: var(--text-color); margin-bottom: 20px; }
.bewerbung-error i { color: #dc3232; flex-shrink: 0; margin-top: 2px; }
/* Submit */
.bew-submit-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
.bew-submit-btn {
display: inline-flex; align-items: center; gap: 10px;
padding: 14px 36px;
background: var(--primary-accent); color: #fff;
border: none; border-radius: 8px;
font-family: inherit; font-size: 1rem; font-weight: 700;
cursor: pointer;
transition: opacity 0.2s, transform 0.15s;
}
.bew-submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.bew-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.bew-submit-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.bew-submit-hint i { color: var(--primary-accent); }
/* Light Mode */
html.light-mode .bewerbung-container { background: #fff; }
html.light-mode .bew-input,
html.light-mode .bew-textarea { background: #f8f8f8; }
html.light-mode .bew-input:focus,
html.light-mode .bew-textarea:focus { background: #fff; }
html.light-mode .bew-mc-avatar { background: #f0f0f0; }
/* Responsive */
@media (max-width: 700px) {
.bewerbung-container { padding: 28px 18px; }
.bew-grid { grid-template-columns: 1fr; }
.bewerbung-container .page-title { font-size: 1.8rem; }
}
/* ── Bewerbungs-Positionen ── */
.bew-position-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 12px;
margin-top: 8px;
}
.bew-position-card {
cursor: pointer;
display: block;
}
.bew-position-card input[type="radio"] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.bew-position-label {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 16px 12px;
border: 2px solid var(--border-color, #30363d);
border-radius: 10px;
background: var(--card-bg, #161b22);
color: var(--text-color, #c9d1d9);
font-weight: 600;
font-size: 14px;
text-align: center;
transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.bew-position-label i {
font-size: 22px;
color: var(--primary-accent, #00d4e8);
transition: transform 0.2s;
}
.bew-position-card:hover .bew-position-label {
border-color: var(--primary-accent, #00d4e8);
background: rgba(0, 212, 232, 0.07);
}
.bew-position-card input[type="radio"]:checked + .bew-position-label {
border-color: var(--primary-accent, #00d4e8);
background: rgba(0, 212, 232, 0.12);
color: var(--primary-accent, #00d4e8);
box-shadow: 0 0 0 3px rgba(0, 212, 232, 0.18), 0 4px 16px rgba(0, 212, 232, 0.15);
}
.bew-position-card input[type="radio"]:checked + .bew-position-label i {
transform: scale(1.2);
}
/* Light Mode */
html.light-mode .bew-position-label {
background: #f4f4f4;
border-color: #ddd;
color: #333;
}
html.light-mode .bew-position-card input[type="radio"]:checked + .bew-position-label {
background: rgba(0, 212, 232, 0.1);
color: #007a8c;
}
/* Responsive */
@media (max-width: 500px) {
.bew-position-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* ── Honeypot (Spam-Schutz): für Menschen unsichtbar ── */
.bew-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* ── Status-Code nach dem Absenden ── */
.bewerbung-success > div { flex: 1; }
.bew-code-wrap { margin-top: 12px; line-height: 1.8; }
.bew-code-wrap code { font-size: 1.15rem; letter-spacing: 2px; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,0.3); color: var(--primary-accent); user-select: all; }
.bew-code-copy { margin-left: 8px; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border-color); background: transparent; color: var(--text-color); cursor: pointer; font-size: 0.85rem; }
.bew-code-copy:hover { border-color: var(--primary-accent); color: var(--primary-accent); }
/* ── Status-Abfrage ── */
.bew-status { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.bew-status-title { font-size: 1.2rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--text-color); }
.bew-status-form { display: flex; gap: 12px; flex-wrap: wrap; }
.bew-status-form .bew-input { flex: 1; min-width: 200px; text-transform: uppercase; letter-spacing: 2px; }
.bew-status-form .bew-status-btn { width: auto; margin: 0; padding: 12px 26px; }
.bew-status-result { margin-top: 16px; min-height: 1.5em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-muted); }
.bew-status-badge { color: #fff; padding: 4px 14px; border-radius: 14px; font-weight: 700; font-size: 0.9rem; }
html.light-mode .bew-code-wrap code { background: rgba(0,0,0,0.06); }
+620
View File
@@ -0,0 +1,620 @@
/* =============================================================
COMMUNITY-BAUSTEINE
Server-Status, Discord-Karte, Vote-Liste, Startseiten-Sektionen,
Regelwerk und Changelog. Nutzt die Variablen aus style.css und
funktioniert dadurch in Dark- und Light-Mode.
============================================================= */
.mm-server-status-hint {
padding: 12px 16px;
border: 1px dashed var(--border-color);
border-radius: 8px;
color: var(--text-muted);
font-size: 0.9rem;
}
/* ── Server-Status ─────────────────────────────────────────── */
.mm-server-status {
display: grid;
gap: 16px;
padding: 18px;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 14px;
color: var(--text-color);
/* Zustandsfarbe: steuert Pille, Punkt und Balken gemeinsam */
--mm-state: var(--text-muted);
--mm-state-soft: rgba(160, 160, 160, 0.12);
}
.mm-server-status[data-state="online"] { --mm-state: #3ddc84; --mm-state-soft: rgba(61, 220, 132, 0.14); }
.mm-server-status[data-state="offline"] { --mm-state: #ff6b6b; --mm-state-soft: rgba(255, 107, 107, 0.14); }
html.light-mode .mm-server-status[data-state="online"] { --mm-state: #15803d; --mm-state-soft: rgba(21, 128, 61, 0.12); }
html.light-mode .mm-server-status[data-state="offline"] { --mm-state: #b91c1c; --mm-state-soft: rgba(185, 28, 28, 0.10); }
/* In einer Sidebar/einem Footer sitzt die Karte schon in einem Widget-Rahmen –
ein zweiter Rahmen darin wirkt verschachtelt. */
.widget .mm-server-status,
.widget .mm-discord-card {
background: var(--surface-color);
}
.mm-server-status__top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-width: 0;
}
.mm-server-status__pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 12px 5px 10px;
border-radius: 999px;
background: var(--mm-state-soft);
color: var(--mm-state);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
white-space: nowrap;
}
.mm-server-status__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--mm-state);
flex: none;
}
.mm-server-status[data-state="online"] .mm-server-status__dot {
animation: mm-status-pulse 2.4s ease-out infinite;
}
@keyframes mm-status-pulse {
0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.mm-server-status__version {
padding: 4px 10px;
border-radius: 6px;
border: 1px solid var(--border-color);
color: var(--text-muted);
font-size: 0.78rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.mm-server-status__version[hidden],
.mm-server-status__players[hidden] { display: none; }
.mm-server-status__players { display: grid; gap: 10px; }
.mm-server-status__count {
margin: 0;
display: flex;
align-items: baseline;
gap: 8px;
line-height: 1;
}
.mm-server-status__count strong {
font-size: 2.1rem;
font-weight: 800;
color: var(--text-color);
font-variant-numeric: tabular-nums;
}
.mm-server-status__of { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.mm-server-status__meter {
height: 6px;
border-radius: 999px;
background: var(--mm-state-soft);
overflow: hidden;
}
.mm-server-status__meter span {
display: block;
height: 100%;
border-radius: inherit;
background: var(--mm-state);
transition: width 0.6s ease;
}
.mm-server-status__ip {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
padding: 11px 14px;
border: 1px solid var(--border-color);
border-radius: 10px;
background: var(--bg-color);
color: var(--text-color);
font: inherit;
font-size: 0.92rem;
font-weight: 700;
text-align: left;
cursor: pointer;
transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.mm-server-status__ip-text { overflow-wrap: anywhere; min-width: 0; }
.mm-server-status__ip i { color: var(--primary-accent); flex: none; }
.mm-server-status__ip:hover { border-color: var(--primary-accent); color: var(--primary-accent); }
.mm-server-status__ip.is-copied {
border-color: var(--primary-accent);
background: var(--primary-accent);
color: #14151a;
}
.mm-server-status__ip.is-copied i { color: inherit; }
/* Breite Variante (Startseite): alles in einer Zeile */
.mm-server-status--bar {
grid-template-columns: auto minmax(180px, 1fr) auto;
align-items: center;
gap: 16px 28px;
padding: 16px 22px;
}
.mm-server-status--bar .mm-server-status__top { justify-content: flex-start; }
.mm-server-status--bar .mm-server-status__players { grid-template-columns: auto minmax(80px, 1fr); align-items: center; gap: 16px; }
.mm-server-status--bar .mm-server-status__count strong { font-size: 1.6rem; }
.mm-server-status--bar .mm-server-status__ip { width: auto; }
/* ── Discord-Karte ─────────────────────────────────────────── */
.mm-discord-card {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 16px;
padding: 18px 20px;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
}
.mm-discord-card__icon {
width: 52px;
height: 52px;
border-radius: 14px;
background: #5865f2;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
flex: none;
}
.mm-discord-card__body { flex: 1; min-width: 140px; }
.mm-discord-card__name { margin: 0; font-weight: 700; color: var(--text-color); overflow-wrap: anywhere; }
.mm-discord-card__online { margin: 4px 0 0; color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.mm-discord-card__dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; flex: none; }
.mm-discord-card__join {
flex: 1 1 auto;
text-align: center;
padding: 10px 22px;
border-radius: 8px;
background: #5865f2;
color: #fff;
font-weight: 700;
text-decoration: none;
transition: background-color 0.2s ease;
}
.mm-discord-card__join:hover { background: #4752c4; color: #fff; }
/* ── Vote-Liste ────────────────────────────────────────────── */
.mm-vote__text { margin: 0 0 12px; color: var(--text-muted); }
.mm-vote__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: mm-vote; }
.mm-vote__list li { counter-increment: mm-vote; }
.mm-vote__link {
display: flex;
align-items: center;
gap: 14px;
padding: 12px 16px;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-color);
text-decoration: none;
transition: border-color 0.2s ease, transform 0.2s ease;
}
.mm-vote__link::before {
content: counter(mm-vote);
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--surface-color);
border: 1px solid var(--border-color);
color: var(--primary-accent);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
font-weight: 700;
flex: none;
}
.mm-vote__link:hover { border-color: var(--primary-accent); transform: translateX(4px); color: var(--text-color); }
.mm-vote__name { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.mm-vote__cta { color: var(--primary-accent); font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
/* ── Startseiten-Sektionen ─────────────────────────────────── */
.mm-home-section { padding: 50px 0 0; }
.mm-home-section--status { padding-top: 30px; }
.mm-home-section__head {
display: flex;
align-items: baseline;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px 20px;
margin-bottom: 24px;
}
.mm-home-section__title {
margin: 0;
font-size: 1.7rem;
text-transform: uppercase;
letter-spacing: 1.5px;
padding-left: 14px;
border-left: 4px solid var(--primary-accent);
}
.mm-home-section__more { font-size: 0.95rem; }
.mm-features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mm-feature {
display: block;
padding: 28px 24px;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
color: var(--text-color);
text-decoration: none;
font-weight: 400;
transition: transform 0.25s ease, border-color 0.25s ease;
}
a.mm-feature:hover { transform: translateY(-4px); border-color: var(--primary-accent); color: var(--text-color); }
.mm-feature__icon {
width: 52px;
height: 52px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
color: var(--primary-accent);
background: var(--surface-color);
border: 1px solid var(--border-color);
margin-bottom: 16px;
}
.mm-feature__title { margin: 0 0 8px; font-size: 1.15rem; }
.mm-feature__text { margin: 0; color: var(--text-muted); line-height: 1.6; }
.mm-home-team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mm-home-team__member {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 22px 14px;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
text-align: center;
}
.mm-home-team__avatar {
width: 96px;
height: 96px;
border-radius: 50%;
object-fit: cover;
background: var(--surface-color);
border: 2px solid var(--border-color);
}
.mm-home-team__avatar--placeholder {
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
font-weight: 700;
color: var(--primary-accent);
}
.mm-home-team__name { font-weight: 700; color: var(--text-color); overflow-wrap: anywhere; }
.mm-home-team__rank {
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--primary-accent);
}
.mm-home-community { display: grid; gap: 24px; align-items: start; }
.mm-home-community--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-home-community__title { margin: 0 0 12px; font-size: 1.1rem; }
/* ── Gemeinsamer Rahmen für Regelwerk und Changelog ────────── */
.mm-rules,
.mm-changelog-page,
.mm-events-page {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 40px;
}
.mm-rules__header { text-align: center; margin-bottom: 36px; }
.mm-rules__title {
margin: 0 0 10px;
font-size: 2.3rem;
color: var(--primary-accent);
text-transform: uppercase;
letter-spacing: 2px;
}
.mm-rules__intro { margin: 0 auto; max-width: 720px; color: var(--text-muted); line-height: 1.7; }
.mm-rules__stand { margin: 12px 0 0; font-size: 0.85rem; color: var(--text-muted); }
/* ── Regelwerk ─────────────────────────────────────────────── */
.mm-rules__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.mm-rules__toc {
position: sticky;
top: 120px;
padding: 20px;
background: var(--surface-color);
border: 1px solid var(--border-color);
border-radius: 10px;
max-height: calc(100vh - 150px);
overflow-y: auto;
}
.mm-rules__toc-title { margin: 0 0 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.mm-rules__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mm-rules__toc a {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 10px;
border-radius: 6px;
border-left: 3px solid transparent;
color: var(--text-color);
font-weight: 600;
text-decoration: none;
}
.mm-rules__toc a:hover { background: var(--card-bg); color: var(--primary-accent); }
.mm-rules__toc a[aria-current="true"] {
background: var(--card-bg);
border-left-color: var(--primary-accent);
color: var(--primary-accent);
}
.mm-rules__toc-no { color: var(--primary-accent); flex: none; }
.mm-rules__toc-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mm-rules__toc-count {
flex: none;
min-width: 24px;
padding: 1px 7px;
border-radius: 999px;
background: var(--bg-color);
color: var(--text-muted);
font-size: 0.75rem;
text-align: center;
}
.mm-rules__group { margin-bottom: 44px; scroll-margin-top: 130px; }
.mm-rules__group:last-child { margin-bottom: 0; }
.mm-rules__group-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px 16px;
margin-bottom: 8px;
padding-bottom: 12px;
border-bottom: 2px solid var(--primary-accent);
}
.mm-rules__group-title { margin: 0; font-size: 1.5rem; }
.mm-rules__no { color: var(--primary-accent); margin-right: 6px; }
.mm-rules__group-desc { margin: 0 0 16px; color: var(--text-muted); }
.mm-rules__expand-all {
padding: 5px 12px;
border: 1px solid var(--border-color);
border-radius: 6px;
background: transparent;
color: var(--text-muted);
font: inherit;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
}
.mm-rules__expand-all:hover { border-color: var(--primary-accent); color: var(--primary-accent); }
.mm-rules__rule { padding: 18px 0; border-bottom: 1px solid var(--border-color); scroll-margin-top: 130px; }
.mm-rules__rule:last-child { border-bottom: 0; }
.mm-rules__rule-head { display: flex; align-items: center; gap: 10px; }
.mm-rules__rule-title { margin: 0; font-size: 1.1rem; flex: 1; min-width: 0; }
.mm-rules__rule-no { color: var(--primary-accent); margin-right: 8px; flex: none; }
.mm-rules__anchor {
flex: none;
padding: 6px;
color: var(--text-muted);
font-size: 0.85rem;
opacity: 0;
transition: opacity 0.2s ease, color 0.2s ease;
}
.mm-rules__rule:hover .mm-rules__anchor,
.mm-rules__anchor:focus-visible { opacity: 1; }
.mm-rules__anchor:hover { color: var(--primary-accent); }
.mm-rules__rule-text { margin-top: 10px; color: var(--text-color); line-height: 1.7; }
.mm-rules__rule-text > :last-child { margin-bottom: 0; }
/* Aufklapp-Schalter (Titelzeile einer Regel) */
.mm-rules__toggle {
display: flex;
align-items: center;
width: 100%;
padding: 0;
border: 0;
background: none;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
}
.mm-rules__rule-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mm-rules__chevron { flex: none; margin-left: 12px; color: var(--text-muted); font-size: 0.8rem; transition: transform 0.25s ease; }
.mm-rules__toggle:hover .mm-rules__rule-name { color: var(--primary-accent); }
.mm-rules__toggle[aria-expanded="true"] .mm-rules__chevron { transform: rotate(180deg); color: var(--primary-accent); }
/* Nur mit JavaScript: eine Kategorie zur Zeit, Regeln eingeklappt.
Ohne JavaScript greift nichts davon und alles bleibt lesbar. */
.mm-rules--js .mm-rules__group { margin-bottom: 0; }
.mm-rules--js .mm-rules__group:not(.is-active) { display: none; }
.mm-rules--js .mm-rules__rule { padding: 14px 0; }
.mm-rules--js .mm-rules__rule:not(.is-open) .mm-rules__rule-text { display: none; }
.mm-rules--js .mm-rules__rule.is-open .mm-rules__rule-text {
padding: 12px 16px;
border-left: 3px solid var(--primary-accent);
background: var(--surface-color);
border-radius: 0 8px 8px 0;
}
.mm-rules--js .mm-rules__rule.is-linked .mm-rules__rule-name { color: var(--primary-accent); }
/* ── Changelog-Zeitleiste ──────────────────────────────────── */
.mm-changelog { list-style: none; margin: 0; padding: 0; position: relative; }
.mm-changelog::before {
content: '';
position: absolute;
left: 19px;
top: 6px;
bottom: 6px;
width: 2px;
background: var(--border-color);
}
.mm-changelog__entry { position: relative; padding: 0 0 26px 60px; }
.mm-changelog__entry:last-child { padding-bottom: 0; }
.mm-changelog__marker {
position: absolute;
left: 0;
top: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--surface-color);
border: 2px solid var(--mm-cl-color, var(--primary-accent));
color: var(--mm-cl-color, var(--primary-accent));
display: flex;
align-items: center;
justify-content: center;
font-size: 0.95rem;
}
.mm-changelog__card {
padding: 18px 22px;
background: var(--surface-color);
border: 1px solid var(--border-color);
border-radius: 10px;
scroll-margin-top: 130px;
}
.mm-changelog--compact .mm-changelog__card { background: var(--card-bg); }
.mm-changelog__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; font-size: 0.85rem; }
.mm-changelog__type {
padding: 2px 10px;
border-radius: 12px;
border: 1px solid var(--mm-cl-color, var(--primary-accent));
color: var(--mm-cl-color, var(--primary-accent));
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 0.75rem;
}
.mm-changelog__version { font-weight: 700; color: var(--text-color); }
.mm-changelog__date { color: var(--text-muted); margin-left: auto; }
.mm-changelog__title { margin: 0 0 8px; font-size: 1.2rem; }
.mm-changelog__content { color: var(--text-color); line-height: 1.7; }
.mm-changelog__content > :last-child { margin-bottom: 0; }
.mm-changelog-page .pagination,
.mm-changelog-page .navigation { margin-top: 30px; }
/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
.mm-rules__layout { grid-template-columns: 1fr; gap: 24px; }
.mm-rules__toc { position: static; max-height: none; }
.mm-rules__anchor { opacity: 1; }
.mm-home-community--two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
.mm-rules,
.mm-changelog-page,
.mm-events-page { padding: 24px 18px; }
.mm-rules__title { font-size: 1.7rem; }
.mm-server-status--bar { grid-template-columns: 1fr; }
.mm-server-status--bar .mm-server-status__top { justify-content: space-between; }
.mm-server-status--bar .mm-server-status__ip { width: 100%; }
.mm-changelog__entry { padding-left: 52px; }
.mm-changelog__date { margin-left: 0; width: 100%; }
.mm-home-section__title { font-size: 1.35rem; }
}
/* ===== Event-Kalender ===== */
.mm-events { display: grid; gap: 14px; margin: 0 0 28px; }
.mm-events__heading { font-size: 1.25rem; margin: 28px 0 14px; }
.mm-events__heading--past { opacity: .75; }
.mm-events-empty { color: var(--text-muted); }
.mm-event {
display: flex;
gap: 18px;
align-items: flex-start;
padding: 18px 22px;
background: var(--surface-color);
border: 1px solid var(--border-color);
border-radius: 10px;
}
.mm-event--live { border-color: var(--primary-accent); box-shadow: 0 0 0 1px var(--primary-accent) inset; }
.mm-event--past { opacity: .6; }
.mm-event__date {
flex: none;
width: 62px;
padding: 8px 0;
text-align: center;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--card-bg);
line-height: 1.1;
}
.mm-event__day { display: block; font-size: 1.6rem; font-weight: 700; color: var(--primary-accent); }
.mm-event__month { display: block; margin-top: 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.mm-event__body { min-width: 0; }
.mm-event__title { margin: 0 0 6px; font-size: 1.1rem; }
.mm-event__title a { color: inherit; text-decoration: none; }
.mm-event__title a:hover { color: var(--primary-accent); }
.mm-event__badge {
display: inline-block;
margin-left: 8px;
padding: 2px 9px;
border-radius: 999px;
background: var(--primary-accent);
color: #001018;
font-size: .72rem;
font-weight: 700;
vertical-align: middle;
}
.mm-event__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; font-size: .88rem; color: var(--text-muted); }
.mm-event__meta i { margin-right: 4px; color: var(--primary-accent); }
.mm-event__text { margin: 0 0 8px; }
.mm-event__link { font-size: .9rem; font-weight: 600; color: var(--primary-accent); text-decoration: none; }
.mm-event__link:hover { text-decoration: underline; }
@media (max-width: 600px) {
.mm-event { padding: 14px 16px; gap: 12px; }
.mm-event__date { width: 54px; }
}
/* ===== Changelog: Filter und Feed ===== */
.mm-changelog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.mm-changelog-filter__item {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border: 1px solid var(--border-color);
border-radius: 999px;
background: var(--surface-color);
color: var(--text-color);
font-size: .88rem;
text-decoration: none;
}
.mm-changelog-filter__item i { color: var(--mm-cl-color, var(--primary-accent)); }
.mm-changelog-filter__item:hover { border-color: var(--mm-cl-color, var(--primary-accent)); }
.mm-changelog-filter__item.is-active { border-color: var(--mm-cl-color, var(--primary-accent)); background: var(--card-bg); font-weight: 700; }
.mm-changelog-filter__n { color: var(--text-muted); font-size: .78rem; }
.mm-changelog-feed { margin: 0 0 22px; font-size: .85rem; }
.mm-changelog-feed a { color: var(--text-muted); text-decoration: none; }
.mm-changelog-feed a:hover { color: var(--primary-accent); }
.mm-changelog-feed i { margin-right: 4px; }
@@ -0,0 +1,72 @@
/* =============================================================
EDITOR-STYLES
Laesst den Block-Editor so aussehen wie das Frontend (dunkler
Hintergrund, gleiche Schrift und Akzentfarbe). WordPress setzt
automatisch .editor-styles-wrapper vor jede Regel.
============================================================= */
@import url("../fonts/raleway/font.css");
:root {
--bg-color: #14151a;
--surface-color: #1e2029;
--card-bg: #252830;
--text-color: #e4e4e4;
--text-muted: #a0a0a0;
--primary-accent: #00d4ff;
--border-color: #333;
}
body {
background-color: var(--card-bg);
color: var(--text-color);
font-family: 'Raleway', sans-serif;
font-size: 16px;
line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.3;
color: var(--text-color);
}
a {
color: var(--primary-accent);
font-weight: 600;
text-decoration: none;
}
blockquote,
.wp-block-quote {
border-left: 4px solid var(--primary-accent);
padding-left: 20px;
color: var(--text-muted);
}
code,
pre,
.wp-block-code {
background: var(--surface-color);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-color);
}
hr,
.wp-block-separator {
border-color: var(--border-color);
}
table,
.wp-block-table td,
.wp-block-table th {
border-color: var(--border-color);
}
.wp-block-button__link {
background-color: var(--primary-accent);
color: #14151a;
border-radius: 6px;
font-weight: 700;
}
@@ -0,0 +1,65 @@
/* Backend: Regelwerk → Reihenfolge */
.mm-rules-order__bar {
display: flex;
align-items: center;
gap: 14px;
margin: 18px 0;
position: sticky;
top: 32px;
z-index: 5;
padding: 10px 0;
background: #f0f0f1;
}
.mm-rules-order__status { color: #646970; }
.mm-rules-order__status.is-ok { color: #008a20; }
.mm-rules-order__status.is-error { color: #d63638; }
.mm-rules-order__groups,
.mm-rules-order__rules { list-style: none; margin: 0; padding: 0; }
.mm-rules-order__groups { max-width: 820px; }
.mm-rules-order__group {
margin: 0 0 14px;
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
}
.mm-rules-order__group-head {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
background: #f6f7f7;
border-bottom: 1px solid #c3c4c7;
font-size: 14px;
}
.mm-rules-order__group-head em { color: #646970; }
.mm-rules-order__rules { padding: 8px; min-height: 12px; }
.mm-rules-order__rule {
display: flex;
align-items: center;
gap: 10px;
margin: 0 0 6px;
padding: 9px 12px;
background: #fff;
border: 1px solid #dcdcde;
border-radius: 3px;
}
.mm-rules-order__rule:last-child { margin-bottom: 0; }
.mm-rules-order__rule em { color: #646970; }
.mm-rules-order__handle { cursor: grab; color: #8c8f94; flex: none; }
.mm-rules-order__handle:active { cursor: grabbing; }
.mm-rules-order__no { color: #2271b1; font-weight: 600; min-width: 46px; flex: none; }
.mm-rules-order__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mm-rules-order__edit { flex: none; text-decoration: none; }
.mm-rules-order__placeholder {
margin: 0 0 6px;
border: 2px dashed #2271b1;
border-radius: 3px;
background: #f0f6fc;
list-style: none;
}
.mm-rules-order .ui-sortable-helper { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
+402
View File
@@ -0,0 +1,402 @@
/* =============================================================
VIDEO-MODUL
============================================================= */
/* ── Container (gleicher Stil wie .faq-archive-container) ── */
.video-archive-container {
background-color: var(--card-bg);
border-radius: 8px;
border: 1px solid var(--border-color);
padding: 50px;
margin-bottom: 30px;
margin-top: 40px;
}
/* ── Header ── */
.video-archive-container .page-header { text-align: center; margin-bottom: 40px; }
.video-archive-container .page-title { font-size: 2.5rem; color: var(--primary-accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.video-archive-container .page-title i { font-size: 2rem; }
.video-archive-container .page-description { font-size: 1.1rem; color: var(--text-muted); margin: 0; }
/* ── Livestream ── */
.video-livestream-section {
margin-bottom: 40px;
}
.section-livestream-title {
display: flex;
align-items: center;
gap: 12px;
font-size: 1.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.5px;
margin: 0 0 24px 0;
color: var(--primary-accent);
}
.live-indicator {
display: inline-block;
width: 12px;
height: 12px;
background: #ff0000;
border-radius: 50%;
box-shadow: 0 0 0 0 rgba(255, 0, 0, 1);
animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
0% {
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}
50% {
box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
}
}
.video-livestream-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 310px));
gap: 22px;
margin-bottom: 40px;
padding-bottom: 40px;
border-bottom: 2px solid rgba(0, 212, 255, 0.2);
justify-content: center;
}
.video-livestream-api-simple {
width: 100%;
max-width: none;
}
@media (max-width: 768px) {
.video-livestream-list {
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 16px;
}
}
@media (max-width: 480px) {
.video-livestream-list {
grid-template-columns: 1fr;
}
}
.video-livestream {
display: grid;
grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
gap: 26px;
align-items: stretch;
padding: 24px;
border: 1px solid rgba(0, 212, 255, 0.2);
border-radius: 18px;
background:
radial-gradient(circle at top left, rgba(0, 212, 255, 0.14), transparent 42%),
linear-gradient(135deg, rgba(17, 20, 28, 0.96), rgba(30, 32, 41, 0.96));
box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.video-livestream-copy {
display: flex;
flex-direction: column;
justify-content: center;
gap: 14px;
}
.video-livestream-kicker {
display: inline-flex;
align-items: center;
gap: 8px;
align-self: flex-start;
padding: 7px 12px;
border-radius: 999px;
border: 1px solid var(--stream-accent, var(--primary-accent));
background: rgba(255,255,255,0.04);
color: var(--stream-accent, var(--primary-accent));
font-size: 0.85rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.video-livestream-title {
margin: 0;
font-size: clamp(1.6rem, 2.6vw, 2.2rem);
line-height: 1.1;
}
.video-livestream-text,
.video-livestream-note {
margin: 0;
color: var(--text-muted);
}
.video-livestream-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
}
.video-livestream-nav {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.video-livestream-nav-btn {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid var(--border-color);
background: rgba(255,255,255,0.04);
color: var(--text-color);
border-radius: 999px;
padding: 9px 14px;
font: inherit;
font-size: 0.9rem;
font-weight: 700;
cursor: pointer;
transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.video-livestream-nav-btn:hover {
border-color: var(--primary-accent);
background: rgba(0,212,255,0.09);
}
.video-livestream-nav-count {
color: var(--text-muted);
font-size: 0.9rem;
font-weight: 700;
}
.video-livestream-switcher {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.video-livestream-switch {
border: 1px solid var(--border-color);
background: rgba(255,255,255,0.03);
color: var(--text-muted);
border-radius: 999px;
padding: 9px 14px;
font: inherit;
font-size: 0.9rem;
font-weight: 700;
cursor: pointer;
transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.video-livestream-switch:hover,
.video-livestream-switch.is-active {
border-color: var(--primary-accent);
color: var(--text-color);
background: rgba(0,212,255,0.09);
}
.video-livestream-button {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-radius: 10px;
background: var(--primary-accent);
color: #0f1418;
font-weight: 700;
text-decoration: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-livestream-button:hover {
color: #0f1418;
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(0, 212, 255, 0.28);
}
.video-livestream-channel {
padding: 7px 11px;
border-radius: 999px;
border: 1px solid var(--border-color);
color: var(--text-muted);
font-size: 0.9rem;
}
.video-livestream-player-wrap {
min-width: 0;
}
.video-livestream-player,
.video-livestream-placeholder {
border-radius: 14px;
overflow: hidden;
background: #0b0d12;
border: 1px solid rgba(255,255,255,0.08);
}
.video-livestream-player {
position: relative;
padding-bottom: 56.25%;
height: 0;
}
.video-livestream-player iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
}
.video-livestream-player .video-livestream-youtube-player {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.video-livestream-player iframe.is-hidden,
.video-livestream-player .video-livestream-youtube-player.is-hidden {
display: none;
}
.video-livestream-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
min-height: 320px;
padding: 30px;
text-align: center;
color: var(--text-muted);
}
.video-livestream-placeholder i {
font-size: 2rem;
color: var(--primary-accent);
}
.video-livestream-note.is-hidden,
.video-livestream-player.is-hidden,
.video-livestream-placeholder.is-hidden {
display: none;
}
/* ── API-basiertes Livestream (vereinfacht) ── */
.video-livestream-api-simple {
background: var(--surface-color, rgba(255,255,255,0.03));
padding: 0;
border-radius: 10px;
border: 1px solid var(--border-color);
overflow: hidden;
display: flex;
flex-direction: column;
height: 100%;
}
.video-livestream-api-simple .responsive-video {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
border-radius: 0;
background: #000;
}
.video-livestream-api-simple .responsive-video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
.video-livestream-api-simple .video-livestream-meta {
padding: 12px 14px 14px;
display: flex;
justify-content: center;
}
.video-livestream-api-simple .video-livestream-channel-link {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
font-size: 12px;
background: #ff0000;
color: #fff;
text-decoration: none;
border-radius: 6px;
font-weight: 600;
transition: all 0.3s ease;
}
.video-livestream-api-simple .video-livestream-channel-link:hover {
background: #cc0000;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}
.video-livestream-api-simple .video-livestream-channel-link i {
font-size: 1.2rem;
}
/* ── Filter-Bar ── */
.video-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.video-filter-btn { padding: 7px 20px; border-radius: 20px; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.video-filter-btn:hover { border-color: var(--primary-accent); color: var(--primary-accent); }
.video-filter-btn.active { background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; }
/* ── Video Grid ── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
/* ── Video Card ── */
.video-card {
background: var(--surface-color, rgba(255,255,255,0.03));
border: 1px solid var(--border-color);
border-radius: 10px;
overflow: hidden;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-color: var(--primary-accent); }
/* Thumbnail */
.video-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: rgba(0,0,0,0.3); cursor: pointer; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.video-card:hover .video-card-thumb img { transform: scale(1.05); }
.video-card-no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.video-card-no-thumb i { font-size: 2.5rem; color: var(--primary-accent); opacity: 0.25; }
/* Hover-Overlay */
.video-card-hover { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
.video-card-thumb:hover .video-card-hover { opacity: 1; }
.video-card-hover i { font-size: 3rem; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); transition: transform 0.2s ease; }
.video-card-thumb:hover .video-card-hover i { transform: scale(1.1); }
/* Plattform-Badge */
.video-platform-badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.65); padding: 4px 8px; border-radius: 6px; font-size: 0.85rem; line-height: 1; backdrop-filter: blur(4px); }
/* Card Body */
.video-card-body { padding: 14px 16px; }
.video-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text-color); margin: 0 0 6px; line-height: 1.4; }
.video-card-excerpt { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 8px; line-height: 1.5; }
.video-card-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary-accent); background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); padding: 2px 10px; border-radius: 12px; }
/* ── Lightbox ── */
.video-lightbox { position: fixed; inset: 0; z-index: 99998; align-items: center; justify-content: center; padding: 20px; }
.video-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); cursor: pointer; }
.video-lightbox-box { position: relative; z-index: 1; width: 100%; max-width: 900px; background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 24px 80px rgba(0,0,0,0.6); opacity: 0; transform: scale(0.96); transition: opacity 0.3s ease, transform 0.3s ease; }
.video-lightbox.is-open .video-lightbox-box { opacity: 1; transform: scale(1); }
.video-lightbox-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-color); }
.video-lightbox-title { font-size: 1rem; font-weight: 700; color: var(--text-color); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-lightbox-close { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 5px 10px; border-radius: 6px; transition: all 0.2s; line-height: 1; }
.video-lightbox-close:hover { color: var(--text-color); border-color: var(--text-muted); background: rgba(255,255,255,0.06); }
.video-lightbox-player { aspect-ratio: 16/9; background: #000; }
.video-lightbox-player iframe,
.video-lightbox-player video { width: 100%; height: 100%; display: block; border: none; }
/* ── Leer-Zustand ── */
.video-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.video-empty i { font-size: 3rem; opacity: 0.25; display: block; margin-bottom: 16px; }
.video-empty p { font-size: 1.1rem; margin-bottom: 20px; }
/* ── Shortcode-Embed in Beiträgen ── */
.mm-video-wrapper { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; margin: 20px 0; border: 1px solid var(--border-color); }
.mm-video-wrapper iframe,
.mm-video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.mm-video-error { color: #ff6b6b; font-size: 0.9rem; padding: 12px; background: rgba(255,107,107,0.1); border-radius: 6px; border: 1px solid rgba(255,107,107,0.3); }
/* ── Light Mode ── */
html.light-mode .video-card { background: #fff; }
html.light-mode .video-lightbox-box { background: #fff; }
html.light-mode .video-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
/* ── Responsive ── */
@media (max-width: 900px) { .video-archive-container { padding: 30px 20px; } }
@media (max-width: 900px) { .video-livestream { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } .video-archive-container .page-title { font-size: 1.8rem; } .video-livestream { padding: 18px; gap: 18px; } .video-livestream-placeholder { min-height: 220px; } .video-livestream-switcher { gap: 8px; } .video-livestream-switch { width: 100%; justify-content: center; } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } .video-lightbox { padding: 10px; } }
+6 -6
View File
@@ -25,7 +25,7 @@
// das Feld explizit gespeichert hatte. Jetzt wird auf empty() geprüft.
$copyright_text = get_theme_mod( 'footer_copyright', '' );
if ( empty( $copyright_text ) ) {
$copyright_text = '&copy; ' . date('Y') . ' ' . get_bloginfo('name');
$copyright_text = '&copy; ' . wp_date('Y') . ' ' . get_bloginfo('name');
}
if ( get_theme_mod('show_footer_credit', true) ) {
@@ -65,10 +65,10 @@
$links = array();
if ( ! empty($impressum_url) ) {
$links[] = '<a href="' . esc_url($impressum_url) . '"><i class="fas fa-info-circle"></i> Impressum</a>';
$links[] = '<a href="' . esc_url($impressum_url) . '"><i class="fas fa-info-circle" aria-hidden="true"></i> ' . esc_html__( 'Impressum', 'minecraft-modern-theme' ) . '</a>';
}
if ( ! empty($datenschutz_url) ) {
$links[] = '<a href="' . esc_url($datenschutz_url) . '"><i class="fas fa-shield-alt"></i> Datenschutz</a>';
$links[] = '<a href="' . esc_url($datenschutz_url) . '"><i class="fas fa-shield-alt" aria-hidden="true"></i> ' . esc_html__( 'Datenschutz', 'minecraft-modern-theme' ) . '</a>';
}
if ( ! empty($links) ) {
echo implode('', $links);
@@ -80,11 +80,11 @@
</div><!-- Ende footer-bottom-bar -->
</div><!-- Ende Container -->
<a href="#" id="scroll-to-top" aria-label="Zurück nach oben" title="Nach oben scrollen">
<i class="fas fa-chevron-up"></i>
<a href="#" id="scroll-to-top" aria-label="<?php esc_attr_e( 'Zurück nach oben', 'minecraft-modern-theme' ); ?>" title="<?php esc_attr_e( 'Nach oben scrollen', 'minecraft-modern-theme' ); ?>">
<i class="fas fa-chevron-up" aria-hidden="true"></i>
</a>
<button class="theme-toggle" aria-label="Dark/Light Mode umschalten" title="Dark / Light Mode">
<button class="theme-toggle" aria-label="<?php esc_attr_e( 'Dark/Light Mode umschalten', 'minecraft-modern-theme' ); ?>" title="<?php esc_attr_e( 'Dark / Light Mode', 'minecraft-modern-theme' ); ?>">
<div class="theme-toggle-icons">
<svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
+14 -1
View File
@@ -9,13 +9,21 @@ if ( get_theme_mod('slider_enabled', false) ) :
<section class="hero-slider swiper-container">
<div class="swiper-wrapper">
<?php
$mm_slide_no = 0;
for ( $i = 1; $i <= 5; $i++ ) :
$image_url = get_theme_mod( 'slider_image_' . $i );
if ( $image_url ) :
$title = get_theme_mod( 'slider_title_' . $i );
$subtitle = get_theme_mod( 'slider_subtitle_' . $i );
$mm_slide_no++;
?>
<div class="swiper-slide" style="background-image: url('<?php echo esc_url( $image_url ); ?>');">
<div class="swiper-slide">
<?php
// Echtes <img> statt CSS-Hintergrund: der Browser bekommt so
// srcset/sizes (kleinere Dateien auf Handys), das erste Bild
// wird priorisiert, alle weiteren erst bei Bedarf geladen.
echo mm_slider_image( $image_url, $title, 1 === $mm_slide_no ); // phpcs:ignore WordPress.Security.EscapeOutput -- in mm_slider_image() escaped.
?>
<div class="slider-content">
<?php if ( $title ) : ?>
<h2 class="slider-title"><?php echo esc_html( $title ); ?></h2>
@@ -69,6 +77,11 @@ if ( get_theme_mod('slider_enabled', false) ) :
<?php endif; ?>
<?php
// Im Customizer zuschaltbare Sektionen (Server-Status, Features, Updates, Team, Community).
mm_home_sections_render();
?>
<!-- ===================================================== -->
<!-- MAIN CONTENT MIT SIDEBAR -->
<!-- ===================================================== -->
+13
View File
@@ -15,6 +15,9 @@ if ( ! defined( 'ABSPATH' ) ) {
}
require get_template_directory() . '/inc/theme-setup.php';
require get_template_directory() . '/inc/security.php';
require get_template_directory() . '/inc/tools.php';
require get_template_directory() . '/inc/seo.php';
require get_template_directory() . '/inc/customizer.php';
require get_template_directory() . '/inc/assistant-widget.php';
require get_template_directory() . '/inc/theme-updater.php';
@@ -32,3 +35,13 @@ require get_template_directory() . '/inc/video.php';
require get_template_directory() . '/inc/bewerbung.php';
require get_template_directory() . '/inc/login-url.php';
require get_template_directory() . '/inc/menu-links.php';
require get_template_directory() . '/inc/server-status.php';
require get_template_directory() . '/inc/community.php';
require get_template_directory() . '/inc/content-types.php';
require get_template_directory() . '/inc/rules-order.php';
require get_template_directory() . '/inc/changelog-admin.php';
require get_template_directory() . '/inc/frontpage-sections.php';
require get_template_directory() . '/inc/changelog-filter.php';
require get_template_directory() . '/inc/events.php';
require get_template_directory() . '/inc/nav-archives.php';
require get_template_directory() . '/inc/privacy-proxy.php';
+7 -3
View File
@@ -9,6 +9,7 @@
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="skip-link screen-reader-text" href="#mm-content-start"><?php esc_html_e( 'Zum Inhalt springen', 'minecraft-modern-theme' ); ?></a>
<?php
$menu_style = get_theme_mod( 'header_menu_style', 'classic' );
@@ -24,14 +25,14 @@ $branding_pos = get_theme_mod( 'sidebar_branding_position', 'left' );
<?php mm_branding( true ); ?>
<?php mm_nav(); ?>
</div>
<button class="sidebar-menu-close" aria-label="Menü schließen"><i class="fas fa-times"></i></button>
<button class="sidebar-menu-close" aria-label="<?php esc_attr_e( 'Menü schließen', 'minecraft-modern-theme' ); ?>"><i class="fas fa-times" aria-hidden="true"></i></button>
</aside>
<div class="header-sidebar-overlay" id="sidebar-overlay"></div>
<header id="masthead" class="site-header site-header--sidebar branding-<?php echo esc_attr( $branding_pos ); ?>">
<div class="container">
<div class="header-main">
<button class="sidebar-menu-toggle" aria-label="Menü öffnen" aria-expanded="false" aria-controls="header-sidebar">
<i class="fas fa-bars"></i>
<button class="sidebar-menu-toggle" aria-label="<?php esc_attr_e( 'Menü öffnen', 'minecraft-modern-theme' ); ?>" aria-expanded="false" aria-controls="header-sidebar">
<i class="fas fa-bars" aria-hidden="true"></i>
</button>
<?php if ( $branding_pos === 'right' ) : ?>
<?php mm_icons(); ?>
@@ -144,3 +145,6 @@ $branding_pos = get_theme_mod( 'sidebar_branding_position', 'left' );
</header>
<?php endif; ?>
<?php // Sprungziel des Skip-Links: direkt hinter Kopfbereich und Navigation. ?>
<div id="mm-content-start" tabindex="-1"></div>
+97 -4
View File
@@ -21,13 +21,29 @@
</div>
<?php else : ?>
<div id="bewerbung-success" class="bewerbung-success" style="display:none;">
<i class="fas fa-check-circle"></i>
<p id="bewerbung-success-msg"></p>
<div id="bewerbung-success" class="bewerbung-success" style="display:none;" role="status">
<i class="fas fa-check-circle" aria-hidden="true"></i>
<div>
<p id="bewerbung-success-msg"></p>
<p id="bewerbung-code-wrap" class="bew-code-wrap" style="display:none;">
<?php esc_html_e('Dein Status-Code:', 'minecraft-modern-theme'); ?>
<code id="bewerbung-code"></code>
<button type="button" class="bew-code-copy" id="bewerbung-code-copy"><?php esc_html_e('Kopieren', 'minecraft-modern-theme'); ?></button>
<br><small><?php esc_html_e('Notiere dir den Code – damit kannst du unten jederzeit den Stand deiner Bewerbung abfragen.', 'minecraft-modern-theme'); ?></small>
</p>
</div>
</div>
<form id="bewerbung-form" class="bewerbung-form" novalidate>
<?php wp_nonce_field('mm_bewerbung_nonce', 'mm_bew_nonce_field'); ?>
<?php $mm_bew_ts = time(); ?>
<input type="hidden" id="mm_bew_ts" value="<?php echo esc_attr( $mm_bew_ts ); ?>">
<input type="hidden" id="mm_bew_ts_hash" value="<?php echo esc_attr( wp_hash( 'mm_bew_' . $mm_bew_ts ) ); ?>">
<?php // Honeypot: für Menschen unsichtbar, Bots füllen es aus. ?>
<div class="bew-hp" aria-hidden="true">
<label for="bew_website">Website</label>
<input type="text" id="bew_website" name="website" tabindex="-1" autocomplete="off">
</div>
<div class="bew-grid">
@@ -156,6 +172,20 @@
</form>
<section class="bew-status" aria-labelledby="bew-status-title">
<h2 id="bew-status-title" class="bew-status-title">
<i class="fas fa-search" aria-hidden="true"></i>
<?php esc_html_e('Status deiner Bewerbung abfragen', 'minecraft-modern-theme'); ?>
</h2>
<form id="bew-status-form" class="bew-status-form" novalidate>
<label for="bew_status_code" class="screen-reader-text"><?php esc_html_e('Status-Code', 'minecraft-modern-theme'); ?></label>
<input type="text" id="bew_status_code" class="bew-input" maxlength="14"
placeholder="XXXX-XXXX-XXXX" autocomplete="off" spellcheck="false">
<button type="submit" class="bew-submit-btn bew-status-btn"><?php esc_html_e('Abfragen', 'minecraft-modern-theme'); ?></button>
</form>
<div id="bew-status-result" class="bew-status-result" role="status" aria-live="polite"></div>
</section>
<?php endif; ?>
</div><!-- .bewerbung-container -->
@@ -185,7 +215,8 @@ document.addEventListener('DOMContentLoaded', function() {
var val = this.value.trim();
if (val.length >= 3) {
avatarTimer = setTimeout(function() {
var url = 'https://mc-heads.net/avatar/' + encodeURIComponent(val) + '/40';
// Über den eigenen Server laden - die IP des Besuchers geht nicht an Dritte.
var url = <?php echo wp_json_encode( mm_proxy_endpoint() ); ?> + '&k=head&s=40&i=' + encodeURIComponent(val);
avatarImg.src = url;
avatarImg.style.display = 'block';
avatarIcon.style.display = 'none';
@@ -232,6 +263,9 @@ document.addEventListener('DOMContentLoaded', function() {
data.append('position', positionEl ? positionEl.value : '');
data.append('warum', document.getElementById('bew_warum').value.trim());
data.append('erfahrung', document.getElementById('bew_erfahrung').value.trim());
data.append('website', document.getElementById('bew_website').value);
data.append('ts', document.getElementById('mm_bew_ts').value);
data.append('ts_hash', document.getElementById('mm_bew_ts_hash').value);
submitBtn.disabled = true;
submitBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> <?php echo esc_js(__("Wird gesendet...","minecraft-modern-theme")); ?>';
@@ -245,6 +279,12 @@ document.addEventListener('DOMContentLoaded', function() {
if (res.success) {
form.style.display = 'none';
successMsg.textContent = res.data.msg;
if (res.data.code) {
document.getElementById('bewerbung-code').textContent = res.data.code;
document.getElementById('bewerbung-code-wrap').style.display = 'block';
var statusInput = document.getElementById('bew_status_code');
if (statusInput) statusInput.value = res.data.code;
}
successBox.style.display = 'flex';
window.scrollTo({ top: successBox.offsetTop - 80, behavior: 'smooth' });
} else {
@@ -262,6 +302,59 @@ document.addEventListener('DOMContentLoaded', function() {
submitBtn.innerHTML = '<i class="fas fa-paper-plane"></i> <?php echo esc_js(__("Bewerbung absenden","minecraft-modern-theme")); ?>';
});
});
// ── Status-Code kopieren ──
var copyBtn = document.getElementById('bewerbung-code-copy');
if (copyBtn) {
copyBtn.addEventListener('click', function() {
var code = document.getElementById('bewerbung-code').textContent;
if (navigator.clipboard) {
navigator.clipboard.writeText(code).then(function() {
copyBtn.textContent = '<?php echo esc_js(__("Kopiert!","minecraft-modern-theme")); ?>';
});
}
});
}
});
// ── Status abfragen (auch nutzbar, wenn das Formular schon abgeschickt wurde) ──
document.addEventListener('DOMContentLoaded', function() {
var statusForm = document.getElementById('bew-status-form');
var statusResult = document.getElementById('bew-status-result');
if (!statusForm) return;
statusForm.addEventListener('submit', function(e) {
e.preventDefault();
var nonce = document.getElementById('mm_bew_nonce_field');
var data = new FormData();
data.append('action', 'mm_bewerbung_status');
data.append('nonce', nonce ? nonce.value : '');
data.append('code', document.getElementById('bew_status_code').value.trim());
statusResult.textContent = '<?php echo esc_js(__("Wird abgefragt...","minecraft-modern-theme")); ?>';
fetch('<?php echo esc_url(admin_url("admin-ajax.php")); ?>', { method: 'POST', body: data })
.then(function(r){ return r.json(); })
.then(function(res) {
statusResult.textContent = '';
if (!res.success) {
statusResult.textContent = res.data.msg;
return;
}
// Per DOM-API aufbauen statt innerHTML, damit Serverwerte nie als HTML interpretiert werden.
var badge = document.createElement('span');
badge.className = 'bew-status-badge';
badge.style.background = res.data.color;
badge.textContent = res.data.label;
statusResult.appendChild(badge);
var meta = document.createElement('span');
meta.className = 'bew-status-meta';
meta.textContent = (res.data.position ? res.data.position + ' · ' : '') + res.data.datum;
statusResult.appendChild(meta);
})
.catch(function() {
statusResult.textContent = '<?php echo esc_js(__("Verbindungsfehler. Bitte erneut versuchen.","minecraft-modern-theme")); ?>';
});
});
});
</script>
+14 -585
View File
@@ -4,7 +4,7 @@ Theme URI: https://git.viper.ipv64.net/M_Viper/Minecraft-Modern-Theme
Author: M_Viper
Description: Ein modernes Gaming-Theme mit konfigurierbarem Header-Slider.
Author URI: https://M-Viper.de
Version: 2.4
Version: 2.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minecraft-modern-theme
@@ -341,6 +341,17 @@ a:hover { color: #fff; }
align-items: center;
justify-content: center;
}
/* Slide-Bild als echtes <img> (srcset, Lazy-Loading) statt CSS-Hintergrund */
.swiper-slide .slider-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
max-width: none;
object-fit: cover;
object-position: center;
z-index: 0;
}
.swiper-slide::before {
content: '';
position: absolute;
@@ -4206,590 +4217,8 @@ html.light-mode .mmc-steps { background:rgba(0,0,0,0.03); }
@media (max-width:560px) { .mmc-stepper-btns { grid-template-columns:1fr; } .mmc-stepper-body { padding:18px; } #mm-cookie-banner.mmc-style-stepper { padding:12px; } }
/* =============================================================
VIDEO-MODUL
============================================================= */
/* ── Container (gleicher Stil wie .faq-archive-container) ── */
.video-archive-container {
background-color: var(--card-bg);
border-radius: 8px;
border: 1px solid var(--border-color);
padding: 50px;
margin-bottom: 30px;
margin-top: 40px;
}
/* ── Header ── */
.video-archive-container .page-header { text-align: center; margin-bottom: 40px; }
.video-archive-container .page-title { font-size: 2.5rem; color: var(--primary-accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.video-archive-container .page-title i { font-size: 2rem; }
.video-archive-container .page-description { font-size: 1.1rem; color: var(--text-muted); margin: 0; }
/* ── Livestream ── */
.video-livestream-section {
margin-bottom: 40px;
}
.section-livestream-title {
display: flex;
align-items: center;
gap: 12px;
font-size: 1.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.5px;
margin: 0 0 24px 0;
color: var(--primary-accent);
}
.live-indicator {
display: inline-block;
width: 12px;
height: 12px;
background: #ff0000;
border-radius: 50%;
box-shadow: 0 0 0 0 rgba(255, 0, 0, 1);
animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
0% {
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}
50% {
box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
}
}
.video-livestream-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 310px));
gap: 22px;
margin-bottom: 40px;
padding-bottom: 40px;
border-bottom: 2px solid rgba(0, 212, 255, 0.2);
justify-content: center;
}
.video-livestream-api-simple {
width: 100%;
max-width: none;
}
@media (max-width: 768px) {
.video-livestream-list {
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 16px;
}
}
@media (max-width: 480px) {
.video-livestream-list {
grid-template-columns: 1fr;
}
}
.video-livestream {
display: grid;
grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
gap: 26px;
align-items: stretch;
padding: 24px;
border: 1px solid rgba(0, 212, 255, 0.2);
border-radius: 18px;
background:
radial-gradient(circle at top left, rgba(0, 212, 255, 0.14), transparent 42%),
linear-gradient(135deg, rgba(17, 20, 28, 0.96), rgba(30, 32, 41, 0.96));
box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.video-livestream-copy {
display: flex;
flex-direction: column;
justify-content: center;
gap: 14px;
}
.video-livestream-kicker {
display: inline-flex;
align-items: center;
gap: 8px;
align-self: flex-start;
padding: 7px 12px;
border-radius: 999px;
border: 1px solid var(--stream-accent, var(--primary-accent));
background: rgba(255,255,255,0.04);
color: var(--stream-accent, var(--primary-accent));
font-size: 0.85rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.video-livestream-title {
margin: 0;
font-size: clamp(1.6rem, 2.6vw, 2.2rem);
line-height: 1.1;
}
.video-livestream-text,
.video-livestream-note {
margin: 0;
color: var(--text-muted);
}
.video-livestream-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
}
.video-livestream-nav {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.video-livestream-nav-btn {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid var(--border-color);
background: rgba(255,255,255,0.04);
color: var(--text-color);
border-radius: 999px;
padding: 9px 14px;
font: inherit;
font-size: 0.9rem;
font-weight: 700;
cursor: pointer;
transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.video-livestream-nav-btn:hover {
border-color: var(--primary-accent);
background: rgba(0,212,255,0.09);
}
.video-livestream-nav-count {
color: var(--text-muted);
font-size: 0.9rem;
font-weight: 700;
}
.video-livestream-switcher {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.video-livestream-switch {
border: 1px solid var(--border-color);
background: rgba(255,255,255,0.03);
color: var(--text-muted);
border-radius: 999px;
padding: 9px 14px;
font: inherit;
font-size: 0.9rem;
font-weight: 700;
cursor: pointer;
transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.video-livestream-switch:hover,
.video-livestream-switch.is-active {
border-color: var(--primary-accent);
color: var(--text-color);
background: rgba(0,212,255,0.09);
}
.video-livestream-button {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-radius: 10px;
background: var(--primary-accent);
color: #0f1418;
font-weight: 700;
text-decoration: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-livestream-button:hover {
color: #0f1418;
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(0, 212, 255, 0.28);
}
.video-livestream-channel {
padding: 7px 11px;
border-radius: 999px;
border: 1px solid var(--border-color);
color: var(--text-muted);
font-size: 0.9rem;
}
.video-livestream-player-wrap {
min-width: 0;
}
.video-livestream-player,
.video-livestream-placeholder {
border-radius: 14px;
overflow: hidden;
background: #0b0d12;
border: 1px solid rgba(255,255,255,0.08);
}
.video-livestream-player {
position: relative;
padding-bottom: 56.25%;
height: 0;
}
.video-livestream-player iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
}
.video-livestream-player .video-livestream-youtube-player {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.video-livestream-player iframe.is-hidden,
.video-livestream-player .video-livestream-youtube-player.is-hidden {
display: none;
}
.video-livestream-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
min-height: 320px;
padding: 30px;
text-align: center;
color: var(--text-muted);
}
.video-livestream-placeholder i {
font-size: 2rem;
color: var(--primary-accent);
}
.video-livestream-note.is-hidden,
.video-livestream-player.is-hidden,
.video-livestream-placeholder.is-hidden {
display: none;
}
/* ── API-basiertes Livestream (vereinfacht) ── */
.video-livestream-api-simple {
background: var(--surface-color, rgba(255,255,255,0.03));
padding: 0;
border-radius: 10px;
border: 1px solid var(--border-color);
overflow: hidden;
display: flex;
flex-direction: column;
height: 100%;
}
.video-livestream-api-simple .responsive-video {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
border-radius: 0;
background: #000;
}
.video-livestream-api-simple .responsive-video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
.video-livestream-api-simple .video-livestream-meta {
padding: 12px 14px 14px;
display: flex;
justify-content: center;
}
.video-livestream-api-simple .video-livestream-channel-link {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
font-size: 12px;
background: #ff0000;
color: #fff;
text-decoration: none;
border-radius: 6px;
font-weight: 600;
transition: all 0.3s ease;
}
.video-livestream-api-simple .video-livestream-channel-link:hover {
background: #cc0000;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}
.video-livestream-api-simple .video-livestream-channel-link i {
font-size: 1.2rem;
}
/* ── Filter-Bar ── */
.video-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.video-filter-btn { padding: 7px 20px; border-radius: 20px; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.video-filter-btn:hover { border-color: var(--primary-accent); color: var(--primary-accent); }
.video-filter-btn.active { background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; }
/* ── Video Grid ── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
/* ── Video Card ── */
.video-card {
background: var(--surface-color, rgba(255,255,255,0.03));
border: 1px solid var(--border-color);
border-radius: 10px;
overflow: hidden;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-color: var(--primary-accent); }
/* Thumbnail */
.video-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: rgba(0,0,0,0.3); cursor: pointer; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.video-card:hover .video-card-thumb img { transform: scale(1.05); }
.video-card-no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.video-card-no-thumb i { font-size: 2.5rem; color: var(--primary-accent); opacity: 0.25; }
/* Hover-Overlay */
.video-card-hover { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
.video-card-thumb:hover .video-card-hover { opacity: 1; }
.video-card-hover i { font-size: 3rem; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); transition: transform 0.2s ease; }
.video-card-thumb:hover .video-card-hover i { transform: scale(1.1); }
/* Plattform-Badge */
.video-platform-badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.65); padding: 4px 8px; border-radius: 6px; font-size: 0.85rem; line-height: 1; backdrop-filter: blur(4px); }
/* Card Body */
.video-card-body { padding: 14px 16px; }
.video-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text-color); margin: 0 0 6px; line-height: 1.4; }
.video-card-excerpt { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 8px; line-height: 1.5; }
.video-card-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary-accent); background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); padding: 2px 10px; border-radius: 12px; }
/* ── Lightbox ── */
.video-lightbox { position: fixed; inset: 0; z-index: 99998; align-items: center; justify-content: center; padding: 20px; }
.video-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); cursor: pointer; }
.video-lightbox-box { position: relative; z-index: 1; width: 100%; max-width: 900px; background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 24px 80px rgba(0,0,0,0.6); opacity: 0; transform: scale(0.96); transition: opacity 0.3s ease, transform 0.3s ease; }
.video-lightbox.is-open .video-lightbox-box { opacity: 1; transform: scale(1); }
.video-lightbox-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-color); }
.video-lightbox-title { font-size: 1rem; font-weight: 700; color: var(--text-color); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-lightbox-close { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 5px 10px; border-radius: 6px; transition: all 0.2s; line-height: 1; }
.video-lightbox-close:hover { color: var(--text-color); border-color: var(--text-muted); background: rgba(255,255,255,0.06); }
.video-lightbox-player { aspect-ratio: 16/9; background: #000; }
.video-lightbox-player iframe,
.video-lightbox-player video { width: 100%; height: 100%; display: block; border: none; }
/* ── Leer-Zustand ── */
.video-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.video-empty i { font-size: 3rem; opacity: 0.25; display: block; margin-bottom: 16px; }
.video-empty p { font-size: 1.1rem; margin-bottom: 20px; }
/* ── Shortcode-Embed in Beiträgen ── */
.mm-video-wrapper { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; margin: 20px 0; border: 1px solid var(--border-color); }
.mm-video-wrapper iframe,
.mm-video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.mm-video-error { color: #ff6b6b; font-size: 0.9rem; padding: 12px; background: rgba(255,107,107,0.1); border-radius: 6px; border: 1px solid rgba(255,107,107,0.3); }
/* ── Light Mode ── */
html.light-mode .video-card { background: #fff; }
html.light-mode .video-lightbox-box { background: #fff; }
html.light-mode .video-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
/* ── Responsive ── */
@media (max-width: 900px) { .video-archive-container { padding: 30px 20px; } }
@media (max-width: 900px) { .video-livestream { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } .video-archive-container .page-title { font-size: 1.8rem; } .video-livestream { padding: 18px; gap: 18px; } .video-livestream-placeholder { min-height: 220px; } .video-livestream-switcher { gap: 8px; } .video-livestream-switch { width: 100%; justify-content: center; } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } .video-lightbox { padding: 10px; } }
/* =============================================================
BEWERBUNGSFORMULAR
============================================================= */
.bewerbung-container {
background: var(--card-bg);
border-radius: 8px;
border: 1px solid var(--border-color);
padding: 50px;
margin: 40px 0 30px;
}
.bewerbung-container .page-header { text-align: center; margin-bottom: 40px; }
.bewerbung-container .page-title { font-size: 2.5rem; color: var(--primary-accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.bewerbung-container .page-title i { font-size: 2rem; }
.bewerbung-container .page-description { font-size: 1.1rem; color: var(--text-muted); margin: 0; }
/* Deaktiviert */
.bewerbung-disabled { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.bewerbung-disabled i { font-size: 3rem; opacity: 0.25; display: block; margin-bottom: 16px; }
/* Formular */
.bewerbung-form { max-width: 760px; margin: 0 auto; }
.bew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.bew-field--small { grid-column: span 1; }
.bew-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.bew-grid .bew-field { margin-bottom: 0; }
.bew-label { font-size: 0.9rem; font-weight: 700; color: var(--text-color); display: flex; align-items: center; gap: 8px; }
.bew-label i { color: var(--primary-accent); font-size: 0.85rem; width: 16px; text-align: center; }
.bew-required { color: var(--primary-accent); font-weight: 700; }
.bew-input,
.bew-textarea {
background: rgba(255,255,255,0.05);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 11px 14px;
color: var(--text-color);
font-family: inherit;
font-size: 0.9rem;
transition: border-color 0.2s ease, background 0.2s ease;
width: 100%;
box-sizing: border-box;
}
.bew-input:focus, .bew-textarea:focus {
outline: none;
border-color: var(--primary-accent);
background: rgba(0,212,255,0.04);
}
.bew-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.bew-hint { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
/* Minecraft Avatar neben Input */
.bew-mc-wrap { display: flex; gap: 10px; align-items: center; }
.bew-mc-wrap .bew-input { flex: 1; }
.bew-mc-avatar { width: 44px; height: 44px; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.bew-mc-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.bew-mc-avatar i { color: var(--text-muted); font-size: 1.1rem; }
/* Zeichenzähler */
.bew-char-count { font-size: 0.75rem; color: var(--text-muted); text-align: right; }
/* Erfolg */
.bewerbung-success { display: flex; align-items: flex-start; gap: 16px; background: rgba(70,180,80,0.1); border: 1px solid rgba(70,180,80,0.35); border-radius: 10px; padding: 24px; color: var(--text-color); margin-bottom: 20px; }
.bewerbung-success i { font-size: 2rem; color: #46b450; flex-shrink: 0; margin-top: 2px; }
.bewerbung-success p { margin: 0; font-size: 1rem; line-height: 1.6; }
/* Fehler */
.bewerbung-error { display: flex; align-items: flex-start; gap: 12px; background: rgba(220,50,50,0.1); border: 1px solid rgba(220,50,50,0.35); border-radius: 8px; padding: 14px 16px; color: var(--text-color); margin-bottom: 20px; }
.bewerbung-error i { color: #dc3232; flex-shrink: 0; margin-top: 2px; }
/* Submit */
.bew-submit-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
.bew-submit-btn {
display: inline-flex; align-items: center; gap: 10px;
padding: 14px 36px;
background: var(--primary-accent); color: #fff;
border: none; border-radius: 8px;
font-family: inherit; font-size: 1rem; font-weight: 700;
cursor: pointer;
transition: opacity 0.2s, transform 0.15s;
}
.bew-submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.bew-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.bew-submit-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.bew-submit-hint i { color: var(--primary-accent); }
/* Light Mode */
html.light-mode .bewerbung-container { background: #fff; }
html.light-mode .bew-input,
html.light-mode .bew-textarea { background: #f8f8f8; }
html.light-mode .bew-input:focus,
html.light-mode .bew-textarea:focus { background: #fff; }
html.light-mode .bew-mc-avatar { background: #f0f0f0; }
/* Responsive */
@media (max-width: 700px) {
.bewerbung-container { padding: 28px 18px; }
.bew-grid { grid-template-columns: 1fr; }
.bewerbung-container .page-title { font-size: 1.8rem; }
}
/* ── Bewerbungs-Positionen ── */
.bew-position-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 12px;
margin-top: 8px;
}
.bew-position-card {
cursor: pointer;
display: block;
}
.bew-position-card input[type="radio"] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.bew-position-label {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 16px 12px;
border: 2px solid var(--border-color, #30363d);
border-radius: 10px;
background: var(--card-bg, #161b22);
color: var(--text-color, #c9d1d9);
font-weight: 600;
font-size: 14px;
text-align: center;
transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.bew-position-label i {
font-size: 22px;
color: var(--primary-accent, #00d4e8);
transition: transform 0.2s;
}
.bew-position-card:hover .bew-position-label {
border-color: var(--primary-accent, #00d4e8);
background: rgba(0, 212, 232, 0.07);
}
.bew-position-card input[type="radio"]:checked + .bew-position-label {
border-color: var(--primary-accent, #00d4e8);
background: rgba(0, 212, 232, 0.12);
color: var(--primary-accent, #00d4e8);
box-shadow: 0 0 0 3px rgba(0, 212, 232, 0.18), 0 4px 16px rgba(0, 212, 232, 0.15);
}
.bew-position-card input[type="radio"]:checked + .bew-position-label i {
transform: scale(1.2);
}
/* Light Mode */
html.light-mode .bew-position-label {
background: #f4f4f4;
border-color: #ddd;
color: #333;
}
html.light-mode .bew-position-card input[type="radio"]:checked + .bew-position-label {
background: rgba(0, 212, 232, 0.1);
color: #007a8c;
}
/* Responsive */
@media (max-width: 500px) {
.bew-position-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* Video-Modul -> css/video.css (nur auf Video-Seiten geladen) */
/* Bewerbungsformular -> css/bewerbung.css (nur auf der Bewerbungsseite geladen) */
/* ══════════════════════════════════════════════════════════════
FIX: Dropdown-Sichtbarkeit im Centered-Layout (Logo oben, Menü darunter)
+34
View File
@@ -0,0 +1,34 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"color": {
"defaultPalette": false,
"defaultGradients": false,
"palette": [
{ "slug": "accent", "name": "Akzent", "color": "#00d4ff" },
{ "slug": "nether", "name": "Nether-Rot", "color": "#ff3333" },
{ "slug": "end", "name": "End-Violett", "color": "#aa00ff" },
{ "slug": "background", "name": "Hintergrund", "color": "#14151a" },
{ "slug": "surface", "name": "Fläche", "color": "#1e2029" },
{ "slug": "card", "name": "Karte", "color": "#252830" },
{ "slug": "text", "name": "Text", "color": "#e4e4e4" },
{ "slug": "muted", "name": "Text gedämpft", "color": "#a0a0a0" },
{ "slug": "white", "name": "Weiß", "color": "#ffffff" }
]
},
"typography": {
"dropCap": false,
"fontSizes": [
{ "slug": "small", "name": "Klein", "size": "0.875rem" },
{ "slug": "medium", "name": "Normal", "size": "1rem" },
{ "slug": "large", "name": "Groß", "size": "1.35rem" },
{ "slug": "x-large", "name": "Sehr groß", "size": "2rem" }
]
},
"layout": {
"contentSize": "820px",
"wideSize": "1200px"
}
}
}