:root {
    --primary-accent: #ff6f61;
    --secondary-accent: #61aaff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e1e2f, #2a2a4a);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}





h1 {
    font-size: 2.5em;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--primary-accent);
    text-shadow: 0 0 5px rgba(255, 111, 97, 0.3);
    animation: fadeIn 1s ease-in;
}

.container {
    width: 100%;
    max-width: 1200px;
    background: rgba(40, 40, 60, 0.9);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.path-info {
    font-size: 1em;
    margin-bottom: 15px;
    color: #c0c0d0;
    background: rgba(255, 111, 97, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.path-info strong {
    color: var(--primary-accent);
}

.nav-buttons {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


.traffic-row {
    margin: 1px 0;
    line-height: 1.25;
}

.traffic-main {
    font-weight: 600;
}

.traffic-mirror {
    opacity: 0.75;
}

.traffic-sep {
    margin: 0 4px;
}


.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-accent);
    color: #1e1e2f;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    margin: 5px;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 111, 97, 0.3);
}

.nav-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.nav-btn::before {
    font-size: 1.2em;
    margin-right: 5px;
    color: var(--secondary-accent);
    transition: transform 0.2s ease;
}

.nav-btn:hover::before {
    transform: translateY(-2px);
}

.file-list, .stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.item {
    background: linear-gradient(135deg, rgba(50, 50, 70, 0.8), rgba(40, 40, 60, 0.9));
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.item:nth-child(1) { animation-delay: 0.1s; }
.item:nth-child(2) { animation-delay: 0.2s; }
.item:nth-child(3) { animation-delay: 0.3s; }
.item:nth-child(4) { animation-delay: 0.4s; }

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 111, 97, 0.4);
    background: linear-gradient(135deg, rgba(70, 70, 90, 0.8), rgba(60, 60, 80, 0.9));
}

.item .item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #e0e0e0;
}

.item .item-content > span {
    font-weight: 600;
    font-size: 1.25em;
    margin-left: -10px;
    margin-bottom: 10px;
}

.item .item-content > span:hover {
    color: var(--primary-accent);
}

.item .file-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: #c0c0d0;
    font-size: 0.9em;
}

.item .file-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 111, 97, 0.1);
    padding: 5px 10px;
    border-radius: 10px;
}

.item .file-info span strong {
    color: var(--primary-accent);
    font-weight: 600;
}

.stat-card {
    background: linear-gradient(135deg, rgba(50, 50, 70, 0.8), rgba(40, 40, 60, 0.9));
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 111, 97, 0.4);
    background: linear-gradient(135deg, rgba(70, 70, 90, 0.8), rgba(60, 60, 80, 0.9));
}

.stat-card h2 {
    font-size: 1.2em;
    color: var(--primary-accent);
    word-break: break-word;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.5em;
    color: #e0e0e0;
}

.stat-card p span {
    font-size: 0.8em;
    color: #c0c0d0;
}

.stats-summary {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1em;
    color: #c0c0d0;
}

.stats-summary .all-stats-link {
    font-size: 0.9em;
    color: var(--primary-accent);
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    text-shadow: 0 0 5px rgba(255, 111, 97, 0.3);
}

.stats-summary .all-stats-link:hover {
    color: #ffffff;
    text-decoration: underline;
    background: rgba(255, 111, 97, 0.2);
}

.pagination {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    padding: 8px 16px;
    background: var(--primary-accent);
    color: #1e1e2f;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.pagination a:hover {
    background: #ffffff;
}

.pagination span {
    padding: 8px 16px;
    color: #c0c0d0;
}

.footer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(40, 40, 60, 0.9);
    border-radius: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #c0c0d0;
    border-top: 1px solid rgba(255, 111, 97, 0.2);
}

.footer p {
    margin-bottom: 10px;
}

.footer .important-info {
    font-size: 1.1em;
    color: var(--primary-accent);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 111, 97, 0.5);
    margin-bottom: 15px;
}


.footer .edl-info {
    font-size: 2.1em;
    color: var(--primary-accent);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 111, 97, 0.5);
    margin-bottom: 15px;
}


