:root {
    /* Grundfarben */
    --wrapperstyle: #333333;
    --bundeswehrgruen: #3F4A3C;
    --beige: #F8F4EE;
    --white: #ffffff;
    --headertext: #2F2F2F;
  	--wappengrau: #DDDDDD;
  	--name: #000000;
  	--rot: #DC3545;
  	--loginBG: #f8f4eef0;
  	--grau: #c5c0c0;

    /* Bereiche */
    --overtop: var(--bundeswehrgruen);
    --menustyle: var(--bundeswehrgruen);
    --footerstyle: var(--bundeswehrgruen);

    --headerstyle: var(--beige);

    --boxhg: var(--white);
    --boxr: var(--beige);
    --boxm: var(--beige);
    --boxl: var(--beige);

    --headercolor: var(--name);
    --headertitlecolor: var(--headertext);
    --headerslogancolor: var(--headertext);

    --contentstyle: var(--white);
}

 	/* Farben setzen */
.maincontent {
    background-color: var(--beige);
}
hr {
	border: none; /* Setzt den Standardrand zurück */
	height: 3px; /* Definiert die Dicke der Linie */
	background-color: var(--rot);
	margin: 20px 0;
}
.Startbeitrag {
	background-color: var(--white);
  	padding: 10px;
	margin: 20px;
}
  
#overtop {
	background-color: var(--bundeswehrgruen);
  /*	height: 40px; */
}
#headerstyle {
  background-color: var(--beige);
}

#boxstyle {
	background-color: var(--wappengrau);
}

#bannermenu {
	background-color: var(--bundeswehrgruen);
}

#footerpos {
	background-color: var(--bundeswehrgruen);
}

.foto-karte {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
  background: white;
}

/* Loginbereich Mitglieder  */
.login {
    background-color: var(--loginBG);
    padding: 30px;
    margin-bottom: 30px;
}
/* Polroideffekt - Chronik  */
.polaroid {
    display: inline-block;
    background: #fff;
    padding: 12px 12px 28px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    margin: 20px;
    position: relative;
    transition: transform 0.2s ease;

    /* <<< HIER Bildgröße begrenzen >>> */
    max-width: 350px; /* anpassen nach Wunsch */
    width: 100%;
}

.polaroid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: sepia(15%) brightness(95%) contrast(110%);
}

.polaroid .caption {
    font-family: "Comic Sans MS", "Bradley Hand", cursive;
    font-size: 15px;
    text-align: center;
    margin-top: 10px;
    color: #444;
}

.polaroid.rotate-left {
    transform: rotate(-4deg);
}
.polaroid.rotate-right {
    transform: rotate(3deg);
}

.polaroid:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 22px rgba(0,0,0,0.3);
}

.text {
    padding: 30px;
    max-width: 70%;
    min-width: 40%;
    margin: auto;
}

/* Schlichter Button mit rotem Hintergrund  */
.button-red {
  display: inline-block;
  /* Standardmäßig etwas kleiner: */
  padding: 7px 14px; /* Weniger Innenabstand */
  margin-top: 15px;
  background-color: #dc3545; /* Ein Standard-Rot */
  color: white; /* Schriftfarbe ist standardmäßig weiß */
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  /* transition für sanftere Übergänge auch beim 'transform' und 'color' */
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  font-size: 0.85em; /* Etwas kleinere Schrift */
  font-weight: bold;
}

.button-red:hover {
  background-color: #c82333; /* Dunkleres Rot beim Hover */
  /* Button wird geringfügig größer: */
  transform: scale(1.07); /* Vergrößert den Button um 7% */
  color: white; /* Schriftfarbe bleibt beim Hover weiß (explizit gesetzt) */
}

.button-red:active {
  background-color: #bd2130; /* Noch dunkler beim Klicken */
  /* Button kehrt zur Standardgröße zurück beim Klicken */
  transform: scale(1);
  color: white; /* Schriftfarbe bleibt auch beim Klicken weiß */
}

