Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/*
* Gor-Uhr – Gestaltung für wiki.gegenerde.net
* Ersetzt ausschließlich die bisher gezeigten CSS-Regeln.
* Vorlage:GorUhr und JavaScript bleiben unverändert.
*/
/* Grundlayout: Uhr, Digitalanzeige und Erläuterung untereinander */
.gor-clock-wrapper {
.gor-clock-wrapper {
     display: flex;
     display: flex;
     flex-direction: row;       /* standard: nebeneinander */
     flex-direction: column;
     flex-wrap: wrap;           /* wenig platz: umbrechen */
     flex-wrap: nowrap;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     gap: 1rem;
     gap: 0.85rem;
     margin: 1rem 0;
     margin: 0.75rem auto 0.35rem;
     text-align: center;
     text-align: center;
}
}


/* -------------------------------
/* Analoge Uhr: warmes Zifferblatt und dezenter Rahmen */
  Analoge Uhr (rundes Objekt)
.gor-clock-wrapper .gor-clock {
  ------------------------------- */
.gor-clock {
     position: relative;
     position: relative;
     flex: 0 0 auto;
     flex: 0 0 auto;
Zeile 19: Zeile 24:
     height: 260px;
     height: 260px;
     border-radius: 50%;
     border-radius: 50%;
     border: 6px solid #343a40;
     border: 6px solid #64523f;
     background: radial-gradient(circle at 30% 30%, #ffffff, #e9ecef);
     background: radial-gradient(circle at 30% 28%, #fffaf1 0%, #f5ecdc 56%, #e9dcc5 100%);
     box-shadow: 0 4px 12px rgba(0,0,0,0.15);
     box-shadow:
        inset 0 0 0 2px rgba(195, 168, 126, 0.45),
        0 3px 9px rgba(54, 39, 24, 0.12);
}
}


/* -------------------------------
/* Zeiger: Positionierung und Rotation wie bisher belassen */
  Zeiger
.gor-clock-wrapper .hand {
  ------------------------------- */
 
.hand {
     position: absolute;
     position: absolute;
     left: 50%;
     left: 50%;
     top: 50%;
     top: 50%;
     transform-origin: 50% 100%;             /* rotiert um Mitte unten */
     transform-origin: 50% 100%;
     transform: translate(-50%, -100%) rotate(0deg);
     transform: translate(-50%, -100%) rotate(0deg);
     border-radius: 5px;
     border-radius: 5px;
}
}


.hand-ahn {
.gor-clock-wrapper .hand-ahn {
     width: 6px;
     width: 6px;
     height: 30%;
     height: 30%;
     background: #212529;                     /* dunkler Stundenzeiger */
     background: #43372e;
}
}


.hand-ehn {
.gor-clock-wrapper .hand-ehn {
     width: 4px;
     width: 4px;
     height: 40%;
     height: 40%;
     background: #495057;                     /* grauer Minutenzeiger */
     background: #6a5847;
}
}


.hand-ihn {
.gor-clock-wrapper .hand-ihn {
     width: 2px;
     width: 2px;
     height: 45%;
     height: 45%;
     background: #c92a2a;                     /* roter Sekundenzeiger */
     background: #a35748;
}
}


/* Mittelpunkt der Uhr */
/* Mittelpunkt */
.center-dot {
.gor-clock-wrapper .center-dot {
     position: absolute;
     position: absolute;
     width: 14px;
     width: 14px;
     height: 14px;
     height: 14px;
     border-radius: 50%;
     border-radius: 50%;
     background: #212529;
     background: #43372e;
     border: 2px solid #f8f9fa;
     border: 2px solid #f7f0e4;
     left: 50%;
     left: 50%;
     top: 50%;
     top: 50%;
     transform: translate(-50%, -50%);
     transform: translate(-50%, -50%);
     box-shadow: 0 0 3px rgba(0,0,0,0.5);
     box-shadow: 0 0 2px rgba(54, 39, 24, 0.35);
}
}


/* -------------------------------
/* Zahlen: äußere 1–10 und innere 11–20 */
  Ziffernblatt: Zahlen
.gor-clock-wrapper .gor-number {
  ------------------------------- */
 
/* für 1–10 (Außenring) */
.gor-number {
     position: absolute;
     position: absolute;
     width: 2em;
     width: 2em;
     text-align: center;
     text-align: center;
     font-size: 0.75rem;
     font-size: 0.78rem;
     color: #495057;
     color: #504337;
     transform: translate(-50%, -50%);
     transform: translate(-50%, -50%);
     pointer-events: none;
     pointer-events: none;
    font-variant-numeric: tabular-nums;
}
}


/* für 11–20 (Innenring) */
.gor-clock-wrapper .gor-number-inner {
.gor-number-inner {
     font-size: 0.66rem;
     font-size: 0.65rem;
     color: #8b7964;
     color: #72777d;
}
}


/* -------------------------------
/* Digitale Zeit: eine schlichte Box unter dem Zifferblatt */
  Digitale Anzeigenbox
.gor-clock-wrapper .gor-digital {
  ------------------------------- */
    box-sizing: border-box;
 
    display: grid;
.gor-digital {
    grid-template-columns: repeat(3, minmax(0, 1fr));
     flex: 0 0 auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.45rem;
    flex: 0 1 auto;
    width: min(100%, 300px);
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d5c2a6;
    border-radius: 8px;
    background: rgba(255, 251, 244, 0.72);
    box-shadow: none;
    color: #40352c;
     font-family: 'Lora', Georgia, serif;
     font-variant-numeric: tabular-nums;
     font-variant-numeric: tabular-nums;
    font-size: 1rem;
    border: 1px solid #a2a9b1;
    background: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    min-width: 140px;        /* verhindert abgewürgte Zeilen */
}
}


.digital-label {
.gor-clock-wrapper .digital-label {
     font-size: 0.8rem;
    grid-column: 1 / -1;
     color: #54595d;
    display: block;
     margin-right: 0.4rem;
    margin: 0;
    color: #756149;
    font-family: 'Cinzel', Georgia, serif;
     font-size: 0.72rem;
     font-weight: 600;
     letter-spacing: 0.065em;
    line-height: 1.35;
}
}


.gor-digital span {
.gor-clock-wrapper .gor-digital > span:not(.digital-label) {
     margin-right: 0.3rem;
    display: block;
     margin: 0;
    color: #40352c;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}
}


/* -------------------------------
/* Der laufend aktualisierte Ahn-Hinweis steht nicht mehr rechts daneben */
  Info-Text (unten)
.gor-clock-wrapper .gor-info {
  ------------------------------- */
    width: 100%;
.gor-info {
    max-width: 320px;
    margin: 0;
    color: #786a5b;
     font-size: 0.8rem;
     font-size: 0.8rem;
     color: #72777d;
     line-height: 1.45;
     text-align: center;
     text-align: center;
}
@media (max-width: 480px) {
    .gor-clock-wrapper {
        gap: 0.7rem;
    }
    .gor-clock-wrapper .gor-digital {
        width: min(100%, 290px);
    }
}
}

Version vom 31. Oktober 2026, 08:52 Uhr

/*
 * Gor-Uhr – Gestaltung für wiki.gegenerde.net
 * Ersetzt ausschließlich die bisher gezeigten CSS-Regeln.
 * Vorlage:GorUhr und JavaScript bleiben unverändert.
 */

/* Grundlayout: Uhr, Digitalanzeige und Erläuterung untereinander */
.gor-clock-wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: 0.75rem auto 0.35rem;
    text-align: center;
}

/* Analoge Uhr: warmes Zifferblatt und dezenter Rahmen */
.gor-clock-wrapper .gor-clock {
    position: relative;
    flex: 0 0 auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 6px solid #64523f;
    background: radial-gradient(circle at 30% 28%, #fffaf1 0%, #f5ecdc 56%, #e9dcc5 100%);
    box-shadow:
        inset 0 0 0 2px rgba(195, 168, 126, 0.45),
        0 3px 9px rgba(54, 39, 24, 0.12);
}

/* Zeiger: Positionierung und Rotation wie bisher belassen */
.gor-clock-wrapper .hand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(0deg);
    border-radius: 5px;
}

.gor-clock-wrapper .hand-ahn {
    width: 6px;
    height: 30%;
    background: #43372e;
}

.gor-clock-wrapper .hand-ehn {
    width: 4px;
    height: 40%;
    background: #6a5847;
}

.gor-clock-wrapper .hand-ihn {
    width: 2px;
    height: 45%;
    background: #a35748;
}

/* Mittelpunkt */
.gor-clock-wrapper .center-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #43372e;
    border: 2px solid #f7f0e4;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 2px rgba(54, 39, 24, 0.35);
}

/* Zahlen: äußere 1–10 und innere 11–20 */
.gor-clock-wrapper .gor-number {
    position: absolute;
    width: 2em;
    text-align: center;
    font-size: 0.78rem;
    color: #504337;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

.gor-clock-wrapper .gor-number-inner {
    font-size: 0.66rem;
    color: #8b7964;
}

/* Digitale Zeit: eine schlichte Box unter dem Zifferblatt */
.gor-clock-wrapper .gor-digital {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.45rem;
    flex: 0 1 auto;
    width: min(100%, 300px);
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d5c2a6;
    border-radius: 8px;
    background: rgba(255, 251, 244, 0.72);
    box-shadow: none;
    color: #40352c;
    font-family: 'Lora', Georgia, serif;
    font-variant-numeric: tabular-nums;
}

.gor-clock-wrapper .digital-label {
    grid-column: 1 / -1;
    display: block;
    margin: 0;
    color: #756149;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.065em;
    line-height: 1.35;
}

.gor-clock-wrapper .gor-digital > span:not(.digital-label) {
    display: block;
    margin: 0;
    color: #40352c;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

/* Der laufend aktualisierte Ahn-Hinweis steht nicht mehr rechts daneben */
.gor-clock-wrapper .gor-info {
    width: 100%;
    max-width: 320px;
    margin: 0;
    color: #786a5b;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 480px) {
    .gor-clock-wrapper {
        gap: 0.7rem;
    }

    .gor-clock-wrapper .gor-digital {
        width: min(100%, 290px);
    }
}