.support-section {
    margin: 10px 0;
}

.support-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--primary-accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


.support-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.support-btn {
    display: inline-flex;              /* statt inline-block, damit Icon+Text zentriert */
    align-items: center;
    justify-content: center;
    gap: 8px;                          /* Abstand zwischen Icon & Text */
    padding: 10px 20px;
    background: var(--primary-accent);
    color: #1e1e2f !important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    border: 2px solid transparent;
    text-shadow: 0 0 5px rgba(255, 111, 97, 0.3);
}

.support-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
    border-color: var(--primary-accent);
}

.support-btn img.btn-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.support-btn::before {
    transition: transform 0.2s ease;
}

.support-btn:hover::before {
    transform: translateY(-2px);
}

.disclaimer, .contact {
    margin-top: 10px;
}

.contact a {
    color: var(--primary-accent);
    text-decoration: none;
    text-shadow: 0 0 5px rgba(255, 111, 97, 0.3);
}

.contact a:hover {
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    body { padding: 10px; }
    h1 { font-size: 1.5em; }
    .container { padding: 10px; }
    .file-list, .stats-container { grid-template-columns: 1fr; gap: 10px; }
    .nav-btn { padding: 8px 15px; font-size: 0.9em; }
    .support-links { gap: 10px; }
    .support-btn { padding: 8px 15px; font-size: 0.9em; }
    .support-title { font-size: 0.9em; }
    .pagination a, .pagination span { padding: 6px 12px; font-size: 0.8em; }
    .stats-summary { font-size: 0.9em; }
    .stats-summary .all-stats-link { font-size: 0.8em; padding: 3px 8px; }
    .item { padding: 15px; }
    .footer .important-info { font-size: 1em; }
    .footer .edl-info { font-size: 1em; }
}

@media (max-width: 600px) and (orientation: landscape) {
    .file-list, .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
}

/* Styling für den Scroll-Effekt */
#log-display {
    width: 100%;
    max-width: 1200px;
    height: 150px; /* Höhe des Bereichs */
    background: rgba(40, 40, 60, 0.9); /* Angepasst an Container- und Footer-Farbe */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 20px; /* Abstand zum Footer */
}

#log-display canvas {
    width: 100%;
    height: 100%;
}



.md5-container {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.md5-back {
    display: inline-block;
    background-color: #ff5e5e;
    color: #000;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
}

.md5-back:hover {
    background-color: #ff3c3c;
}

.md5-header {
    font-size: 36px;
    font-weight: 800;
    color: #ff5e5e;
    margin-bottom: 40px;
}

.md5-entry {
    background-color: #1e1e1e;
    padding: 16px 20px;
    margin-bottom: 25px;
    border-left: 5px solid #ff5e5e;
    line-height: 1.7;
    font-size: 17px;
    word-break: break-word;
}

.md5-entry code {
    display: block;
    font-size: 15px;
    margin-top: 8px;
    color: #aaa;
}

.zip-browser {
    max-width: 900px;
    margin: auto;
    background-color: #1a1a2e;
    padding: 30px;
    border-radius: 12px;
    color: #ffffff;
}

.zip-browser h1 {
    text-align: center;
    font-size: 1.8em;
    color: #ff4c4c;
    margin-bottom: 20px;
}

.zip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zip-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #252540;
    margin-bottom: 6px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.2s ease;
    font-family: "Segoe UI", sans-serif;
    font-size: 15px;
}

.zip-list li:hover {
    background: #2e2e50;
}

.zip-list li a {
    text-decoration: none;
    color: #4ea6ff;
    font-weight: bold;
}

















.zip-list li a:hover {
    text-decoration: underline;
}

.zip-dir {
    color: #f0c674;
}


.orangefox-link {
  color: #ff6f3c; /* OrangeFox-ähnlich */
  text-decoration: underline;
}

.orangefox-link:hover {
  color: #00e29b; /* Donation-Grün beim Hover */
  text-decoration: underline;
}




.zip-file {
    color: #c8c8c8;
}

.zip-subfolder {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #444;
}