/* Responsivität für Buttons in kleineren Ansichten (übernimmt die allgemeinen Button-Anpassungen) */
@media (max-width: 768px) {
  .button-red {
    padding: 6px 12px; /* Auch hier etwas kleiner anpassen */
    font-size: 0.8em; /* Kleinere Schrift für Tablets */
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .button-red {
    display: block; /* Volle Breite im kleinsten Mobilformat */
    width: 100%;
    box-sizing: border-box; /* Padding und Border bleiben innerhalb der Breite */
    /* Auf Mobilgeräten oft wünschenswert, dass Block-Buttons etwas prominenter sind */
    padding: 10px 15px;
    font-size: 0.9em;
    margin-top: 10px;
  }
}


/* CSS Startseite */
section#row1
 {
    min-height: 30px; /* Höhe der Adresszeile overtop */
}
.rk-header-login a, .rk-mitglied-text a, .rk-header-telefon {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--grau);
    text-align: center;
  	font-family: Roboto;
	text-decoration: none;
	font-weight: 300;
	
}
 .rk-header-login, .rk-mitglied-text {
	 line-height: 0px;
 }
.rk-mitglied-text a  {
	font-weight: 400;
 }
 
.overtopr {
line-height: 0px;
}

.rk-title {
  	font-size: clamp(28px, 4vw, 54px);
    font-family: Oswald;
    color: var(--headercolor);
    text-align: center;
    padding-top: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.rk-subtitle {
    color: var(--headerslogancolor);
    text-align: center;
    font-family: Oswald;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        font-weight: 500;
        opacity: 0.85;
    }
}

.rk-header-login a {
  /* Verbesserungen für Typografie */
  font-size: clamp(0.8rem, 1.4vw, 1.3rem); /* Schriftgröße nochmals leicht reduziert: von 0.9rem auf 0.8rem (ca. 12.8px) und von 1.5rem auf 1.3rem (ca. 20.8px) */
  font-weight: 500; /* Dies ist bereits gut */
  line-height: 1.5; /* Hinzufügen einer Zeilenhöhe für bessere Lesbarkeit, besonders bei längeren Texten */
  color: #c5c0c0;
  /* Zusätzliche Styling-Überlegungen für Links */
  text-decoration: none; /* Entfernt die Standard-Unterstreichung von Links, falls nicht gewünscht */
  /* Oder: text-decoration: underline; für Standard-Links */

  /* Optional: Für Hover/Focus-Effekte */
  transition: color 0.3s ease, text-decoration 0.3s ease; /* Fügt eine sanfte Transition für Farbe und Unterstreichung hinzu */
}

.rk-header-login a:hover,
.rk-header-login a:focus {
  color: #F8F4EE; /* Farbe beim Hover/Fokus auf #F8F4EE geändert */
  text-decoration: underline; /* Unterstreichung beim Hover/Fokus hinzufügen für bessere User Experience */
  outline: none; /* Entfernt den blauen Browser-Fokus-Rahmen, aber stellen Sie sicher, dass eine alternative Fokus-Anzeige vorhanden ist! */
}

.rk-mitglied-text a:hover,
.rk-mitglied-text a:focus
 {
  color: #F8F4EE; /* Farbe beim Hover/Fokus auf #F8F4EE geändert */
  text-decoration: underline; /* Unterstreichung beim Hover/Fokus hinzufügen für bessere User Experience */
  outline: none; /* Entfernt den blauen Browser-Fokus-Rahmen, aber stellen Sie sicher, dass eine alternative Fokus-Anzeige vorhanden ist! */
}

p.rk-header-telefon {
    color: #c5c0c0;
    font-size: clamp(14px, 1.6vw, 18px);
}

.bannerlogo
 {
    margin-top: 10px;
}

.item-content {
    margin: 10px;
    background-color: #ffffff;
    padding: 20px;
}

.feature-icon {
    font-size: 2rem;
    color: #2f3f2f;
    margin-bottom: 0.75rem;
}


/* Allgemeiner Font für alle Überschriften und Content-Wrapper für max-width und Zentrierung */
.content-wrapper {
    margin: 0 auto;     /* zentriert */
    padding: 20px 60px;    /* Abstand links/rechts */
    box-sizing: border-box;
}

/* Überschriften H1 – H2 */
h1, h2 {
    font-family: 'Oswald', sans-serif;
}

/* Überschriften H3 – H6 */
p, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
}


h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6em 0;
  	color: var(--rot);
}

h2 {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.6em 0;
}

h3 {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5em 0;
}

h4 {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5em 0;
}

h5 {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.4em 0;
}

h6 {
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 0.4em 0;
}

