style.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. /* Reset and Base Styles */
  2. :root {
  3. --brand-primary: #2f3541;
  4. --brand-primary-dark: #242a33;
  5. --brand-danger: #cf2e2e;
  6. --brand-danger-dark: #b12727;
  7. --brand-accent: #cac300;
  8. --brand-dark: #1b1b1b;
  9. --brand-text: #f5f7fb;
  10. --brand-muted: #c7ccd6;
  11. --brand-surface: #2f3541;
  12. --brand-surface-alt: #3a4150;
  13. --brand-bg: #28292a;
  14. --brand-border: #3b4252;
  15. }
  16. * {
  17. margin: 0;
  18. padding: 0;
  19. box-sizing: border-box;
  20. }
  21. body {
  22. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  23. line-height: 1.6;
  24. color: var(--brand-text);
  25. background-color: var(--brand-bg);
  26. }
  27. a {
  28. color: var(--brand-accent);
  29. }
  30. a:hover {
  31. color: #e0d700;
  32. }
  33. .container {
  34. max-width: 1200px;
  35. margin: 0 auto;
  36. padding: 0 20px;
  37. }
  38. /* Header */
  39. .site-header {
  40. background-color: var(--brand-primary);
  41. color: white;
  42. padding: 0.9rem 0;
  43. box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  44. }
  45. .header-inner {
  46. display: flex;
  47. align-items: center;
  48. justify-content: space-between;
  49. gap: 2rem;
  50. }
  51. .brand {
  52. display: flex;
  53. align-items: center;
  54. gap: 1rem;
  55. color: white;
  56. text-decoration: none;
  57. }
  58. .brand-logo {
  59. height: 52px;
  60. width: auto;
  61. display: block;
  62. filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  63. }
  64. .brand-text {
  65. display: flex;
  66. flex-direction: column;
  67. line-height: 1.1;
  68. }
  69. .brand-title {
  70. font-size: 1.3rem;
  71. font-weight: 700;
  72. letter-spacing: 0.02em;
  73. }
  74. .brand-subtitle {
  75. font-size: 0.9rem;
  76. font-weight: 500;
  77. opacity: 0.9;
  78. }
  79. .site-nav {
  80. display: flex;
  81. align-items: center;
  82. gap: 1.5rem;
  83. }
  84. .site-nav a {
  85. color: white;
  86. text-decoration: none;
  87. font-weight: 600;
  88. letter-spacing: 0.02em;
  89. }
  90. .site-nav a:hover {
  91. color: var(--brand-accent);
  92. }
  93. /* Main Content */
  94. main {
  95. min-height: calc(100vh - 200px);
  96. padding: 2rem 0;
  97. }
  98. /* Buttons */
  99. .btn {
  100. display: inline-block;
  101. padding: 0.75rem 1.5rem;
  102. background-color: var(--brand-danger);
  103. color: white;
  104. text-decoration: none;
  105. border: none;
  106. border-radius: 4px;
  107. cursor: pointer;
  108. font-size: 1rem;
  109. font-weight: 500;
  110. transition: background-color 0.3s;
  111. }
  112. .btn:hover {
  113. background-color: var(--brand-danger-dark);
  114. }
  115. .btn-secondary {
  116. background-color: transparent;
  117. border: 1px solid var(--brand-border);
  118. color: var(--brand-text);
  119. }
  120. .btn-secondary:hover {
  121. background-color: var(--brand-surface-alt);
  122. }
  123. .btn-small {
  124. padding: 0.5rem 1rem;
  125. font-size: 0.9rem;
  126. }
  127. /* Product Grid */
  128. .products-grid {
  129. display: grid;
  130. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  131. gap: 2rem;
  132. margin-top: 2rem;
  133. }
  134. .product-card {
  135. background: var(--brand-surface);
  136. border-radius: 8px;
  137. overflow: hidden;
  138. box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  139. transition: transform 0.3s, box-shadow 0.3s;
  140. }
  141. .product-card:hover {
  142. transform: translateY(-5px);
  143. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  144. }
  145. .product-card img {
  146. width: 100%;
  147. height: 200px;
  148. object-fit: cover;
  149. background-color: var(--brand-border);
  150. }
  151. .product-card-content {
  152. padding: 1.5rem;
  153. }
  154. .product-card h3 {
  155. font-size: 1.2rem;
  156. margin-bottom: 0.5rem;
  157. color: var(--brand-accent);
  158. }
  159. .product-card .price {
  160. font-size: 1.5rem;
  161. font-weight: bold;
  162. color: var(--brand-text);
  163. margin: 0.5rem 0;
  164. }
  165. .product-card .stock {
  166. font-size: 0.9rem;
  167. color: var(--brand-muted);
  168. margin-bottom: 1rem;
  169. }
  170. .product-card .stock.in-stock {
  171. color: var(--brand-accent);
  172. }
  173. .product-card .stock.out-of-stock {
  174. color: var(--brand-danger);
  175. }
  176. /* Forms */
  177. .form-group {
  178. margin-bottom: 1.5rem;
  179. }
  180. .form-group label {
  181. display: block;
  182. margin-bottom: 0.5rem;
  183. font-weight: 500;
  184. }
  185. .form-group input,
  186. .form-group textarea,
  187. .form-group select {
  188. width: 100%;
  189. padding: 0.75rem;
  190. border: 1px solid var(--brand-border);
  191. border-radius: 4px;
  192. font-size: 1rem;
  193. font-family: inherit;
  194. background: var(--brand-surface-alt);
  195. color: var(--brand-text);
  196. }
  197. ::placeholder {
  198. color: var(--brand-muted);
  199. }
  200. .form-group input:focus,
  201. .form-group textarea:focus,
  202. .form-group select:focus {
  203. outline: none;
  204. border-color: var(--brand-accent);
  205. box-shadow: 0 0 0 3px rgba(202, 195, 0, 0.2);
  206. }
  207. /* Cart */
  208. .cart-item {
  209. background: var(--brand-surface);
  210. padding: 1.5rem;
  211. margin-bottom: 1rem;
  212. border-radius: 8px;
  213. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  214. display: flex;
  215. justify-content: space-between;
  216. align-items: center;
  217. }
  218. .cart-item-info {
  219. flex: 1;
  220. }
  221. .cart-item-actions {
  222. display: flex;
  223. align-items: center;
  224. gap: 1rem;
  225. }
  226. .quantity-input {
  227. width: 60px;
  228. padding: 0.5rem;
  229. text-align: center;
  230. }
  231. /* Tables */
  232. table {
  233. width: 100%;
  234. background: var(--brand-surface);
  235. border-collapse: collapse;
  236. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  237. border-radius: 8px;
  238. overflow: hidden;
  239. }
  240. table th {
  241. background-color: var(--brand-primary);
  242. color: white;
  243. padding: 1rem;
  244. text-align: left;
  245. font-weight: 600;
  246. }
  247. table td {
  248. padding: 1rem;
  249. border-top: 1px solid var(--brand-border);
  250. }
  251. table tr:hover {
  252. background-color: var(--brand-surface-alt);
  253. }
  254. /* Responsive table wrapper: full width, horizontal scroll when needed, cell wrapping */
  255. .table-responsive {
  256. width: 100%;
  257. overflow-x: auto;
  258. -webkit-overflow-scrolling: touch;
  259. margin-bottom: 1.5rem;
  260. }
  261. .table-responsive table {
  262. width: 100%;
  263. }
  264. .table-responsive th,
  265. .table-responsive td {
  266. word-break: break-word;
  267. overflow-wrap: break-word;
  268. white-space: normal;
  269. }
  270. /* Admin: use more horizontal space so tables fit */
  271. body.admin-page .container {
  272. max-width: none;
  273. padding-left: 1rem;
  274. padding-right: 1rem;
  275. }
  276. /* Alerts */
  277. .alert {
  278. padding: 1rem;
  279. border-radius: 4px;
  280. margin-bottom: 1.5rem;
  281. background: var(--brand-surface);
  282. color: var(--brand-text);
  283. border: 1px solid var(--brand-border);
  284. }
  285. .alert-success {
  286. border-color: var(--brand-accent);
  287. }
  288. .alert-error {
  289. border-color: var(--brand-danger);
  290. }
  291. .alert-info {
  292. border-color: #ffffff;
  293. }
  294. .alert-warning {
  295. border-color: var(--brand-accent);
  296. }
  297. /* Main page disclaimer */
  298. .disclaimer-box {
  299. margin: 1rem 0 1.5rem;
  300. padding: 1rem;
  301. border: 1px solid var(--brand-border);
  302. border-left: 4px solid var(--brand-accent);
  303. background: var(--brand-surface);
  304. border-radius: 6px;
  305. }
  306. .disclaimer-box p + p {
  307. margin-top: 0.4rem;
  308. }
  309. .category-filter-bar {
  310. display: flex;
  311. gap: 0.75rem;
  312. margin: 1.5rem 0;
  313. overflow-x: auto;
  314. flex-wrap: nowrap;
  315. white-space: nowrap;
  316. padding-bottom: 0.25rem;
  317. -webkit-overflow-scrolling: touch;
  318. }
  319. .category-filter-bar .btn {
  320. flex: 0 0 auto;
  321. white-space: nowrap;
  322. }
  323. /* Footer */
  324. footer {
  325. background-color: var(--brand-primary);
  326. color: white;
  327. text-align: center;
  328. padding: 2rem 0;
  329. margin-top: 3rem;
  330. }
  331. .footer-links {
  332. margin-top: 0.8rem;
  333. display: flex;
  334. flex-wrap: wrap;
  335. justify-content: center;
  336. gap: 0.5rem 1rem;
  337. }
  338. .footer-links a {
  339. color: #ffffff;
  340. text-decoration: underline;
  341. }
  342. .footer-links a:hover {
  343. color: var(--brand-accent);
  344. }
  345. /* Reservation Code */
  346. .order-number {
  347. background: var(--brand-surface-alt);
  348. border: 2px solid var(--brand-accent);
  349. padding: 2rem;
  350. border-radius: 8px;
  351. text-align: center;
  352. margin: 2rem 0;
  353. }
  354. .order-number h2 {
  355. font-size: 2rem;
  356. color: var(--brand-accent);
  357. letter-spacing: 0.2rem;
  358. font-family: 'Courier New', monospace;
  359. }
  360. /* Admin Styles */
  361. .admin-header {
  362. display: flex;
  363. justify-content: space-between;
  364. align-items: center;
  365. margin-bottom: 2rem;
  366. }
  367. .admin-dashboard-actions {
  368. display: flex;
  369. align-items: center;
  370. flex-wrap: wrap;
  371. gap: 0.5rem;
  372. }
  373. .admin-actions-dropdown {
  374. position: relative;
  375. }
  376. .admin-actions-dropdown summary {
  377. list-style: none;
  378. }
  379. .admin-actions-dropdown summary::-webkit-details-marker {
  380. display: none;
  381. }
  382. .admin-actions-dropdown .btn {
  383. display: inline-block;
  384. }
  385. .admin-actions-dropdown[open] > .btn {
  386. background-color: var(--brand-surface-alt);
  387. }
  388. .admin-actions-menu {
  389. position: absolute;
  390. right: 0;
  391. top: calc(100% + 0.35rem);
  392. min-width: 220px;
  393. background: var(--brand-surface);
  394. border: 1px solid var(--brand-border);
  395. border-radius: 6px;
  396. box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  397. z-index: 30;
  398. padding: 0.35rem;
  399. }
  400. .admin-actions-menu a {
  401. display: block;
  402. text-decoration: none;
  403. color: var(--brand-text);
  404. padding: 0.55rem 0.7rem;
  405. border-radius: 4px;
  406. }
  407. .admin-actions-menu a:hover {
  408. background: var(--brand-surface-alt);
  409. color: var(--brand-accent);
  410. }
  411. .faq-content h1,
  412. .faq-content h2,
  413. .faq-content h3 {
  414. margin: 1rem 0 0.6rem;
  415. }
  416. .faq-content h1:first-child,
  417. .faq-content h2:first-child,
  418. .faq-content h3:first-child {
  419. margin-top: 0;
  420. }
  421. .faq-content p + p {
  422. margin-top: 0.8rem;
  423. }
  424. .faq-content ul,
  425. .faq-content ol {
  426. margin: 0.7rem 0 0.9rem 1.5rem;
  427. }
  428. .faq-content li + li {
  429. margin-top: 0.35rem;
  430. }
  431. .admin-stats {
  432. display: grid;
  433. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  434. gap: 1.5rem;
  435. margin-bottom: 2rem;
  436. }
  437. .stat-card {
  438. background: var(--brand-surface);
  439. padding: 1.5rem;
  440. border-radius: 8px;
  441. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  442. }
  443. .stat-card h3 {
  444. font-size: 0.9rem;
  445. color: var(--brand-muted);
  446. margin-bottom: 0.5rem;
  447. }
  448. .stat-card .stat-value {
  449. font-size: 2rem;
  450. font-weight: bold;
  451. color: var(--brand-accent);
  452. }
  453. .panel {
  454. background: var(--brand-surface);
  455. border: 1px solid var(--brand-border);
  456. padding: 1.5rem;
  457. border-radius: 8px;
  458. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  459. margin-bottom: 2rem;
  460. }
  461. .status {
  462. display: inline-block;
  463. padding: 0.2rem 0.6rem;
  464. border-radius: 999px;
  465. font-size: 0.85rem;
  466. font-weight: 600;
  467. letter-spacing: 0.02em;
  468. border: 1px solid transparent;
  469. }
  470. .status-open {
  471. color: var(--brand-accent);
  472. border-color: var(--brand-accent);
  473. }
  474. .status-notified,
  475. .status-picked {
  476. color: #ffffff;
  477. border-color: #ffffff;
  478. }
  479. .status-expired {
  480. color: var(--brand-danger);
  481. border-color: var(--brand-danger);
  482. }
  483. .status-hidden {
  484. color: #9ca3af;
  485. border-color: #6b7280;
  486. }
  487. .order-highlight {
  488. font-size: 1.5rem;
  489. color: var(--brand-accent);
  490. letter-spacing: 0.2rem;
  491. font-family: 'Courier New', monospace;
  492. }
  493. .modal {
  494. display: none;
  495. position: fixed;
  496. top: 0;
  497. left: 0;
  498. width: 100%;
  499. height: 100%;
  500. background: rgba(0,0,0,0.6);
  501. z-index: 1000;
  502. align-items: center;
  503. justify-content: center;
  504. }
  505. .modal-content {
  506. background: var(--brand-surface);
  507. color: var(--brand-text);
  508. padding: 2rem;
  509. border-radius: 8px;
  510. max-width: 1000px;
  511. max-height: 95vh;
  512. overflow-y: auto;
  513. position: relative;
  514. border: 1px solid var(--brand-border);
  515. }
  516. .modal-close {
  517. position: absolute;
  518. top: 1rem;
  519. right: 1rem;
  520. }
  521. .product-placeholder {
  522. width: 100%;
  523. height: 400px;
  524. background-color: var(--brand-surface-alt);
  525. border-radius: 8px;
  526. display: flex;
  527. align-items: center;
  528. justify-content: center;
  529. color: var(--brand-text);
  530. }
  531. .table-compact th,
  532. .table-compact td {
  533. padding: 0.6rem;
  534. font-size: 0.9rem;
  535. }
  536. /* Product Detail Grid */
  537. .product-detail-grid {
  538. display: grid;
  539. grid-template-columns: 1fr 1fr;
  540. gap: 2rem;
  541. margin-top: 2rem;
  542. }
  543. /* Checkout two-column layout (responsive via media query) */
  544. .checkout-grid {
  545. display: grid;
  546. grid-template-columns: 1fr 1fr;
  547. gap: 2rem;
  548. margin-top: 2rem;
  549. }
  550. /* Cart total / actions block */
  551. .cart-actions {
  552. text-align: right;
  553. margin: 2rem 0;
  554. }
  555. .cart-actions .cart-total {
  556. font-size: 1.5rem;
  557. font-weight: bold;
  558. margin-bottom: 1rem;
  559. }
  560. .cart-actions .cart-buttons {
  561. display: flex;
  562. flex-wrap: wrap;
  563. gap: 0.5rem;
  564. align-items: center;
  565. }
  566. .cart-actions .cart-buttons .btn {
  567. margin-left: 0;
  568. }
  569. /* Responsive */
  570. @media (max-width: 768px) {
  571. .header-inner {
  572. flex-direction: column;
  573. align-items: flex-start;
  574. }
  575. .site-nav {
  576. flex-wrap: wrap;
  577. gap: 1rem;
  578. }
  579. .footer-links {
  580. flex-direction: column;
  581. align-items: center;
  582. }
  583. .brand-logo {
  584. height: 46px;
  585. }
  586. .products-grid {
  587. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  588. gap: 1rem;
  589. }
  590. .product-detail-grid {
  591. grid-template-columns: 1fr;
  592. gap: 1.5rem;
  593. }
  594. .cart-item {
  595. flex-direction: column;
  596. align-items: flex-start;
  597. }
  598. .cart-item-actions {
  599. width: 100%;
  600. justify-content: space-between;
  601. margin-top: 1rem;
  602. }
  603. .cart-actions {
  604. text-align: left;
  605. }
  606. .cart-actions .cart-buttons {
  607. flex-direction: column;
  608. align-items: stretch;
  609. }
  610. .cart-actions .cart-buttons .btn {
  611. margin-left: 0;
  612. }
  613. .checkout-grid {
  614. grid-template-columns: 1fr;
  615. gap: 1.5rem;
  616. }
  617. .modal-content {
  618. margin: 1rem;
  619. max-height: calc(100vh - 2rem);
  620. }
  621. .admin-header {
  622. flex-direction: column;
  623. align-items: stretch;
  624. gap: 1rem;
  625. }
  626. .admin-header > div {
  627. display: flex;
  628. flex-wrap: wrap;
  629. gap: 0.5rem;
  630. }
  631. .admin-header .btn {
  632. flex: 1 1 auto;
  633. min-width: 140px;
  634. }
  635. .admin-dashboard-actions {
  636. flex-direction: column;
  637. align-items: stretch;
  638. }
  639. .admin-dashboard-actions > .btn,
  640. .admin-dashboard-actions > .admin-actions-dropdown {
  641. width: 100%;
  642. }
  643. .admin-actions-dropdown .btn {
  644. width: 100%;
  645. text-align: center;
  646. }
  647. .admin-actions-menu {
  648. position: static;
  649. min-width: 0;
  650. margin-top: 0.45rem;
  651. }
  652. table {
  653. font-size: 0.9rem;
  654. }
  655. table th,
  656. table td {
  657. padding: 0.5rem;
  658. }
  659. .admin-stats {
  660. grid-template-columns: 1fr;
  661. }
  662. /* Admin tables: use full width, allow buttons to wrap */
  663. body.admin-page .table-responsive {
  664. margin-left: -1rem;
  665. margin-right: -1rem;
  666. padding-left: 1rem;
  667. padding-right: 1rem;
  668. }
  669. .table-responsive .btn {
  670. white-space: normal;
  671. }
  672. .category-filter-bar {
  673. margin-left: -1rem;
  674. margin-right: -1rem;
  675. padding-left: 1rem;
  676. padding-right: 1rem;
  677. }
  678. /* Admin tables: stack rows into blocks on narrow screens */
  679. body.admin-page table.responsive-table {
  680. border: 0;
  681. box-shadow: none;
  682. background: transparent;
  683. }
  684. body.admin-page table.responsive-table thead {
  685. display: none;
  686. }
  687. body.admin-page table.responsive-table tbody {
  688. display: block;
  689. }
  690. body.admin-page table.responsive-table tr {
  691. display: block;
  692. background: var(--brand-surface);
  693. border: 1px solid var(--brand-border);
  694. border-radius: 8px;
  695. margin-bottom: 0.8rem;
  696. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  697. }
  698. body.admin-page table.responsive-table td {
  699. display: flex;
  700. justify-content: space-between;
  701. gap: 1rem;
  702. width: 100%;
  703. border-top: 1px solid var(--brand-border);
  704. border-bottom: 0;
  705. padding: 0.65rem 0.85rem;
  706. text-align: right;
  707. }
  708. body.admin-page table.responsive-table td:first-child {
  709. border-top: 0;
  710. }
  711. body.admin-page table.responsive-table td::before {
  712. content: attr(data-label);
  713. font-weight: 600;
  714. color: var(--brand-muted);
  715. text-align: left;
  716. }
  717. body.admin-page table.responsive-table td[data-label="Aktionen"] {
  718. display: block;
  719. text-align: left;
  720. }
  721. body.admin-page table.responsive-table td[data-label="Aktionen"]::before {
  722. display: block;
  723. margin-bottom: 0.4rem;
  724. }
  725. }
  726. @media (max-width: 480px) {
  727. .container {
  728. padding: 0 12px;
  729. }
  730. main {
  731. padding: 1rem 0;
  732. }
  733. .brand-title {
  734. font-size: 1.1rem;
  735. }
  736. .brand-subtitle {
  737. font-size: 0.8rem;
  738. }
  739. .products-grid {
  740. grid-template-columns: 1fr;
  741. gap: 1rem;
  742. }
  743. /* Very narrow: admin tables scroll so columns stay readable */
  744. .table-responsive table:not(.responsive-table) {
  745. min-width: 520px;
  746. }
  747. }
  748. /* Utility Classes */
  749. .text-center {
  750. text-align: center;
  751. }
  752. .mt-1 { margin-top: 0.5rem; }
  753. .mt-2 { margin-top: 1rem; }
  754. .mt-3 { margin-top: 1.5rem; }
  755. .mb-1 { margin-bottom: 0.5rem; }
  756. .mb-2 { margin-bottom: 1rem; }
  757. .mb-3 { margin-bottom: 1.5rem; }