.folder-header {
    cursor: pointer;
    font-weight: bold;
    color: #f0c674;
    margin-bottom: 5px;
}
.folder-header:hover {
    text-decoration: underline;
}

body.zip-viewer-page {
    display: block;
    padding: 30px;
}



.support-links {
    text-align: center;
    margin: 10px 0;
}

.impressum-link {
    text-align: center;
    font-size: 0.85em;
    margin-top: 10px;
}

.footer a {
    color: #00c896;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #00e0aa;
}

.donation-note a,
.contact a {
    color: #00c896;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.donation-note a:hover,
.contact a:hover {
    color: #00e0aa;
}

.donation-note {
    font-size: 1.2em;
}


/* Impressum-Link bleibt wie gehabt */
.impressum-link a {
    color: #888;
    text-decoration: none;
}
.impressum-link a:hover {
    color: #aaa;
}


.support-links-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* <- Abstand zwischen Button und Spendentext */
}







/* nur rot + scale-pulse, kein Glow */
.blink-red {
  color: #ff1a1a;        /* konstant rot */
  font-weight: 700;
  display: inline-block; /* nötig, damit transform sauber greift */
  will-change: transform;
  animation: scalePulse 2.4s ease-in-out infinite;
}

@keyframes scalePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); } /* Stärke des Pulses */
}

/* Rücksicht auf reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  .blink-red { animation: none; }
}






















































/* dezenter 14d-Chip – beeinflusst kein Layout */
.badge-14d{
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  margin-left: 8px;   /* sitzt neben dem Ordnernamen/Downloads */
}



/* File-Info immer in EINER Zeile halten */
.file-list .file-info{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;      /* wichtig: kein Zeilenumbruch */
  white-space: nowrap;    /* verhindert Umbruch innerhalb der Badges */
}

/* Alle Info-Badges als Inline-Flex, damit sie nicht umbrechen */
.file-list .file-info > span{
  display: inline-flex;
  align-items: center;
}

/* Der 14d-Chip braucht dann keinen extra Margin-Shift */
.file-list .file-info .badge-14d{
  margin-left: 0;
}




/* Nur Ordner-Karten anvisieren – NICHT Dateien */
.file-list a.folder-badge { 
  position: relative; 
}

/* 14d-Badge klein & absolut; sitzt sauber unter dem Titel */
.file-list a.folder-badge { position: relative; }

/* Mehrere Badges (1d, 7d, 30d, all) nebeneinander unter dem Titel */
.file-list a.folder-badge {
  position: relative;
}







/* Container für alle Badges */
.file-list a.folder-badge .item-content{
  position: relative;
  padding-bottom: 26px;   /* Platz für die Badges unter dem Titel */
}

/* Grundstyle + Position für die Badges */
.file-list a.folder-badge .badge-14d{
  position: absolute;
  bottom: -23px;           /* statt -20px: sitzt direkt unter dem Titel */
  font-size: 10px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  pointer-events: none;
}

/* horizontale Verschiebung der einzelnen Badges */
.file-list a.folder-badge .badge-14d:nth-of-type(2){ left: 0px; }    /* 1d */
.file-list a.folder-badge .badge-14d:nth-of-type(3){ left: 65px; }   /* 7d */
.file-list a.folder-badge .badge-14d:nth-of-type(4){ left: 140px; }  /* 30d */
.file-list a.folder-badge .badge-14d:nth-of-type(5){ left: 215px; }  /* all */

/* Datei-Badges bleiben unverändert (optional, falls vorhanden) */
.file-list .file-info .badge-14d{
  font-size: 11px;
  padding: 3px 6px;
}





















.wiggle-beer {
    display: inline-block;
    font-size: 2.0em; /* schön groß */
    transition: transform 0.3s ease;
    vertical-align: middle;
    margin-right: 0px;
}

.wiggling {
    animation: beerWiggle 0.6s ease;
}

@keyframes beerWiggle {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(-18deg); }
    40%  { transform: rotate(18deg); }
    60%  { transform: rotate(-12deg); }
    80%  { transform: rotate(12deg); }
    100% { transform: rotate(0deg); }
}