/* Fließtext / Absätze */
p {
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.6;
    margin: 0 0 1em 0;
}

/* Optional: Blocksatz für längere Texte */
p.blocksatz {
    text-align: justify;
}

/* Footer */
nav#footerposm {
    margin-top: 20px;
}

/* Begin Menu CSS Styles */
.menu * {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition: all 0.35s ease;
	transition: all 0.35s ease;
}
.menu li {
	display: inline-block;
	list-style: outside none none;
	margin: 0.5em 1em;
	padding: 0;
}
.menu a {
	padding: 0.3em 0;
	color: rgba(255, 255, 255, 0.5);
	position: relative;
	text-decoration: none;
	display: inline-block;
}
.menu a:before, .menu a:after {
	height: 3px;
  	margin: 5px 0px;
	position: absolute;
	content: '';
	-webkit-transition: all 0.35s ease;
	transition: all 0.35s ease;
	background-color: #ffffff;
	width: 0;
}
.menu a:before {
	top: 0;
	left: 0;
}
.menu a:after {
	bottom: 0;
	right: 0;
}
.menu a:hover, .menu .current a {
	color: #ffffff;
}
.menu a:hover:before, .menu .current a:before, .menu a:hover:after, .menu .current a:after {
	width: 100%;
}
  
/* leere Tabelleneintraege verstecken */
.versteckt {
    visibility: collapse;
}

/* Basic Reset/Box Sizing */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* General Container Styling */
.Container {
    margin: 0 auto;
    padding: 20px;
}

/* Title Styling */
.titel h2 {
    font-family: 'Vollkorn', serif;
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 20px;
    color: #333;
}

/* Table Wrapper */
.tabelle_wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
}

/* Table Styling */
.tabelle_vorstand {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 550px;
}

.tabelle_vorstand th,
.tabelle_vorstand td {
    padding: 15px 10px;
    text-align: center;
    vertical-align: top;
    border: 1px solid #e0e0e0;
}

/* Header Row */
.tabelle_vorstand thead tr:first-child {
    background-color: #3F4A3C;
    color: #fff;
}
.tabelle_vorstand thead tr:first-child th {
    padding: 15px 10px;
}
.tabelle_vorstand thead tr:first-child p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
}

/* Spaltenüberschriften */
.tabelle_vorstand thead tr:nth-child(2) {
    background-color: #3F4A3C;
    color: #fff;
}
.tabelle_vorstand thead tr:nth-child(2) th {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Body */
.tabelle_vorstand tbody tr:nth-child(odd) {
    background-color: #ffffff;
}
.tabelle_vorstand tbody tr:nth-child(even) {
    background-color: #f8f4ee;
}

/* leere Reihen */
.versteckt {
    height: 10px;
    background-color: transparent !important;
    border: none;
}
.versteckt td {
    padding: 0;
    height: 10px;
    border: none;
}


/* ====================================================== */
/* MEDIA QUERY – max-width 600px                          */
/* ====================================================== */
@media (max-width: 600px) {

    .Container {
        padding: 20px;
    }

    .titel h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .tabelle_wrapper {
        overflow-x: hidden;
    }

    .tabelle_vorstand {
        border: none;
        min-width: auto;
    }

    .tabelle_vorstand thead {
        display: none;
    }

    .tabelle_vorstand tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        background-color: #ffffff;
    }

    .tabelle_vorstand td {
        border: none;
        display: block;
        text-align: left;
        padding: 8px 15px;
        font-size: 1rem;
        position: relative;
        padding-left: 100px;
    }

    .versteckt {
        display: block;
        height: 5px;
        margin-bottom: 5px;
        background-color: transparent !important;
        border: none;
    }
    .versteckt td {
        display: block;
        padding: 0;
        height: 5px;
        border: none;
        padding-left: 0;
    }

    .tabelle_vorstand td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 80px;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.85rem;
        color: #555;
    }

    .tabelle_vorstand thead tr:first-child {
        display: block;
        margin-bottom: 15px;
        background-color: #3F4A3C;
        color: #fff;
        border: 1px solid #3F4A3C;
        padding: 10px;
    }

    .tabelle_vorstand thead tr:first-child th {
        display: block;
        padding: 0;
        text-align: center;
        border: none;
    }

    .tabelle_vorstand thead tr:first-child p {
        font-size: 1.1rem;
        margin: 0;
    }

} 

