|
4 | 4 | .container { |
5 | 5 | max-width: 1000px; /* Breiterer Container für das zweispaltige Layout */ |
6 | 6 | animation: fadeIn 0.5s ease-in-out; |
| 7 | + width: 100%; |
| 8 | + padding: var(--spacing-md); |
| 9 | + box-sizing: border-box; |
| 10 | +} |
| 11 | + |
| 12 | +/* Verbesserte Unterstützung für Safari */ |
| 13 | +@supports (-webkit-touch-callout: none) { |
| 14 | + .container { |
| 15 | + width: 100%; |
| 16 | + max-width: 100%; |
| 17 | + padding-left: 10px; |
| 18 | + padding-right: 10px; |
| 19 | + } |
7 | 20 | } |
8 | 21 |
|
9 | 22 | @keyframes fadeIn { |
|
117 | 130 | padding: var(--spacing-sm); |
118 | 131 | } |
119 | 132 |
|
| 133 | +/* Anpassung für mobile Geräte */ |
| 134 | +@media (max-width: 600px) { |
| 135 | + .calendars-container { |
| 136 | + grid-template-columns: repeat(2, 1fr); /* Zweispaltig auf kleineren Geräten */ |
| 137 | + } |
| 138 | +} |
| 139 | + |
| 140 | +@media (max-width: 400px) { |
| 141 | + .calendars-container { |
| 142 | + grid-template-columns: 1fr; /* Einspaltig auf sehr kleinen Geräten */ |
| 143 | + } |
| 144 | +} |
| 145 | + |
120 | 146 | .appointments-container:hover, |
121 | 147 | .calendars-container:hover { |
122 | 148 | box-shadow: 0 4px 8px var(--shadow-color); |
@@ -320,6 +346,19 @@ textarea:focus { |
320 | 346 | display: flex; |
321 | 347 | align-items: center; |
322 | 348 | justify-content: center; |
| 349 | + -webkit-appearance: none; /* Verhindert Safari-spezifische Button-Darstellungsprobleme */ |
| 350 | + appearance: none; |
| 351 | +} |
| 352 | + |
| 353 | +@media (max-width: 480px) { |
| 354 | + .appointments-actions { |
| 355 | + flex-direction: column; |
| 356 | + } |
| 357 | + |
| 358 | + .appointments-actions button { |
| 359 | + width: 100%; |
| 360 | + margin-bottom: 8px; |
| 361 | + } |
323 | 362 | } |
324 | 363 |
|
325 | 364 | .appointments-actions button:hover { |
@@ -378,6 +417,12 @@ textarea:focus { |
378 | 417 | margin-bottom: 0; |
379 | 418 | } |
380 | 419 |
|
| 420 | +@media (max-width: 480px) { |
| 421 | + .format-options { |
| 422 | + grid-template-columns: 1fr; /* Einspaltig auf sehr kleinen Geräten */ |
| 423 | + } |
| 424 | +} |
| 425 | + |
381 | 426 | /* Format-Option */ |
382 | 427 | .format-option { |
383 | 428 | display: flex; |
@@ -557,6 +602,27 @@ textarea:focus { |
557 | 602 | border-radius: var(--border-radius); |
558 | 603 | border: 1px solid var(--border-color); |
559 | 604 | box-shadow: 0 2px 4px var(--shadow-color); |
| 605 | + -webkit-overflow-scrolling: touch; /* Verbessert das Scrolling auf iOS */ |
| 606 | +} |
| 607 | + |
| 608 | +/* Mobile Anpassungen für das Layout */ |
| 609 | +@media (max-width: 768px) { |
| 610 | + .appointments-layout { |
| 611 | + grid-template-columns: 1fr; /* Einspaltiges Layout auf mobilen Geräten */ |
| 612 | + gap: var(--spacing-md); |
| 613 | + } |
| 614 | + |
| 615 | + .appointments-main, |
| 616 | + .appointments-sidebar { |
| 617 | + grid-column: 1; |
| 618 | + } |
| 619 | + |
| 620 | + .appointments-sidebar { |
| 621 | + position: relative; /* Keine sticky Position auf mobilen Geräten */ |
| 622 | + top: 0; |
| 623 | + max-height: none; |
| 624 | + margin-top: var(--spacing-md); |
| 625 | + } |
560 | 626 | } |
561 | 627 |
|
562 | 628 | /* Sidebar-Abschnitte */ |
@@ -590,6 +656,28 @@ textarea:focus { |
590 | 656 | .generate-buttons .btn { |
591 | 657 | width: 100%; |
592 | 658 | text-align: center; |
| 659 | + -webkit-appearance: none; /* Verhindert Safari-spezifische Button-Darstellungsprobleme */ |
| 660 | + appearance: none; |
| 661 | + padding: 12px 16px; /* Größere Buttons für Touch-Geräte */ |
| 662 | +} |
| 663 | + |
| 664 | +/* Safari-spezifische Anpassungen */ |
| 665 | +@supports (-webkit-touch-callout: none) { |
| 666 | + /* Nur für Safari auf iOS */ |
| 667 | + .btn, |
| 668 | + input[type="submit"], |
| 669 | + button { |
| 670 | + -webkit-appearance: none; |
| 671 | + appearance: none; |
| 672 | + border-radius: var(--border-radius); |
| 673 | + } |
| 674 | + |
| 675 | + .appointments-actions button { |
| 676 | + display: inline-flex; |
| 677 | + width: auto; |
| 678 | + min-width: 120px; |
| 679 | + margin: 4px; |
| 680 | + } |
593 | 681 | } |
594 | 682 |
|
595 | 683 | /* Spinner-Overlay */ |
|
0 commit comments