.info-box {
    max-width: 900px;          /* nicht zu breit */
    margin: 20px auto;         /* oben/unten Abstand, zentriert */
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05); /* halbtransparenter Hintergrund */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;        /* Text mittig */
    font-size: 15px;
    line-height: 1.5;
}

.info-box p {
    font-size: 1.15em; /* etwas größer als normal */
    line-height: 1.4;
    font-weight: 500;
}







/* ===== OTA PAGE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.ota-container {
  max-width: 980px;
  margin: 40px auto;
  padding: 24px;
  background: #111827;
  border-radius: 16px;
  color: #e6eef8;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
}

/* Header mit kleinem Donate rechts */
.ota-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.ota-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ota-sub { color:#9fb0c2; margin:0; }
.ota-header h2 { margin:0; }

/* kleiner, dezenter Donate-Button */
.mini-dono {
  background: #00e29b;
  color: #042;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  height: 32px;
}
.mini-dono:hover {
  background: #08f3aa;
  transform: translateY(-1px);
}

/* Einheitliche Höhe und zentrierte Elemente */
select, button {
  height: 42px;
  line-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.row, .ota-row {
  display: flex;
  align-items: flex-end; /* statt center -> untere Kante bündig */
  gap: 12px;
  flex-wrap: wrap;
}

/* Inline-Override, falls das HTML noch align-self:flex-end hat */
.ota-row > div[style*="align-self:flex-end"] {
  align-self: auto !important;
}

/* === Grundkomponenten === */
.ota-select,
.ota-button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.ota-select {
  background: #0f172a;
  color: #e6eef8;
  border: 1px solid #24314a;
  min-width: 200px;
}

.ota-button {
  background: #ff6f61;
  color: #071129;
}
.ota-button:hover {
  background: #ff867a;
}

/* === Chips & Result === */
.ota-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #24314a;
  color: #9fb0c2;
  font-size: 0.8rem;
  margin-right: 5px;
}

.ota-result {
  margin-top: 18px;
  padding: 14px;
  background: #0b1220;
  border-radius: 12px;
}

.ota-error {
  color: #ff7777;
}

/* === Buttons === */
.ota-btn,
.ota-button,
button,
button#resetButton {
  height: 42px;
  line-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

/* Haupt-Download-Button */
.ota-btn {
  background: #00e29b;
  color: #042;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent; /* gleicht Ghost-Borderhöhe aus */
}
.ota-btn:hover {
  background: #08f3aa;
}

/* Reset-Button */
.ota-btn.ghost,
button#resetButton {
  background: #24314a;
  color: #e6eef8;
  border: 1px solid #2a3a56;
}
.ota-btn.ghost:hover,
button#resetButton:hover {
  background: #2b354a;
}

/* Disabled-Button */
.ota-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Zusatzkomponenten === */
.ota-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #24314a;
  color: #9fb0c2;
  font-size: 0.8rem;
}

/* === Timer Info (Ablaufzeit) === */
.ota-timer {
  font-size: 1rem;
  font-weight: 700;
  color: #9fb0c2;
  margin-top: 12px;
  background: rgba(36, 49, 74, 0.35);
  padding: 8px 14px;
  border-radius: 10px;
  display: inline-block;
}

.ota-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* === OTA manual-only help === */
.ota-help {
  margin-top: 14px;
  color: #c8d3e1;
  display: grid;
  gap: 14px;
}
.ota-help h4 {
  margin: 0 0 4px 0;
  color: #e6eef8;
}
.ota-help ol {
  margin: 6px 0 0 18px;
}
.ota-code {
  margin-top: 6px;
  padding: 10px 12px;
  padding-right: 60px; /* Platz für Copy-Button */
  background: #0a1322;
  border: 1px solid #1e2b44;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
  white-space: pre-wrap;
  word-break: break-all;
  color: #d7e2f0;
  position: relative;
}
.ota-mini-btn {
  position: absolute;
  top: 45%; /* leicht über Mitte für optisches Gleichgewicht */
  right: 8px;
  transform: translateY(-50%);
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: #24314a;
  color: #e6eef8;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.ota-note {
  font-size: .86rem;
  color: #9fb0c2;
  margin-top: 8px;
}