/* ====================================================== */
/* MEDIA QUERY – max-width 480px                          */
/* ====================================================== */
@media (max-width: 480px) {

    .titel h2 {
        font-size: 1.5rem;
    }

    .tabelle_vorstand td {
        font-size: 0.95rem;
        padding-left: 90px;
    }

    .tabelle_vorstand td::before {
        width: 70px;
        font-size: 0.75rem;
        left: 10px;
    }

    .tabelle_vorstand thead tr:first-child p {
        font-size: 1rem;
    }

    .item-content {
        margin: 10px;
        background-color: #ffffff;
        padding: 20px;
    }

} 

  /* Chronik-Style */
  .chronik {
  margin: 40px auto;
  padding: 0;
}

/* Timeline Container */
.timeline {
  position: relative;
  padding: 20px 0;
  margin: 0 20px; /* Add horizontal margin to prevent content from touching edges */
}

/* Vertical Timeline Line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 5px;
  background-color: #3F4A3C;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 2px;
}

/* Each Row (Event) in the Timeline */
.row {
  display: flex;
  align-items: flex-start; /* Align content to the top of the row */
  margin-bottom: 50px;
  position: relative;
  z-index: 2; /* Bring content above the timeline line */
}

/* Year Styling - prominent and centered on the line */
.row .year {
  position: absolute;
  left: 50%;
  top: 0; /* Position at the top of the row content */
  transform: translate(-50%, -50%); /* Adjust to center on the line vertically */
  background-color: #3F4A3C; /* Blue background */
  color: #fff;
  padding: 10px 0px;
  
  font-weight: bold;
  font-size: 1.3em;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 3;
  white-space: nowrap; /* Prevent year from wrapping */
}

.images, .text {
  flex-grow: 1; /* Allow them to grow */
  flex-shrink: 1; /* Allow them to shrink */
  flex-basis: 45%; /* Starting base width */
  margin-top: 40px;
  background-color: #fff;
}


.images img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.images p { /* For photo credits */
  font-size: 0.75em;
  margin-top: 10px;
  color: #777;
  text-align: center;
}

.info_fett {
  color: #3F4A3C;
  margin-top: 0;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.info_text {
  font-size: 0.95em;
  color: #555;
}

/* Alternating Layout: Right-to-left (text on left, image on right) */
.rtr {
  flex-direction: row-reverse; /* Puts text block on the right, image on the left */
  justify-content: space-between;
}

.rtr .text {
  margin-right: 70px; /* Space for year and connector */
  text-align: right;
}

.rtr .images {
  margin-left: 0; /* Ensure no extra margin */
}

/* Alternating Layout: Left-to-right (image on left, text on right) */
.ltr {
  justify-content: space-between;
}

.ltr .text {
  margin-left: 70px; /* Space for year and connector */
  text-align: left;
}

.ltr .images {
  margin-right: 0; /* Ensure no extra margin */
}

/* Special handling for rows without images */
.row:not(:has(.images)) {
    justify-content: center; /* Center the single text block */
}
.row:not(:has(.images)) .text {
    width: calc(100% - 140px); /* Adjust width for text-only rows */
    flex-basis: auto; /* Let it define its own basis based on width */
    margin-left: 70px;
    margin-right: 70px;
}


/* Responsive Adjustments */
@media (max-width: 900px) {
  .chronik {
    margin: 20px auto;
  }
  .timeline {
    margin: 0 10px;
  }
  .row .year {
      padding: 8px 15px;
      font-size: 1.1em;
      min-width: 60px;
  }
  .images, .text {
      width: calc(50% - 60px);
      padding: 15px;
  }
  .rtr .text { margin-right: 60px; }
  .ltr .text { margin-left: 60px; }
  .row.ltr .year::after, .row.rtr .year::after {
      width: 40px;
  }
  .row:not(:has(.images)) .text {
      width: calc(100% - 120px);
      margin-left: 60px;
      margin-right: 60px;
  }
}


@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
    transform: none;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 60px;
    padding-left: 40px; /* Space for the line on the left */
  }

  .row .year {
    left: 20px; /* Align year with the new line position */
    transform: translate(-50%, -50%); /* Still center on the line */
    top: 0; /* Keep year at the event point */
    font-size: 1em;
    padding: 6px 12px;
    min-width: auto;
    border-radius: 20px;
  }

  .row .year::after {
      display: none; /* Hide connector lines in mobile view */
  }

  .images, .text {
    width: 100%; /* Full width in mobile */
    flex-basis: auto;
    margin: 0; /* Reset margins */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    order: 2; /* Text/Image content below the year */
  }

  .images {
      margin-top: 40px; /* More space for the first image block */
      order: 1; 
  }
  .text {
      margin-top: 20px; /* Space between year/image and text */
      order: 2; /* Text appears second */
  }

  .row:not(:has(.images)) {
      justify-content: flex-start; /* Align text to the left if no image */
  }
  .row:not(:has(.images)) .text {
      width: 100%; 
      margin-left: 0;
      margin-right: 0;
      margin-top: 20px;
  }
}

