/* ========================================
   Floating Toolbar
   ======================================== */
.floating-toolbar {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 10px;
    background: #2c3e50;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-sizing: border-box;
}

.floating-toolbar.active {
    opacity: 1;
    visibility: visible;
}

.floating-toolbar button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

.floating-toolbar button:hover {
    background: rgba(255,255,255,0.15);
}

.floating-toolbar button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.floating-toolbar button.is-active {
    background: #40E0D0;
    color: #000;
}

.floating-toolbar .separator {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    margin: 0 5px;
}

.floating-toolbar .save-btn {
    background: #27ae60;
    color: #fff;
    font-weight: bold;
}

.floating-toolbar .save-btn:hover {
    background: #2ecc71;
}

.floating-toolbar .cancel-btn {
    background: #e74c3c;
    color: #fff;
    font-weight: bold;
}

.floating-toolbar .cancel-btn:hover {
    background: #c0392b;
}

/* ========================================
   Inline Editing Styles
   ======================================== */
.edit-mode [data-editable] {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.edit-mode [data-editable]:hover {
    outline: 2px dashed #f39c12;
    outline-offset: 4px;
}

.edit-mode [data-editable]::after {
    content: '✏️';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 14px;
    background: #f39c12;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.edit-mode [data-editable]:hover::after {
    opacity: 1;
}

/* Element wird gerade bearbeitet */
[data-editable].is-editing {
    position: relative;
    outline: 2px solid #40E0D0 !important;
    outline-offset: 4px;
    background: rgba(255,255,255,0.95);
    padding: 50px 10px 10px 10px;
    border-radius: 4px;
    min-height: 50px;
}

[data-editable].is-editing::after {
    display: none;
}

/* Tiptap Editor Styles */
[data-editable].is-editing .ProseMirror {
    outline: none;
    min-height: 40px;
}

[data-editable].is-editing .ProseMirror p {
    margin-bottom: 0.5em;
}

[data-editable].is-editing .ProseMirror h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #006666;
}

[data-editable].is-editing .ProseMirror h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #006666;
}

[data-editable].is-editing .ProseMirror h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #006666;
}

[data-editable].is-editing .ProseMirror ul,
[data-editable].is-editing .ProseMirror ol {
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}

[data-editable].is-editing .ProseMirror li {
    margin-bottom: 0.25em;
}

/* ========================================
   Admin Badge
   ======================================== */
.admin-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #f39c12;
    color: #fff;
    padding: 15px 23px;
    border-radius: 31px;
    font-size: 17.5px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.admin-badge:hover {
    background: #e67e22;
    transform: scale(1.05);
}

.admin-badge:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

.admin-badge.hidden {
    display: none;
}

/* ========================================
   Gestylte Überschriften im Content
   ======================================== */
.home-text h1,
.impressum-text h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #006666;
}

.home-text h2,
.impressum-text h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #006666;
}

.home-text h3,
.impressum-text h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #006666;
}

.home-text ul,
.home-text ol,
.impressum-text ul,
.impressum-text ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.home-text li,
.impressum-text li {
    margin-bottom: 0.25em;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #333;
}

.toast-close:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Toast Typen */
.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.success {
    border-left: 4px solid #27ae60;
}

.toast.success .toast-icon {
    color: #27ae60;
}

.toast.warning {
    border-left: 4px solid #f39c12;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.info {
    border-left: 4px solid #3498db;
}

.toast.info .toast-icon {
    color: #3498db;
}