/* === Alert Banner === */
.ota-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.3;
  border: 1px solid transparent;
}

.ota-alert-danger {
  background: #2a0d0d;
  color: #ffb3b3;
  border-color: #7a1f1f;
}

/* Abstand zwischen Alert und Help */
.ota-alert + .ota-help {
  margin-top: 16px;
}







/* ===== Mobile Optimierungen (clean) ===== */



/* Fix: verhindert Breiten-Sprung beim Ergebnis */
.ota-container {
  width: min(92vw, 980px); /* max gleich wie vorher */
  min-width: 300px;        /* bleibt leicht stabil beim Laden */
  transition: width 0.25s ease; /* smooth Übergang */
}




/* Tablet und kleiner */
@media (max-width: 900px) {
  .ota-container {
    margin: 16px auto;
    padding: 16px;
    border-radius: 14px;
  }

  .ota-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .ota-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .mini-dono {
    align-self: flex-start;
    height: 36px;
    padding: 6px 14px;
    font-size: 0.9rem;
  }

  /* Form stapeln & Full-Width */
  .ota-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .ota-row > div {
    width: 100%;
    min-width: 0; /* verhindert Überlauf */
  }

  .ota-select,
  .ota-btn,
  .ota-button,
  button,
  button#resetButton {
    width: 100%;
    min-width: 0;
    height: 48px;
    line-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
  }

  /* Resultbox sauber stapeln */
  #resultBox {
    display: grid;
    gap: 12px;
    min-width: 0;
  }
  #resultBox * {
    min-width: 0;
    max-width: 100%;
  }

  /* Chips umbrechen */
  #resultBox > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .ota-chip {
    margin-right: 0;
    overflow-wrap: anywhere;
  }

  /* Actions vertikal + vollbreit */
  .ota-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Timer/Alert schön umbrochen */
  .ota-timer,
  .ota-alert {
    width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  /* Copy/Code: kompakt, EINZEILIG scrollend, Button oben rechts */
  .ota-code {
    position: relative;
    padding: 10px 48px 10px 12px;  /* Platz rechts für Button */
    white-space: normal;           /* Container selbst bricht nicht komisch */
    overflow: hidden;              /* Scroll nur im Span */
  }
  .ota-code > span {
    display: block;
    white-space: nowrap;           /* EINZEILIG */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .ota-mini-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    transform: none;
    padding: 6px 10px;
    border-radius: 8px;
    height: auto;                  /* nicht auf 42/48px aufblasen */
    line-height: 1;
  }
}

/* Phone-optimiert */
@media (max-width: 640px) {
  .ota-container { padding: 14px; }
  label { display:block; margin-bottom:6px; font-size:0.95rem; }

  .ota-btn,
  .ota-button,
  button,
  button#resetButton {
    font-size: 1rem;
    font-weight: 800;
  }

  .ota-header h2 { font-size: 1.25rem; }
  .ota-sub      { font-size: 0.95rem; }
}

/* Ultra-small */
@media (max-width: 400px) {
  .ota-mini-btn {
    position: static;
    margin-top: 8px;
    display: inline-flex;
  }
}

/* Super schmale Geräte/Side-Panels */
@media (max-width: 360px) {
  .mini-dono { width: 100%; justify-content: center; }
  .ota-chip  { font-size: 0.72rem; }
  .ota-timer { font-size: 0.92rem; }
}



/* Mehr Abstand zwischen "Get final link" und "Reset" – nur mobil */
@media (max-width: 900px) {
  /* der letzte <div> im Formular ist dein Button-Wrapper */
  #otaForm > div:last-child {
    flex-direction: column !important; /* untereinander */
    gap: 14px !important;              /* größerer Abstand */
  }

  /* Fallback, falls der Wrapper nicht greift */
  #otaForm .ota-btn + .ota-btn,
  #otaForm button + button {
    margin-top: 12px;
  }
}