@media (max-width: 480px) {
  h2 { font-size: 1.4em; }
  h5 { font-size: 0.9em; }
  .row .year {
      font-size: 0.9em;
      padding: 5px 10px;
  }
  .images, .text {
      padding: 10px;
      border-radius: 6px;
  }
  .info_fett { font-size: 1.1em; }
  .info_text { font-size: 0.9em; }
}

  .login-min {
    max-width: 260px;
    margin: 0 auto;
}

.login-min input {
    width: 100%;
    padding: 7px 10px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-min button {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: #333;
    color: white;
    cursor: pointer;
}

.login-min button:hover {
    opacity: 0.9;
}


/* Intern */
.btn {
	background-color: #BD2130 !Important;
}

joomla-alert[type=warning] {
    background-color: #424D3F;
    border-color: #ffffff;
    color: #ffffff;
}
joomla-alert .joomla-alert--close
 {
    color: #ffffff;
	opacity: 100;
}


/* =========================================
   1. BASIS-SETUP (Notwendig für alle Effekte)
   ========================================= */
.rk-title {
  perspective: 1000px;         /* Erlaubt 3D-Effekte */
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 1; 
}

/* Damit Wörter zusammenbleiben */
.rk-title .word {
  display: inline-block;
  white-space: nowrap;
}

/* Basis für einzelne Buchstaben */
.rk-title .char {
  display: inline-block;
  position: relative;
  backface-visibility: hidden;
  transform-origin: center center;
  /* Standardmäßig keine Animation, wird unten überschrieben */
}

/* =========================================
   2. DIE 10 EFFEKTE
   ========================================= */

.rk-title.effect-1 .char {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.5); /* Scale etwas reduziert für schnellere Optik */
  
  /* 1. Dauer von 1.5s auf 0.6s verkürzt */
  /* 2. Cubic-Bezier angepasst für einen schnelleren Start-Snap */
  animation: cinematicBlur 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  
  /* 3. Delay von 0.05s auf 0.02s verkürzt (Buchstaben folgen schneller aufeinander) */
  animation-delay: calc(var(--char-index) * 0.02s);
}

@keyframes cinematicBlur {
  to { 
    opacity: 1; 
    filter: blur(0); 
    transform: scale(1); 
  }
}

/* --- EFFEKT 2: The 3D Flip (Klapptafel-Effekt) --- */
.rk-title.effect-2 .char {
  opacity: 0;
  transform-origin: bottom center;
  transform: rotateX(90deg) translateY(50px);
  animation: flipUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: calc(var(--char-index) * 0.05s);
}
@keyframes flipUp {
  to { opacity: 1; transform: rotateX(0deg) translateY(0); }
}

/* --- EFFEKT 3: Cyber Glitch (Digitaler Fehler) --- */
.rk-title.effect-3 .char {
  opacity: 0;
  animation: glitchReveal 0.6s steps(5) forwards;
  animation-delay: calc(var(--char-index) * 0.03s);
}
@keyframes glitchReveal {
  0% { opacity: 0; transform: translateX(-10px) skewX(20deg); text-shadow: 2px 0 red; }
  20% { opacity: 1; transform: translateX(10px) skewX(-20deg); text-shadow: -2px 0 blue; }
  40% { transform: translateX(-5px) skewX(10deg); color: #fff; }
  60% { transform: translateX(5px) skewX(-5deg); text-shadow: none; }
  80% { transform: translateX(0); }
  100% { opacity: 1; transform: translateX(0); }
}

/* --- EFFEKT 4: Elastic Snap (Gummiband) --- */
.rk-title.effect-4 .char {
  opacity: 0;
  transform: translateY(-100px);
  animation: elasticDrop 1s cubic-bezier(0.5, -0.5, 0.2, 1.5) forwards;
  animation-delay: calc(var(--char-index) * 0.05s);
}
@keyframes elasticDrop {
  to { opacity: 1; transform: translateY(0); }
}

/* --- EFFEKT 5: Liquid Smoke (Rauchig & Aufsteigend) --- */
.rk-title.effect-5 .char {
  opacity: 0;
  transform: translateY(20px) rotate(15deg);
  filter: blur(5px);
  animation: smokeRise 1.2s ease-out forwards;
  animation-delay: calc(var(--char-index) * 0.08s);
}
@keyframes smokeRise {
  to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}

/* --- EFFEKT 6: Masked Slide (Seriös & Sauber) --- */
.rk-title.effect-6 .word {
  overflow: hidden; /* Maskiert den Text, der von unten kommt */
  padding-bottom: 0.2em;
  vertical-align: top;
}
.rk-title.effect-6 .char {
  transform: translateY(120%);
  animation: slideUpMask 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--char-index) * 0.03s);
}
@keyframes slideUpMask {
  to { transform: translateY(0); }
}

/* --- EFFEKT 7: Shattered Assembly (3D Zusammenbau) --- */
.rk-title.effect-7 .char {
  opacity: 0;
  /* Zufällige Positionen simulieren */
  transform: translate3d(calc(20px * (var(--char-index) % 3 - 1)), calc(40px * (var(--char-index) % 2 - 1)), 100px) rotate(45deg);
  animation: assemble 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: calc(var(--char-index) * 0.04s);
}
@keyframes assemble {
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}

/* --- EFFEKT 8: Neon Flicker (Retro Leuchten) --- */
.rk-title.effect-8 .char {
  opacity: 0;
  color: #fff;
  animation: flickerOn 2s linear forwards;
  animation-delay: calc(var(--char-index) * 0.1s);
}
@keyframes flickerOn {
  0% { opacity: 0; text-shadow: none; }
  10% { opacity: 1; text-shadow: 0 0 10px #fff, 0 0 20px #ff00de; }
  15% { opacity: 0; text-shadow: none; }
  20% { opacity: 1; text-shadow: 0 0 10px #fff, 0 0 20px #ff00de; }
  30% { opacity: 0.5; }
  100% { opacity: 1; text-shadow: 0 0 10px #fff, 0 0 20px #ff00de; }
}

/* --- EFFEKT 9: Domino Wave (Welle) --- */
.rk-title.effect-9 .char {
  transform-origin: bottom center;
  animation: dominoWave 1s ease-in-out forwards;
  animation-delay: calc(var(--char-index) * 0.05s);
}
@keyframes dominoWave {
  0% { transform: scale(1); color: inherit; }
  50% { transform: scale(1.4) translateY(-10px); color: #ff0055; }
  100% { transform: scale(1) translateY(0); color: inherit; }
}

/* --- EFFEKT 10: Focus Pull (Trigger-Version) --- */
.rk-title.effect-10 .char {
  opacity: 0;
  filter: blur(15px);
  transform: scale(3) translateZ(50px);
  /* Wir entfernen hier die 'animation' Eigenschaft, damit sie nicht sofort startet */
}

/* Erst wenn die Klasse .is-visible hinzugefügt wird, startet die Animation */
.rk-title.effect-10.is-visible .char {
  animation: focusSnap 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: calc(var(--char-index) * 0.02s);
}

@keyframes focusSnap {
  to { 
    opacity: 1; 
    filter: blur(0); 
    transform: scale(1) translateZ(0); 
  }
}
/* --- EFFEKT 11 für den Subtitle (Korrektur für alle Seiten) --- */
.rk-subtitle.effect-11 .char {
  opacity: 0;
  transform: translateY(0px);
  display: inline-block;
}

.rk-subtitle.effect-11 .char {
  animation: simpleFadeIn 0.4s ease-out forwards;
  /* 1s warten + individuelles Buchstaben-Delay */
  animation-delay: calc(1s + (var(--char-index) * 0.01s));
}

@keyframes simpleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}